mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
Add API to add translations to admin client
Again, I'll split up these APIs soon enough
This commit is contained in:
parent
75c02acdde
commit
507262a58c
|
@ -70,4 +70,13 @@ class BuildClientView
|
||||||
$this->view->addBootstrapper($bootstrapper);
|
$this->view->addBootstrapper($bootstrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function adminTranslations(array $keys)
|
||||||
|
{
|
||||||
|
if ($this->action instanceof AdminClientAction) {
|
||||||
|
foreach ($keys as $key) {
|
||||||
|
$this->keys[] = $key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user