From 5044286a75d55f21c404f7618865f329c1de9ec4 Mon Sep 17 00:00:00 2001 From: Jks Liu Date: Wed, 14 Jul 2021 19:24:00 +0800 Subject: [PATCH] Fix quiz-app i18n bug, supporting ar & bn now --- 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 41b741aa..a6a92613 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 737d911f..1617b609 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 ffcbad94..1f118787 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], };