From 4891f2217c6b8d9b8fec5b7de75dbc18e6caeb84 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 1 Sep 2015 10:08:33 +0930 Subject: [PATCH] API: Add more locale registration APIs --- framework/core/src/Events/RegisterLocales.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/framework/core/src/Events/RegisterLocales.php b/framework/core/src/Events/RegisterLocales.php index 66f681154..3755c7791 100644 --- a/framework/core/src/Events/RegisterLocales.php +++ b/framework/core/src/Events/RegisterLocales.php @@ -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); + } }