mirror of
https://github.com/grocy/grocy.git
synced 2025-10-11 16:16:38 +00:00
Partly reverted b856911f0f
Loading localization strings async for the fronted currently doesn't work in all cases...
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user