From 451df36fc27ec741f82e18a1ffbe7af2fff7e8e1 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 26 Sep 2023 22:40:17 +0300 Subject: [PATCH] add default locale settings --- src/app/model/website.php | 5 +++++ src/config/website.json | 1 + 2 files changed, 6 insertions(+) diff --git a/src/app/model/website.php b/src/app/model/website.php index 25e1331..f1d4f9f 100644 --- a/src/app/model/website.php +++ b/src/app/model/website.php @@ -24,6 +24,11 @@ class AppModelWebsite return $this->_config->url; } + public function getDefaultLocale() : string + { + return $this->_config->default->locale; + } + public function getDefaultUserStatus() : bool { return $this->_config->default->user->status; diff --git a/src/config/website.json b/src/config/website.json index 8b71e09..6797314 100644 --- a/src/config/website.json +++ b/src/config/website.json @@ -3,6 +3,7 @@ "url":"", "default": { + "locale":"en-US", "user": { "status": true,