Fix package cases crash (#313)

This commit is contained in:
Thomas Miceli
2024-09-03 17:15:08 +02:00
committed by GitHub
parent a97f54d92f
commit 069a999297
3 changed files with 8 additions and 9 deletions

View File

@ -14,7 +14,6 @@ import (
"strings"
)
var title = cases.Title(language.English)
var Locales = NewLocaleStore()
type LocaleStore struct {
@ -59,7 +58,7 @@ func (store *LocaleStore) loadLocaleFromYAML(localeCode, path string) error {
locale := &Locale{
Code: localeCode,
Name: title.String(name),
Name: cases.Title(language.English).String(name),
Messages: make(map[string]string),
}