mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-11 02:11:52 +02:00
Fix package cases crash (#313)
This commit is contained in:
@ -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),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user