Docs Navigation

Internationalization (i18n)

FormKit ships with internationalization support for all of its interfaces and validation messages. Currently, FormKit supports the following languages (in the @formkit/i18n package):

  • 🇱🇾 Arabic (ar) — 🙏 @Ahmedelforjani
  • 🇨🇳 Chinese (zh) — 🙏 @myleslee
  • 🇭🇷 Croatian (hr) — 🙏 @antemarkic
  • 🇨🇿 Czech (cs) — 🙏 @dfridrich
  • 🇩🇰 Danish (da) — 🙏 @bjerggaard
  • 🇳🇱 Dutch (nl) — 🙏 @arjendejong12
  • 🇺🇸 English (en)
  • 🇫🇮 Finish - (fi) — 🙏 @mihqusta
  • 🇫🇷 French (fr) — 🙏 @HoreKk, @pop123123123
  • Frisian flag Frisian (fy) — 🙏 @arjendejong12
  • 🇩🇪 German (de) — 🙏 @digitalkaoz, @tosling
  • 🇮🇱 Hebrew (he) - 🙏 @Hepi420
  • 🇮🇩 Indonesian (id) - 🙏 @rama-adi
  • 🇮🇹 Italian (it) - 🙏 @punga78, @Archetipo95
  • 🇯🇵 Japanese (ja) - 🙏 @wonyx
  • 🇰🇷 Korean (ko) - 🙏 @bwp618, @titusdecali
  • 🇮🇷 Persian (fa) - 🙏 @shahabbasian
  • 🇵🇱 Polish (pl) - 🙏 @xxSkyy
  • 🇧🇷 Portuguese (pt) 🙏 @r-martins
  • 🇷🇴 Romanian (ro) - 🙏 @danve
  • 🇷🇺 Russian (ru) - 🙏 @andreimakushkin
  • 🇸🇮 Slovenian (sl) - 🙏 @krisflajs
  • 🇦🇷 Spanish (es) - 🙏 @inibg
  • 🇸🇪 Swedish (sv) - 🙏 @purung
  • 🇹🇭 Thai (th) - 🙏 @pknn
  • 🇹🇷 Turkish (tr) - 🙏 @ragokan
  • 🇻🇳 Vietnamese (vi) - 🙏 @oanhnn

Although flags are poor representations of languages (flags indicate a geographic nation, while languages can be spoken in many ares of the world), we use the flags in the list above to indicate the location of the contributor who created that particular locale.

Help others who speak your language! Contribute a locale

Using a locale

FormKit’s defaultConfig includes the english locale by default — to add an additional locale, import it from @formkit/i18n and append it to the locales option when you initialized the FormKit plugin. To set the active locale specify it with the locale option:

Changing the active locale

There are two ways to change your active locale:

  • Using this.$formkit.setLocale() from the Vue plugin (best for options API).
  • Directly modifying the root config object (best for composition API).

Using setLocale

When using Vue’s options API, you have access to this.$formkit which contains setLocale('de') — a purpose-built method that globally changes the current locale:

Load Live Example

Using root config

When using the composition API, you won’t have access to this.$formkit. Instead, you can fetch and modify the root FormKit configuration object. This is made available globally via Vue’s inject mechanism and a unique Symbol:

Load Live Example


If you find a phrase in your locale isn’t worded the way you prefer, you can override those individual messages globally in your configuration. You can do this by providing a messages object to the defaultConfig:

Message keys
Messages are generally found under a locale’s ui or validation property. To see a full list of keys and messages checkout the english locale.

Adding your language

Writing a locale for a language you know is a great way to contribute to FormKit and an easy way to get started with open source too! We are always eager to see pull requests for new locales. To support this effort, we’ve created a locale builder — a small web app to make the translation process as easy as possible.

Help others who speak your language! Contribute a locale

Of course, you are not required to use our locale builder to submit a language, and are more than welcome to submit a standard pull request with your locale included.

If your language is already on the list (let's say English), but your locality speaks a variation of that language (like 🇬🇧 en-GB), please feel free to submit your localized language.