setLocale()

Set the locale and the localization data

* presents a required parameter

  • locale * — The locale in the format of countrycode_LANGUAGECODE. en_US, de_DE, fr_FR, vi_VN, for example
  • localization * — An object containing the translation of all validators

This method is useful when you want to switch to another locale. See the L10n plugin for an example.

You can access the translation directly from the packages located in the dist/js/locates folder: