Documentation
¶
Index ¶
Constants ¶
View Source
const ( Json = "json" Yaml = "yaml" Toml = "toml" )
Variables ¶
View Source
var (
ErrorInvalidDir = errors.New("dir does not exist")
)
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator interface { Translate(langCode, key string, args ...map[string]any) string Extend(langCode string, locales map[string]string) Translator }
func New ¶
func New(config ...Config) Translator
Click to show internal directories.
Click to hide internal directories.