Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bundle = sync.OnceValue(func() *i18n.Bundle { bundle := i18n.NewBundle(language.English) bundle.RegisterUnmarshalFunc("toml", toml.Unmarshal) _, err := bundle.LoadMessageFileFS(localesFS, "locales/zh-Hans.toml") if err != nil { slog.Error(err.Error()) os.Exit(1) } return bundle })
View Source
var DefaultLocalizer = sync.OnceValue(func() *i18n.Localizer { return i18n.NewLocalizer(Bundle(), Languages()...) })
Functions ¶
func LocalizeConfig ¶ added in v0.3.2
func LocalizeConfig(config *i18n.LocalizeConfig) string
Types ¶
type Settings ¶ added in v0.3.0
type Settings struct { Proxy string // bool ProxyAddress string Script string // bool ScriptAddress string AutoDetect string // bool BypassList []string }
func (Settings) BaseInfoRows ¶ added in v0.3.1
func (Settings) BaseInfoTable ¶ added in v0.3.0
func (Settings) BypassListTable ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.