Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Translator ¶
type Translator interface { // Choice gets a translation according to an integer value. Choice(key string, number int, options ...Option) string // Get the translation for the given key. Get(key string, options ...Option) string // GetFallback get the current application/context fallback locale. GetFallback() string // CurrentLocale get the current application/context locale. CurrentLocale() string // Has checks if a translation exists for a given key. Has(key string, options ...Option) bool // SetFallback set the current application/context fallback locale. SetFallback(locale string) context.Context // SetLocale set the current application/context locale. SetLocale(locale string) context.Context }
Click to show internal directories.
Click to hide internal directories.