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>
<label for="locale">locale</label>
<select v-model="locale">
<option>ar</option>
<option>bn</option>
<option>en</option>
<option>ko</option>
<option>id</option>
<option>hi</option>
<option>it</option>
</select>
</nav>
<div id="app">

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

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

Loading…
Cancel
Save