**Add Latvian translations and enhance localization support**

-  Added Latvian (`lv`) JSON translations and validation/password localization files.
- 🛠️ Updated `lang-country` config to include `lv-LV` and centralized language definitions.
- 🌐 Extended sidebar and navigation with new translatable strings.
-  Introduced 72px width customization for the sidebar layout.
-  Improved timezone mapping in Nostr publishing commands (added `Europe/Riga`).
- 🛠️ Refactored language selector to dynamically source available languages from the config.
This commit is contained in:
HolgerHatGarKeineNode
2026-05-20 11:45:50 +02:00
parent e3f8c4c232
commit 35ddad365c
17 changed files with 951 additions and 28 deletions
+12
View File
@@ -29,6 +29,7 @@ return [
'it-CH',
'it-IT',
'lt-LT',
'lv-LV',
'nl-BE',
'nl-NL',
'ps-AF',
@@ -42,4 +43,15 @@ return [
'lang_switcher_uri' => 'change_lang_country',
'fallback_based_on_current_locale' => false,
'languages' => [
'de' => ['name' => 'Deutsch', 'countries' => ['de-DE', 'de-AT', 'de-CH']],
'en' => ['name' => 'English', 'countries' => ['en-GB', 'en-US', 'en-AU', 'en-CA']],
'es' => ['name' => 'Español', 'countries' => ['es-ES', 'es-CL', 'es-CO']],
'hu' => ['name' => 'Magyar', 'countries' => ['hu-HU']],
'lv' => ['name' => 'Latviešu', 'countries' => ['lv-LV']],
'nl' => ['name' => 'Nederlands', 'countries' => ['nl-NL', 'nl-BE']],
'pl' => ['name' => 'Polski', 'countries' => ['pl-PL']],
'pt' => ['name' => 'Português', 'countries' => ['pt-PT']],
],
];