mirror of
https://github.com/flarum/core.git
synced 2025-10-28 14:06:30 +01:00
Switch to ICU MessageFormat (#2759)
This commit is contained in:
committed by
GitHub
parent
edaf45d133
commit
b45519974a
@@ -30,6 +30,8 @@ class LocaleServiceProvider extends AbstractServiceProvider
|
||||
);
|
||||
|
||||
$locales->addLocale($this->getDefaultLocale($container), 'Default');
|
||||
$locales->addTranslations('en', __DIR__.'/../../locale/core.yml');
|
||||
$locales->addTranslations('en', __DIR__.'/../../locale/validation.yml');
|
||||
|
||||
return $locales;
|
||||
});
|
||||
@@ -46,8 +48,6 @@ class LocaleServiceProvider extends AbstractServiceProvider
|
||||
|
||||
$translator->setFallbackLocales(['en']);
|
||||
$translator->addLoader('prefixed_yaml', new PrefixedYamlFileLoader());
|
||||
$translator->addResource('prefixed_yaml', ['file' => __DIR__.'/../../locale/core.yml', 'prefix' => null], 'en');
|
||||
$translator->addResource('prefixed_yaml', ['file' => __DIR__.'/../../locale/validation.yml', 'prefix' => null], 'en');
|
||||
|
||||
return $translator;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user