Skip to content

Commit

Permalink
feat: add tamil and russian language to locale switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Jan 2, 2025
1 parent cc6b038 commit a6630a2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/i18n/i18nConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import "dayjs/locale/it";
import "dayjs/locale/mr";
import "dayjs/locale/pl";
import "dayjs/locale/pt-br";
import "dayjs/locale/ru";
import "dayjs/locale/si";
import "dayjs/locale/sv";
import "dayjs/locale/ta";
import "dayjs/locale/zh-cn";
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
Expand All @@ -29,8 +31,10 @@ import it from "~/i18n/locales/it/translation.json";
import mr from "~/i18n/locales/mr/translation.json";
import pl from "~/i18n/locales/pl/translation.json";
import pt_BR from "~/i18n/locales/pt_BR/translation.json";
import ru from "~/i18n/locales/ru/translation.json";
import si from "~/i18n/locales/si/translation.json";
import sv from "~/i18n/locales/sv/translation.json";
import ta from "~/i18n/locales/ta/translation.json";
import th from "~/i18n/locales/th/translation.json";
import zh_Hans from "~/i18n/locales/zh_Hans/translation.json";

Expand Down Expand Up @@ -133,6 +137,18 @@ export const resources = {
components: si.components,
permissions: si.permissions,
},
ta: {
translation: ta.translation,
common: ta.common,
components: ta.components,
permissions: ta.permissions,
},
ru: {
translation: ru.translation,
common: ru.common,
components: ru.components,
permissions: ru.permissions,
},
} as const;

// needs to be aligned with `resources`
Expand All @@ -154,6 +170,8 @@ export const supportedLocales = [
{ locale: "th", label: "ไทย" },
{ locale: "fa", label: "فارسی" },
{ locale: "si", label: "Sinhalese" },
{ locale: "ta", label: "Tamil" },
{ locale: "ru", label: "Russian" },
];

i18n
Expand Down

0 comments on commit a6630a2

Please sign in to comment.