Fix quiz-app i18n bug, supporting ar & bn now (#204)

pull/220/head
Jks Liu 3 years ago committed by GitHub
parent 5bf474520a
commit d237778e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,11 +4,9 @@
<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>ar</option>
<option>bn</option>
<option>en</option> <option>en</option>
<option>ko</option>
<option>id</option>
<option>hi</option>
<option>it</option>
</select> </select>
</nav> </nav>
<div id="app"> <div id="app">

@ -788,7 +788,7 @@
"questionText": "IoT Hub সিক্যুরিটি ছাড়াই যেকোন ডিভাইস কানেক্ট করতে দেয়", "questionText": "IoT Hub সিক্যুরিটি ছাড়াই যেকোন ডিভাইস কানেক্ট করতে দেয়",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "মিথ্যা"", "answerText": "মিথ্যা",
"isCorrect": "true" "isCorrect": "true"
}, },
{ {

@ -1,9 +1,13 @@
// index.js // index.js
import ar from './ar.json';
import bn from './bn.json';
import en from './en.json'; import en from './en.json';
//export const defaultLocale = 'en'; //export const defaultLocale = 'en';
const messages = { const messages = {
ar: ar[0],
bn: bn[0],
en: en[0], en: en[0],
}; };

Loading…
Cancel
Save