Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
Errorf produces an error with a translated error string. Substitution is performed via the `T` function above, following the same rules.
func LoadTranslations ¶
LoadTranslations loads translation files. getLanguageFn should return a language string (e.g. 'en-US'). If getLanguageFn is nil, then the loadSystemLanguage function is used, which uses the 'LANG' environment variable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.