Skip to content

Commit

Permalink
Merge pull request #3294 from getAlby/sinhala-language
Browse files Browse the repository at this point in the history
feat: add sinhalese to language switcher
  • Loading branch information
pavanjoshi914 authored Dec 24, 2024
2 parents cf0fe32 + 464e99b commit 6270a48
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/i18n/i18nConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import "dayjs/locale/it";
import "dayjs/locale/mr";
import "dayjs/locale/pl";
import "dayjs/locale/pt-br";
import "dayjs/locale/si";
import "dayjs/locale/sv";
import "dayjs/locale/zh-cn";
import i18n from "i18next";
Expand All @@ -28,6 +29,7 @@ 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 si from "~/i18n/locales/si/translation.json";
import sv from "~/i18n/locales/sv/translation.json";
import th from "~/i18n/locales/th/translation.json";
import zh_Hans from "~/i18n/locales/zh_Hans/translation.json";
Expand Down Expand Up @@ -125,6 +127,12 @@ export const resources = {
components: fa.components,
permissions: fa.permissions,
},
si: {
translation: si.translation,
common: si.common,
components: si.components,
permissions: si.permissions,
},
} as const;

// needs to be aligned with `resources`
Expand All @@ -145,6 +153,7 @@ export const supportedLocales = [
{ locale: "mr", label: "मराठी" },
{ locale: "th", label: "ไทย" },
{ locale: "fa", label: "فارسی" },
{ locale: "si", label: "Sinhalese" },
];

i18n
Expand Down

0 comments on commit 6270a48

Please sign in to comment.