Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTranslator ¶
func FindTranslator(locales ...string) (trans ut.Translator, found bool)
func GetFallback ¶
func GetFallback() ut.Translator
func GetTranslator ¶
func GetTranslator(locale string) (trans ut.Translator, found bool)
func VerifyTranslations ¶
func VerifyTranslations() (err error)
Types ¶
type UniversalTranslator ¶
type UniversalTranslator interface { Export(format ut.ImportExportFormat, dirname string) error Import(format ut.ImportExportFormat, dirnameOrFilename string) error ImportByReader(format ut.ImportExportFormat, reader io.Reader) error FindTranslator(locales ...string) (trans ut.Translator, found bool) GetTranslator(locale string) (trans ut.Translator, found bool) GetFallback() ut.Translator AddTranslator(translator locales.Translator, override bool) error VerifyTranslations() (err error) }
Click to show internal directories.
Click to hide internal directories.