github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/cf/i18n/i18n.go (about) 1 package i18n 2 3 import "code.cloudfoundry.org/cli/util/ui" 4 5 var T ui.TranslateFunc 6 7 type LocaleReader interface { 8 Locale() string 9 } 10 11 func Init(config LocaleReader) ui.TranslateFunc { 12 t, _ := ui.GetTranslationFunc(config) 13 return t 14 }