1
0
Fork 0
mirror of synced 2024-06-18 18:54:55 +12:00

Set default locale on .env #1052

This commit is contained in:
Damodar Lohani 2021-04-01 11:59:23 +05:45
parent b74a88262b
commit 5d0ea6a45f
2 changed files with 2 additions and 1 deletions

1
.env
View file

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

View file

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