From 3a1ed7a1c13fead9ccd68e5b33cc81116547b6dc Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 2 Nov 2024 16:05:50 +0530 Subject: [PATCH] feat: Add Swedish language support Adds Swedish language support to the application, including translations and a new language option in the settings. --- src/i18n/index.ts | 4 +++- src/i18n/support-language.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 0b49571..97bbf6f 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -13,6 +13,7 @@ import { fa } from "./lang/fa"; import { de } from "./lang/de"; import { da } from "./lang/da"; import { no } from "./lang/no"; +import { sv } from "./lang/sv"; i18n @@ -35,7 +36,8 @@ i18n "fa-IR": fa, da: da, no: no, - de: de + de: de, + sv: sv }, fallbackLng: "en", lng: localStorage.getItem("i18nextLng") || "en", diff --git a/src/i18n/support-language.ts b/src/i18n/support-language.ts index c9bbfa1..2c62ad4 100644 --- a/src/i18n/support-language.ts +++ b/src/i18n/support-language.ts @@ -51,5 +51,9 @@ export const supportLanguage = [ { label: "Norsk", value: "no" + }, + { + value: "sv", + label: "Svenska" } ]