How to change language to English
nobleson opened this issue · 4 comments
nobleson commented
I have issue configuring the language option to English.
import vSelectPage from 'v-selectpage'; Vue.use(vSelectPage, {lang:'en'}) ;
It is display the default Chinese
TerryZ commented
Try below:
import Vue from 'vue';
import selectpage from 'v-selectpage';
Vue.use(selectpage, {
language:'en'
});
nobleson commented
Than you @TerryZ .
Every thing is okay.
But how can i show table view, hence the desc?
Thanks
TerryZ commented
The v-selectpage
display by table view demo:
<template>
<v-selectpage :data="sample1" :tb-columns="columns">
</v-selectpage>
</template>
<script>
export default {
data(){
return {
sample1: [
{id:1 ,name:'The People\'s Republic of China',desc:'中华人民共和国'},
{id:2 ,name:'United States of America',desc:'美利坚合众国'},
{...}
],
columns:[
{title: 'id',data: 'id'},
{title: 'name',data: 'name'},
{title: 'desc',data: 'desc'},
]
}
}
};
</script>
More detail please visit: v-selectpage demo
nobleson commented
Thank you alot.