1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 18:07:02 +02:00

Move locale files from language pack to core (#2408)

This commit is contained in:
Robert Korulczyk
2021-02-17 22:23:13 +01:00
committed by GitHub
parent 56d8301b2d
commit c4ebebe48e
6 changed files with 770 additions and 7 deletions

View File

@@ -57,6 +57,8 @@ 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;
});