# I18n
All uiv components use en-US
as default language and they are both configurable.
# Example
import Vue from 'vue'
import uiv from 'uiv'
import locale from 'uiv/src/locale/lang/zh-CN'
Vue.use(uiv, { locale })
You can also create custom wordings if not satisfied with the defaults, simply create your own locale
object and replace with the one in example code.
# With vue-i18n
uiv is compatible with vue-i18n (opens new window) as well.
You have to merge uiv language packs into your app's. For example:
import uivLocale from 'uiv/src/locale/lang/zh-CN'
let appLocale = Object.assign({}, uivLocale, {
// ...
})
# Supported languages
(Sorted by alphabet)
- ar-EG
- bg-BG
- ca-ES
- cs-CZ
- de-DE
- en-US
- es-ES
- fi-FI
- fr-FR
- hu-HU
- it-IT
- ja-JP
- nb-NO
- nl-NL
- pt-BR
- ro-RO
- ru-RU
- sv-SE
- tr-TR
- zh-CN
Welcome to contribute if your target language is not included:
- Add another language config here (opens new window);
- Create a pull request.