From 8f4f11aafa716bc19964647fca79f379d82762ae Mon Sep 17 00:00:00 2001 From: Niaz Date: Sat, 2 Mar 2024 14:15:00 +0100 Subject: [PATCH] Add hindi --- src/i18n.ts | 4 ++++ src/layouts/settings/Profile.tsx | 4 ++++ src/locales/en/translation.json | 1 + 3 files changed, 9 insertions(+) diff --git a/src/i18n.ts b/src/i18n.ts index c1395a26..f504263f 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -11,6 +11,7 @@ import translationEs from "./locales/es/translation.json"; import translationEu from "./locales/eu/translation.json"; import translationFi from "./locales/fi/translation.json"; import translationFr from "./locales/fr/translation.json"; +import translationHi from "./locales/hi/translation.json"; import translationIt from "./locales/it/translation.json"; import translationJa from "./locales/ja/translation.json"; import translationKo from "./locales/ko/translation.json"; @@ -103,6 +104,9 @@ const resources = { ur: { translation: translationUr, }, + hi: { + translation: translationHi, + }, }; i18n // detect user language diff --git a/src/layouts/settings/Profile.tsx b/src/layouts/settings/Profile.tsx index 0150f60a..4fa2a5bf 100644 --- a/src/layouts/settings/Profile.tsx +++ b/src/layouts/settings/Profile.tsx @@ -363,6 +363,10 @@ export function Profile() { value: "ur", label: t("settings.urdu"), }, + { + value: "hi", + label: t("settings.hindi"), + }, ]} />