TerryZ/v-selectpage

How to change language to English

nobleson opened this issue · 4 comments

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

Try below:

import Vue from 'vue';
import selectpage from 'v-selectpage';

Vue.use(selectpage, {
    language:'en'
});

Than you @TerryZ .
Every thing is okay.
But how can i show table view, hence the desc?
Thanks

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

Thank you alot.