Refactor Localization Service

- Updated LocalizationService interface to load localization data from a Path instead of InputStream.
- Enhanced LocalizationServiceImpl to handle loading and saving of localization data from directories.
- Introduced LocalizationLanguage and LocalizationMetadata classes to encapsulate language entries and metadata.
- Refactored Localizations class to manage language files and metadata more effectively.
- Added unit tests for loading localizations from directory and verifying language translations.
- Created YAML files for English and German languages along with a metadata file for localization information.
This commit is contained in:
extio-de
2026-05-15 16:32:18 +02:00
parent 99cbee4515
commit f54e07b984
14 changed files with 470 additions and 313 deletions

13
data/i18n/de.yaml Normal file
View File

@@ -0,0 +1,13 @@
---
shortName: "de"
entries:
test-1: "hallo"
test-2: "welt"
test-3: "Willkommen zu Exo's Spieleengine Demo!"
test-4: "Design auswählen"
test-5: "Dies ist eine Nachricht\\n123...\\nSchönen Tag noch!"
test-6: "Ok"
test-7: "Audio umschalten"
test-8: "ScrollArea Demo"
test-9: "Sprache auswählen"
test-10: "Aktuell: "