diff --git a/app/config/locales.php b/app/config/locales.php new file mode 100644 index 0000000000..559aab42a8 --- /dev/null +++ b/app/config/locales.php @@ -0,0 +1,46 @@ +getServer('_APP_ENV', App::ENV_TYPE_PRODUCTION); $domain = $request->getServer('HTTP_HOST', ''); $version = include __DIR__.'/../app/config/version.php'; $providers = include __DIR__.'/../app/config/providers.php'; // OAuth providers list +$locales = include __DIR__.'/../app/config/locales.php'; // OAuth providers list $collections = include __DIR__.'/../app/config/collections.php'; // OAuth providers list $redisHost = $request->getServer('_APP_REDIS_HOST', ''); $redisPort = $request->getServer('_APP_REDIS_PORT', ''); @@ -216,7 +173,7 @@ Locale::setLanguage('zh-tw', include __DIR__.'/config/locale/zh-tw.php'); Locale::setDefault('en'); -if (in_array($locale, APP_LOCALES)) { +if (in_array($locale, $locales)) { Locale::setDefault($locale); }