mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-15 21:04:56 +00:00
feat(localization): Add German language translation (#741)
* Add german translation * Adjust german localization * Adjust js_finished_reading in german localization * Mention this change in CHANGELOG.md * Add test for German localization * Update lib/localization/locales/de.json Co-authored-by: Florian Lehner <florianl@users.noreply.github.com> Signed-off-by: Martin <31348196+Earl0fPudding@users.noreply.github.com> * Remove duplicate "leider" in lib/localization/locales/de.json Co-authored-by: Florian Lehner <florianl@users.noreply.github.com> Signed-off-by: Martin <31348196+Earl0fPudding@users.noreply.github.com> * Update lib/localization/locales/de.json Co-authored-by: Florian Lehner <florianl@users.noreply.github.com> Signed-off-by: Martin <31348196+Earl0fPudding@users.noreply.github.com> * Update lib/localization/locales/de.json Co-authored-by: Florian Lehner <florianl@users.noreply.github.com> Signed-off-by: Martin <31348196+Earl0fPudding@users.noreply.github.com> --------- Signed-off-by: Martin <31348196+Earl0fPudding@users.noreply.github.com> Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: Florian Lehner <florianl@users.noreply.github.com> Co-authored-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -27,6 +27,14 @@ func TestLocalizationService(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("German localization", func(t *testing.T) {
|
||||
localizer := service.GetLocalizer("de")
|
||||
result := localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "loading"})
|
||||
if result != "Ladevorgang..." {
|
||||
t.Errorf("Expected 'Ladevorgang...', got '%s'", result)
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("All required keys exist in English", func(t *testing.T) {
|
||||
localizer := service.GetLocalizer("en")
|
||||
requiredKeys := []string{
|
||||
|
||||
Reference in New Issue
Block a user