Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultLanguage is the default language string DefaultLanguage = "en_US.UTF-8" // RequiredBundle the bundle needed to set language other than the default RequiredBundle = "glibc-locale" )
Variables ¶
This section is empty.
Functions ¶
func IsValidLanguage ¶
IsValidLanguage verifies if the given language is valid
func SetSelectionLanguage ¶
func SetSelectionLanguage(code string)
SetSelectionLanguage changes the default display language
func SetTargetLanguage ¶
SetTargetLanguage creates a locale locale.conf on the target
Types ¶
type Language ¶
Language represents a system language, containing the locale code and lang tag representation
func (*Language) GetConfValues ¶
GetConfValues converts a Language to display string which can be displayed as the configured value
func (*Language) IsUserDefined ¶
IsUserDefined returns true if the configuration was interactively defined by the user
func (*Language) MarshalYAML ¶
MarshalYAML marshals Language into YAML format
func (*Language) UnmarshalYAML ¶
UnmarshalYAML unmarshals Language from YAML format
Click to show internal directories.
Click to hide internal directories.