iview / iview-project

This project is build for Vue.js 2 + vue-router + webpack2 + iView 3
MIT License
839 stars 389 forks source link

How to use `globalization` to `EN`? #23

Open thearabbit opened 7 years ago

thearabbit commented 7 years ago

How to use globalization to EN? I tried

// main.js
import locale from 'iview/src/locale/lang/en-US';
Vue.use(iView,{locale});
----------
// index.vue
<Date-picker type="date" placeholder="Date picker" style="width: 200px"></Date-picker>

But don't work

ericcgu commented 6 years ago

Go to Vendors.js file and copy

import locale from 'iview/dist/locale/en-US'; Vue.use(iView, { locale });