Documentation
│ main.go
└───locales
├───el-GR
│ home.yml
├───en-US
│ home.yml
└───zh-CN
home.ymlapp := iris.New()
// First parameter: Glob filpath patern,
// Second variadic parameter: Optional language tags,
// the first one is the default/fallback one.
app.I18n.Load("./locales/*/*", "en-US", "el-GR", "zh-CN")app.I18n.Load("./locales/*/*")
// Then set the default language using:
app.I18n.SetDefault("en-US")Load embedded locales
Defining Translations
Fmt Style
Template
Pluralization
Sections
Determining The Current Locale
Retrieving Translation
Inside Views
Last updated
Was this helpful?