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

Move locale files

This commit is contained in:
Toby Zerner
2015-07-22 16:05:24 +09:30
parent 2e5cccd5e6
commit 91010d1607
4 changed files with 4 additions and 4 deletions

View File

@@ -21,11 +21,11 @@ class LocaleServiceProvider extends ServiceProvider
public function registerLocale(LocaleManager $manager, $locale) public function registerLocale(LocaleManager $manager, $locale)
{ {
$dir = __DIR__.'/../../locale/'.$locale; $path = __DIR__.'/../../locale/'.$locale;
$manager->addTranslations($locale, $dir.'/translations.yml'); $manager->addTranslations($locale, $path.'.yml');
$manager->addConfig($locale, $dir.'/config.php'); $manager->addConfig($locale, $path.'.php');
$manager->addJsFile($locale, $dir.'/config.js'); $manager->addJsFile($locale, $path.'.js');
} }
public function register() public function register()