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 ¶
func LocalizeConfig(config *i18n.LocalizeConfig) string
Types ¶
type Settings ¶
type Settings struct {
Proxy string // bool
ProxyAddress string
Script string // bool
ScriptAddress string
AutoDetect string // bool
BypassList []string
}
func (Settings) BaseInfoRows ¶
func (Settings) BaseInfoTable ¶
func (Settings) BypassListTable ¶
Click to show internal directories.
Click to hide internal directories.