Browse Source

add default locale settings

main
ghost 1 year ago
parent
commit
451df36fc2
  1. 5
      src/app/model/website.php
  2. 1
      src/config/website.json

5
src/app/model/website.php

@ -24,6 +24,11 @@ class AppModelWebsite
return $this->_config->url; return $this->_config->url;
} }
public function getDefaultLocale() : string
{
return $this->_config->default->locale;
}
public function getDefaultUserStatus() : bool public function getDefaultUserStatus() : bool
{ {
return $this->_config->default->user->status; return $this->_config->default->user->status;

1
src/config/website.json

@ -3,6 +3,7 @@
"url":"", "url":"",
"default": "default":
{ {
"locale":"en-US",
"user": "user":
{ {
"status": true, "status": true,

Loading…
Cancel
Save