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:
13
data/i18n/de.yaml
Normal file
13
data/i18n/de.yaml
Normal 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: "
|
||||
Reference in New Issue
Block a user