Documentation ¶
Overview ¶
Package i18n implements basic internationalization facilities.
Index ¶
Constants ¶
View Source
const ( // LanguageCodeEnglish represents the English language. LanguageCodeEnglish = "en" // LanguageCodeBulgarian represents the Bulgarian language. LanguageCodeBulgarian = "bg" )
Variables ¶
View Source
var Language string
Language indicates the local language (which is determined by the system locale settings).
Functions ¶
func Init ¶
func Init()
Init initializes the internationalization subsystem to use the appropriate local language as determined by the system locale settings. Determining of the language from locale settings is only implemented for Unix-like platforms so far (i.e. only POSIX locales are supported). TODO: implement for Windows.
func InitWithLocaleName ¶
func InitWithLocaleName(locale string)
InitWithLocaleName initializes the internationalization subsystem to use the appropriate local language as determined by the specified locale.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.