diff --git a/localization.go b/localization.go index 69eb7e5..d02675c 100644 --- a/localization.go +++ b/localization.go @@ -55,6 +55,10 @@ func (d *Dictionary) AddTranslations(directory string) error { d.supported = append(d.supported, loc) } + if len(d.supported) > 0 { + d.setDefaultLocale(d.supported[0]) + } + return nil }