mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
API: Add more locale registration APIs
This commit is contained in:
parent
150eef8a32
commit
4891f2217c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user