Skip to content

Commit 875750d

Browse files
committed
chore: add locales
1 parent bb996c4 commit 875750d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/lib/i18n.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import ruTranslation from "../locales/ru/translation.json"
99
import taTranslation from "../locales/ta/translation.json"
1010
import zhCNTranslation from "../locales/zh-CN/translation.json"
1111
import zhTWTranslation from "../locales/zh-TW/translation.json"
12+
import frTranslation from "../locales/fr/translation.json"
13+
import idTranslation from "../locales/id/translation.json"
1214

1315
const resources = {
1416
"zh-CN": {
@@ -35,6 +37,12 @@ const resources = {
3537
"it-IT": {
3638
translation: itTranslation,
3739
},
40+
"fr-FR": {
41+
translation: frTranslation,
42+
},
43+
"id-ID": {
44+
translation: idTranslation,
45+
},
3846
}
3947

4048
const getStoredLanguage = () => {

src/types/settings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const nezhaLang: Record<string, string> = {
1414
"de-DE": "Deutsch",
1515
"ta-IN": "தமிழ்",
1616
"it-IT": "Italiano",
17+
"fr-FR": "Français",
18+
"id-ID": "Bahasa Indonesia",
1719
}
1820

1921
export const wafBlockReasons: Record<number, string> = {

0 commit comments

Comments
 (0)