locales

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLocalize

func MustLocalize(lc *i18n.LocalizeConfig) string

/ MustLocalize 翻译字符串

func MustLocalizeMessage

func MustLocalizeMessage(msg *i18n.Message) string

/ MustLocalizeMessage 翻译字符串

func Tr

func Tr(messageID string) string

Tr 翻译没有参数的字符串

func TrParams

func TrParams(messageID string, params map[string]any) string

TrParams 翻译包含参数模板的字符串

func TrPlural

func TrPlural(messageID string, count any) string

TrPlural 翻译复数形式的字符串

func TrPluralParams

func TrPluralParams(messageID string, count any, params map[string]any) string

TrPluralParams 翻译复数形式且含有参数模板的字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL