Documentation ¶
Index ¶
- Constants
- func GetByLocale(locale string) (DependentInfos, DependentInfos, error)
- func GetByPackage(locale, pkg string) ([]string, []string, error)
- func GetEnhancedLocalePackages(lang string, pkg string) []string
- func IsSupportedLocale(locale string) bool
- type DependentInfo
- type DependentInfos
- type LangCodeInfo
- type LangInfo
- type LangInfos
Constants ¶
View Source
const (
LangInfoFile = "/usr/share/i18n/language_info.json"
)
Variables ¶
This section is empty.
Functions ¶
func GetByLocale ¶
func GetByLocale(locale string) (DependentInfos, DependentInfos, error)
func IsSupportedLocale ¶
Types ¶
type DependentInfo ¶
type DependentInfos ¶
type DependentInfos []DependentInfo
func (DependentInfos) GetConflictPackages ¶
func (infos DependentInfos) GetConflictPackages() DependentInfos
func (DependentInfos) GetPackagesByDependent ¶
func (infos DependentInfos) GetPackagesByDependent(dependent string) []string
type LangCodeInfo ¶
func GetLangCodeInfo ¶
func GetLangCodeInfo(locale, config string) (*LangCodeInfo, error)
type LangInfo ¶
type LangInfo struct { Locale string `json:"Locale"` Description string `json:"Description"` LangCode string `json:"LangCode"` CountryCode string `json:"CountryCode"` }
func (*LangInfo) ToLangCode ¶
func (info *LangInfo) ToLangCode() *LangCodeInfo
Click to show internal directories.
Click to hide internal directories.