Partly reverted b856911f0f

Loading localization strings async for the fronted currently doesn't work in all cases...
This commit is contained in:
Bernd Bestel
2021-07-12 21:20:39 +02:00
parent 18e8fc8293
commit 8d2c3ae584
3 changed files with 5 additions and 18 deletions

View File

@@ -129,6 +129,7 @@ class BaseController
$this->View->set('__n', function ($number, $singularForm, $pluralForm) use ($localizationService) {
return $localizationService->__n($number, $singularForm, $pluralForm);
});
$this->View->set('LocalizationStrings', $localizationService->GetPoAsJsonString());
// TODO: Better handle this generically based on the current language (header in .po file?)
$dir = 'ltr';