mirror of
https://github.com/flarum/core.git
synced 2025-02-24 19:23:01 +01:00
Add API to add translations to admin client
Again, I'll split up these APIs soon enough
This commit is contained in:
parent
7ed3834dc9
commit
9700fbbb0b
@ -70,4 +70,13 @@ class BuildClientView
|
||||
$this->view->addBootstrapper($bootstrapper);
|
||||
}
|
||||
}
|
||||
|
||||
public function adminTranslations(array $keys)
|
||||
{
|
||||
if ($this->action instanceof AdminClientAction) {
|
||||
foreach ($keys as $key) {
|
||||
$this->keys[] = $key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user