Set default locale on .env #1052
This commit is contained in:
parent
b74a88262b
commit
5d0ea6a45f
2 changed files with 2 additions and 1 deletions
1
.env
1
.env
|
@ -1,5 +1,6 @@
|
|||
_APP_ENV=production
|
||||
_APP_ENV=development
|
||||
_APP_LOCALE=en
|
||||
_APP_SYSTEM_EMAIL_NAME=Appwrite
|
||||
_APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
|
||||
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=security@appwrite.io
|
||||
|
|
|
@ -313,7 +313,7 @@ App::setResource('layout', function($locale) {
|
|||
}, ['locale']);
|
||||
|
||||
App::setResource('locale', function() {
|
||||
return new Locale('en');
|
||||
return new Locale(App::getEnv('_APP_LOCALE', 'en'));
|
||||
});
|
||||
|
||||
// Queues
|
||||
|
|
Loading…
Reference in a new issue