Documentation
¶
Overview ¶
Package localization loads immutable UI language packs. Message keys are the authored Simplified Chinese strings; missing entries fall back to English.
Index ¶
Constants ¶
const Default = "zh-CN"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pack ¶
type Pack struct {
Messages map[string]string `json:"messages"`
ID string `json:"id"`
Label string `json:"label"`
}
Pack is immutable after loading and safe to share between workbench views.
func Builtins ¶
func Builtins() []Pack
Builtins returns a copy of the catalog; callers must not mutate message maps.