diff --git a/lib/localization/locales/manifest.json b/lib/localization/locales/manifest.json index 8515e91e..4dabf4ee 100644 --- a/lib/localization/locales/manifest.json +++ b/lib/localization/locales/manifest.json @@ -11,6 +11,7 @@ "it", "ja", "pt-BR", + "ru", "tr", "zh-CN", "zh-TW" diff --git a/lib/localization/localization_test.go b/lib/localization/localization_test.go index 5e7abf08..b8e1b836 100644 --- a/lib/localization/localization_test.go +++ b/lib/localization/localization_test.go @@ -23,6 +23,7 @@ func TestLocalizationService(t *testing.T) { "is": "Hleður...", "pt-BR": "Carregando...", "tr": "Yükleniyor...", + "ru": "Загрузка...", "zh-CN": "加载中...", "zh-TW": "載入中...", } @@ -57,7 +58,7 @@ func TestLocalizationService(t *testing.T) { } type manifest struct { - SupportedLanguages []string `json:"supported_languages"` + SupportedLanguages []string `json:"supportedLanguages"` } func loadManifest(t *testing.T) manifest { @@ -98,6 +99,11 @@ func TestComprehensiveTranslations(t *testing.T) { sort.Strings(keys) + manifest := loadManifest(t) + if len(manifest.SupportedLanguages) == 0 { + t.Fatal("no languages loaded") + } + for _, lang := range loadManifest(t).SupportedLanguages { t.Run(lang, func(t *testing.T) { loc := service.GetLocalizer(lang)