mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-01-09 07:20:16 +00:00
🌐 Add language selection functionality with support for region-specific locales
This commit is contained in:
45
config/lang-country.php
Normal file
45
config/lang-country.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'fallback' => 'en-GB',
|
||||
|
||||
'allowed' => [
|
||||
'bn-BD',
|
||||
'bg-BG',
|
||||
'ca-ES',
|
||||
'da-DA',
|
||||
'de-AT',
|
||||
'de-CH',
|
||||
'de-DE',
|
||||
'en-AU',
|
||||
'en-CA',
|
||||
'en-CH',
|
||||
'en-GB',
|
||||
'en-US',
|
||||
'el-GR',
|
||||
'es-CL',
|
||||
'es-CO',
|
||||
'es-ES',
|
||||
'fr-BE',
|
||||
'fr-CA',
|
||||
'fr-CH',
|
||||
'fr-FR',
|
||||
'hu-HU',
|
||||
'id-ID',
|
||||
'it-CH',
|
||||
'it-IT',
|
||||
'lt-LT',
|
||||
'nl-BE',
|
||||
'nl-NL',
|
||||
'ps-AF',
|
||||
'pt-PT',
|
||||
'pl-PL',
|
||||
'ru-RU',
|
||||
],
|
||||
|
||||
'lang_switcher_middleware' => ['web'],
|
||||
|
||||
'lang_switcher_uri' => 'change_lang_country',
|
||||
|
||||
'fallback_based_on_current_locale' => false,
|
||||
];
|
||||
Reference in New Issue
Block a user