summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorLarvan2 <[email protected]>2023-12-29 03:30:36 +0000
committerLarvan2 <[email protected]>2023-12-29 03:30:36 +0000
commit805e8de8ecb94d55eeaee5882102ce9c0df4214c (patch)
treeea2ff232c374454e4eb5db42c6cd99a21d1d2fc0 /src/misc
parentd939e4ad247d1421335eb97b48b9669a8e0892d2 (diff)
merge PR #78 :
commit 3f4f07ec2e8eee617d8bb4f1a3632ccca98acca9 Author: vuong2023 <[email protected]> Date: Wed Dec 27 21:30:52 2023 +0700 Update vi.ts commit 93356fb651bc4f7e49459855237e20caa6776f86 Author: vuong2023 <[email protected]> Date: Wed Dec 27 21:29:44 2023 +0700 Create vi.ts commit c5c7daef5a21e13b5404f25abad9a94cd7c9a4b2 Author: vuong2023 <[email protected]> Date: Wed Dec 27 21:25:13 2023 +0700 Update i18n.ts Upadte: Add Vietnamese language i18n file!
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/i18n.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc/i18n.ts b/src/misc/i18n.ts
index 0c64740..89c9e0a 100644
--- a/src/misc/i18n.ts
+++ b/src/misc/i18n.ts
@@ -7,6 +7,7 @@ const allLocales = {
zh_cn: import('~/i18n/zh-cn'),
zh_tw: import('~/i18n/zh-tw'),
en: import('~/i18n/en'),
+ vi: import('~/i18n/vi'),
};
type BackendRequestCallback = (err: null, result: { status: number; data: any }) => void;
@@ -39,6 +40,9 @@ i18next
case '/__en/translation.json':
p = allLocales.en;
break;
+ case '/__vi/translation.json':
+ p = allLocales.vi;
+ break;
default:
p = allLocales.zh_cn;
break;
@@ -51,7 +55,7 @@ i18next
}
},
},
- supportedLngs: ['zh-CN', 'zh-TW', 'en'],
+ supportedLngs: ['zh-CN', 'zh-TW', 'en', 'vi'],
load: 'currentOnly',
fallbackLng: 'en',
interpolation: {