All uiv components use en-US
as default language and they are both configurable.
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.
vue-i18n
🔗uiv is compatible with vue-i18n as well.
Note: You need 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, {
// ...
})
(Sorted by alphabet)
Welcome to contribute if your target language is not included: just add another language config here and create a pull request.
Caught a mistake or want to contribute to the documentation? Edit this page on Github!
Designed and built by @wxsm
Code under MIT License
Document under CC BY 4.0