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:
parent
888b7d6e77
commit
c121896f9c
4 changed files with 73 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue