|
|
@ -4,19 +4,7 @@
|
|
|
|
<router-link class="navlink" to="/">Home</router-link>
|
|
|
|
<router-link class="navlink" to="/">Home</router-link>
|
|
|
|
<label for="locale">locale</label>
|
|
|
|
<label for="locale">locale</label>
|
|
|
|
<select v-model="locale">
|
|
|
|
<select v-model="locale">
|
|
|
|
<option>en</option>
|
|
|
|
<option v-for="localeName in availableLocales" :key="localeName">{{ localeName }}</option>
|
|
|
|
<option>es</option>
|
|
|
|
|
|
|
|
<option>fr</option>
|
|
|
|
|
|
|
|
<option>gr</option>
|
|
|
|
|
|
|
|
<option>hi</option>
|
|
|
|
|
|
|
|
<option>id</option>
|
|
|
|
|
|
|
|
<option>it</option>
|
|
|
|
|
|
|
|
<option>ko</option>
|
|
|
|
|
|
|
|
<option>ms</option>
|
|
|
|
|
|
|
|
<option>nl</option>
|
|
|
|
|
|
|
|
<option>zh_cn</option>
|
|
|
|
|
|
|
|
<option>zh_tw</option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</nav>
|
|
|
|
</nav>
|
|
|
|
<div id="app">
|
|
|
|
<div id="app">
|
|
|
@ -41,6 +29,7 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
locale: "en",
|
|
|
|
locale: "en",
|
|
|
|
|
|
|
|
availableLocales: Object.keys(messages).sort(),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|