Documentation ¶
Overview ¶
Usage:
import "github.com/astaxie/beego/middleware"
I18N = middleware.NewLocale("conf/i18n.conf", beego.AppConfig.String("language"))
more docs: http://beego.me/docs/module/i18n.md
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translation ¶ added in v1.4.0
type Translation struct { CurrentLocal string Locales map[string]map[string]string // contains filtered or unexported fields }
func NewLocale ¶ added in v1.4.0
func NewLocale(filepath string, defaultlocal string) *Translation
func (*Translation) SetLocale ¶ added in v1.4.0
func (t *Translation) SetLocale(local string)
Click to show internal directories.
Click to hide internal directories.