From 8f7869c169b27d6966c0fc3e8413d7501d99dd2c Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Wed, 6 Apr 2022 21:06:56 -0300 Subject: [PATCH] initial changes for load language --- system/engine/loader.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/engine/loader.php b/system/engine/loader.php index e299d4a..998ec4c 100644 --- a/system/engine/loader.php +++ b/system/engine/loader.php @@ -178,12 +178,16 @@ final class Loader implements \Phacil\Framework\Interfaces\Loader { } /** + * * @param string $language - * @return mixed + * @param string $route + * @return void */ - public function language($language = null) { + public function language($language = null, $route = null) { $language = ($language) ?: $this->registry->route; + + $this->language = new \Phacil\Framework\Language($language); return $this->language->load($language); }