diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/i18n.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/i18n.go b/utils/i18n.go index 5a0bb197f..cb5aca568 100644 --- a/utils/i18n.go +++ b/utils/i18n.go @@ -12,6 +12,7 @@ import ( ) var T i18n.TranslateFunc +var TDefault i18n.TranslateFunc var locales map[string]string = make(map[string]string) var settings model.LocalizationSettings @@ -20,6 +21,7 @@ var settings model.LocalizationSettings func TranslationsPreInit() { InitTranslationsWithDir("i18n") T = TfuncWithFallback("en") + TDefault = TfuncWithFallback("en") } func InitTranslations(localizationSettings model.LocalizationSettings) { |