Skip to content

NOW MANAGED ON CODEBERG

Merge branch 'master' of git://github.com/kmoj86/BookStack into kmoj86-master

Dan Brownc667c6e235bd
diff --cc config/app.php
index b0883b9be,c98efadd5..79c73df4a
--- a/config/app.php
+++ b/config/app.php
@@@ -77,21 -77,8 +77,20 @@@ return
*/
'locale' => env('APP_LANG', 'en'),
-
- 'locales' => ['en', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
+ 'locales' => ['en', 'ar', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
+ /*
+ |--------------------------------------------------------------------------
+ | Auto-detect the locale for public users
+ |--------------------------------------------------------------------------
+ |
+ | For public users their locale can be guessed by headers sent by their
+ | browser. This is usually set by users in their browser settings.
+ | If not found the default app locale will be used.
+ |
+ */
+ 'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
+
/*
|--------------------------------------------------------------------------
| Application Fallback Locale