fix(localization): HTML language header and forced-language (#787)
* fix: HTML language header and forced-language * style(changelog): added a couple headers * add test
This commit is contained in:
parent
e79cd93b61
commit
a900e98b8b
6 changed files with 275 additions and 253 deletions
|
|
@ -96,6 +96,10 @@ func TestComprehensiveTranslations(t *testing.T) {
|
|||
t.Run(lang, func(t *testing.T) {
|
||||
loc := service.GetLocalizer(lang)
|
||||
sl := SimpleLocalizer{Localizer: loc}
|
||||
service_lang := sl.GetLang()
|
||||
if service_lang != lang {
|
||||
t.Error("Localizer language not same as specified")
|
||||
}
|
||||
for _, key := range keys {
|
||||
t.Run(key, func(t *testing.T) {
|
||||
if result := sl.T(key); result == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue