i18n

package
v0.0.0-...-b3e4aef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 4 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL