[Question] Why default language not work?
Closed this issue · 0 comments
Deleted user commented
Hi, I have this strange problem:
in the locales
path i have three language file:
- all.de.yaml
- all.en.yaml
- all.es.yaml
In the app.go I have:
func translations() buffalo.MiddlewareFunc {
var err error
if T, err = i18n.New(packr.New("app:locales", "../locales"), "es"); err != nil {
app.Stop(err)
}
return T.Middleware()
}
But always the app start with the "de" language. I tryied to change "es" with "en" but it return always "de". Seams that it set the default language getting the first file in alpabetic order.
What I missing?