From 507262a58c010237b9d2034bcb93c835d8183e08 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 4 Aug 2015 17:16:34 +0930 Subject: [PATCH] Add API to add translations to admin client Again, I'll split up these APIs soon enough --- framework/core/src/Events/BuildClientView.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/core/src/Events/BuildClientView.php b/framework/core/src/Events/BuildClientView.php index e637ee370..840ff802f 100644 --- a/framework/core/src/Events/BuildClientView.php +++ b/framework/core/src/Events/BuildClientView.php @@ -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; + } + } + } }