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 @@ -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;

1
src/config/website.json

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

Loading…
Cancel
Save