From 6e0bffe395265ed1d24b33987971eb5b6c97af40 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 --- src/Events/RegisterLocales.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Events/RegisterLocales.php b/src/Events/RegisterLocales.php index 66f681154..3755c7791 100644 --- a/src/Events/RegisterLocales.php +++ b/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); + } }