Documentation
¶
Overview ¶
Package i18n translates the native desktop UI with the Web UI's own catalogs (web-ui/src/i18n/locales, copied into ./locales; a test keeps the copies in sync). Keys are the i18next dotted paths ("nav.chat"), interpolation is i18next's {{name}}, and plurals use the _one/_other suffixes when a "count" argument is given. Missing keys fall back to English, then to the key itself.
Index ¶
Constants ¶
View Source
const Fallback = "en"
Fallback is the language used for keys a catalog lacks.
Variables ¶
This section is empty.
Functions ¶
func SetLanguage ¶
SetLanguage selects the language of T. A region (es-ES) falls back to its language; an unknown language selects English. It returns the language chosen.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.