package
Version:
v0.0.0-...-b1976e4
Opens a new window with list of versions in this module.
Published: Feb 28, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Package lang handles localization of language UI.
Set sets the active language for the process.
Language is used to declare the language for UI purpose.
Known languages.
TODO(maruel): Add new languages when translating the application.
Active returns the active language for the process.
Map is the mapping of strings based on the language.
func (m Map) Formatf(args ...interface{}) string
Formatf returns fmt.Sprintf(m.String(), args...) as a shortcut.
Get returns the string for the language if present, defaults to En.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.