Skip to content

Commit 394f4a3

Browse files
[Contracts/Translation] Add TranslatorInterface::getLocale()
1 parent 4887c34 commit 394f4a3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add `HttpClientInterface::withOptions()`
8+
* Add `TranslatorInterface::getLocale()`
89

910
2.3.0
1011
-----

Translation/TranslatorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* @author Fabien Potencier <[email protected]>
16+
*
17+
* @method string getLocale() Returns the default locale
1618
*/
1719
interface TranslatorInterface
1820
{

Translation/TranslatorTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public function setLocale(string $locale)
3232

3333
/**
3434
* {@inheritdoc}
35+
*
36+
* @return string
3537
*/
3638
public function getLocale()
3739
{

0 commit comments

Comments
 (0)