Documentation
¶
Rendered for js/wasm
Overview ¶
Package i18n exposes helpers for basic string translation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin installs basic internationalisation helpers. It exposes two JavaScript functions:
setLang(lang) - sets the active language t(key) - returns the translation for the given key
Translations are provided as a map of language codes to key/value pairs.
Click to show internal directories.
Click to hide internal directories.