Skip to content

Commit 2e8048e

Browse files
[Contracts/Translation] Add TranslatorInterface::getLocale()
1 parent 35025fc commit 2e8048e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/Extension/Fixtures/StubTranslator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ public function trans($id, array $parameters = [], $domain = null, $locale = nul
1919
{
2020
return '[trans]'.strtr($id, $parameters).'[/trans]';
2121
}
22+
23+
public function getLocale(): string
24+
{
25+
return 'en';
26+
}
2227
}

0 commit comments

Comments
 (0)