Skip to content

Commit 01b6823

Browse files
[Contracts/Translation] Add TranslatorInterface::getLocale()
1 parent 420a9e4 commit 01b6823

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/DependencyInjection/Compiler/DataCollectorTranslatorPassTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,9 @@ class TranslatorWithTranslatorBag implements TranslatorInterface
111111
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null): string
112112
{
113113
}
114+
115+
public function getLocale(): string
116+
{
117+
return 'en';
118+
}
114119
}

0 commit comments

Comments
 (0)