mirror of
https://github.com/flarum/framework.git
synced 2025-06-05 23:44:34 +08:00
API: Add more locale registration APIs
This commit is contained in:
@ -27,8 +27,23 @@ class RegisterLocales
|
||||
$this->manager = $manager;
|
||||
}
|
||||
|
||||
public function addLocale($locale, $name)
|
||||
{
|
||||
$this->manager->addLocale($locale, $name);
|
||||
}
|
||||
|
||||
public function addTranslations($locale, $file)
|
||||
{
|
||||
$this->manager->addTranslations($locale, $file);
|
||||
}
|
||||
|
||||
public function addJsFile($locale, $file)
|
||||
{
|
||||
$this->manager->addJsFile($locale, $file);
|
||||
}
|
||||
|
||||
public function addConfig($locale, $file)
|
||||
{
|
||||
$this->manager->addConfig($locale, $file);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user