Skip to content

Commit 7d625bd

Browse files
committed
LanguageService: use english language as fallback language
Change-Id: I8ee1db60a30e6c1a87c8f29039113666f050fa22
1 parent 6ebc6e4 commit 7d625bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Service/LanguageService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ public function translate(string $id): string
6565

6666
public function all(): array
6767
{
68-
return $this->translator->getCatalogue($this->locale)->all('photobooth');
68+
$fallbackLang = $this->translator->getCatalogue('en')->all('photobooth');
69+
$currentLang = $this->translator->getCatalogue($this->locale)->all('photobooth');
70+
71+
return array_replace($fallbackLang, $currentLang);
6972
}
7073

7174
public static function getInstance(): self

0 commit comments

Comments
 (0)