Fix to list all existing locales (#442)

pull/443/head
hnisiji 3 years ago committed by GitHub
parent 00648c4623
commit cf1082f8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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: {

Loading…
Cancel
Save