mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 16:32:45 +08:00
Move locale files
This commit is contained in:
parent
2e5cccd5e6
commit
91010d1607
|
@ -21,11 +21,11 @@ class LocaleServiceProvider extends ServiceProvider
|
|||
|
||||
public function registerLocale(LocaleManager $manager, $locale)
|
||||
{
|
||||
$dir = __DIR__.'/../../locale/'.$locale;
|
||||
$path = __DIR__.'/../../locale/'.$locale;
|
||||
|
||||
$manager->addTranslations($locale, $dir.'/translations.yml');
|
||||
$manager->addConfig($locale, $dir.'/config.php');
|
||||
$manager->addJsFile($locale, $dir.'/config.js');
|
||||
$manager->addTranslations($locale, $path.'.yml');
|
||||
$manager->addConfig($locale, $path.'.php');
|
||||
$manager->addJsFile($locale, $path.'.js');
|
||||
}
|
||||
|
||||
public function register()
|
||||
|
|
Loading…
Reference in New Issue
Block a user