Allows the user to set the default language for new and unauthenticated visitors.

This commit is contained in:
James Cole
2020-01-31 07:39:24 +01:00
parent 3771cc3b75
commit d056f0d221
3 changed files with 50 additions and 44 deletions

View File

@@ -15,6 +15,12 @@ SITE_OWNER=mail@example.com
# If you use Docker or similar, you can set this variable from a file by using APP_KEY_FILE
APP_KEY=SomeRandomStringOf32CharsExactly
#
# Firefly III will launch using this language (for new users and unauthenticated visitors)
# For a list of available languages: https://github.com/firefly-iii/firefly-iii/tree/master/resources/lang
#
# If text is still in English, remember that not everything may have been translated.
DEFAULT_LANGUAGE=en_US
# Change this value to your preferred time zone.
# Example: Europe/Amsterdam

View File

@@ -31,7 +31,7 @@ return [
'debug' => env('APP_DEBUG', false),
'url' => envNonEmpty('APP_URL', 'http://localhost'),
'timezone' => envNonEmpty('TZ', 'UTC'),
'locale' => 'en_US',
'locale' => envNonEmpty('DEFAULT_LANGUAGE', 'en_US'),
'fallback_locale' => 'en_US',
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',

View File

@@ -546,7 +546,7 @@ return [
'range' => 200,
],
'default_currency' => 'EUR',
'default_language' => 'en_US',
'default_language' => envNonEmpty('DEFAULT_LANGUAGE', 'en_US'),
'search_modifiers' => ['amount_is', 'amount', 'amount_max', 'amount_min', 'amount_less', 'amount_more', 'source', 'destination', 'category',
'budget', 'bill', 'type', 'date', 'date_before', 'date_after', 'on', 'before', 'after', 'from', 'to', 'tag', 'created_on',
'updated_on'],