From d237778e7ad6a865f01a314ca90d8da429c3c2e0 Mon Sep 17 00:00:00 2001 From: Jks Liu Date: Wed, 14 Jul 2021 23:44:42 +0800 Subject: [PATCH] Fix quiz-app i18n bug, supporting ar & bn now (#204) --- quiz-app/src/App.vue | 6 ++---- quiz-app/src/assets/translations/bn.json | 2 +- quiz-app/src/assets/translations/index.js | 4 ++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/quiz-app/src/App.vue b/quiz-app/src/App.vue index 41b741a..a6a9261 100644 --- a/quiz-app/src/App.vue +++ b/quiz-app/src/App.vue @@ -4,11 +4,9 @@ Home
diff --git a/quiz-app/src/assets/translations/bn.json b/quiz-app/src/assets/translations/bn.json index 737d911..1617b60 100644 --- a/quiz-app/src/assets/translations/bn.json +++ b/quiz-app/src/assets/translations/bn.json @@ -788,7 +788,7 @@ "questionText": "IoT Hub সিক্যুরিটি ছাড়াই যেকোন ডিভাইস কানেক্ট করতে দেয়", "answerOptions": [ { - "answerText": "মিথ্যা"", + "answerText": "মিথ্যা", "isCorrect": "true" }, { diff --git a/quiz-app/src/assets/translations/index.js b/quiz-app/src/assets/translations/index.js index ffcbad9..1f11878 100644 --- a/quiz-app/src/assets/translations/index.js +++ b/quiz-app/src/assets/translations/index.js @@ -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], };