Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = StdConfig("default").Build()
)
Functions ¶
func MustLocalize ¶
func MustLocalize(ctx *ginserver.Context, localizeConfig *i18n.LocalizeConfig) string
func NewLocalizer ¶
Types ¶
type Config ¶
type Config struct { LanguageDir string `config:"languageDir" desc:"language files directory"` // contains filtered or unexported fields }
Config 配置
type Locales ¶
type Locales struct {
// contains filtered or unexported fields
}
func (*Locales) MustLocalize ¶
Click to show internal directories.
Click to hide internal directories.