Skip to main content

I18n Support

Less than 1 minute...

Waline has built-in multi-language support, and you can also customize Waline's locale config.

Set Language

You can set the language used by Waline through the lang option. The supported languages are:

  • zh
  • zh-CN
  • zh-TW
  • en
  • en-US
  • jp
  • jp-JP
  • pt-BR
  • ru
  • ru-RU
  • fr-FR
  • fr
  • vi
  • vi-vn

E.g.:

Waline.init({
  el: '#waline',
  // ...
  lang: 'en',
});

Tips

If you want to help Waline add more language support, we welcome you to send a PR to client/config/i18nopen in new window.

Customize

You can customize the language through the locale option, or set some fields to overwrite the existing UI text.

For details, see Cookbook → Customize Locale

TIPS: The comment area is only for demo. If you have any questions, please go to Github Discussion to ask.
What do you think?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v3.1.3