Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I18n ¶ added in v1.0.2
type I18n struct {
// contains filtered or unexported fields
}
func (*I18n) Locale ¶ added in v1.0.2
func (i *I18n) Locale(locale string) *translator.Translator
Locale returns the translator instance by the given locale
func (*I18n) SetDefaultLocale ¶ added in v1.0.2
SetDefaultLocale set the default locale
Click to show internal directories.
Click to hide internal directories.