Skip to content

Commit

Permalink
feat: Add Korean language support
Browse files Browse the repository at this point in the history
Add Korean language support to the application. This includes translating the necessary UI elements and adding Korean to the supported language list.
  • Loading branch information
n4ze3m committed Nov 10, 2024
1 parent a96193b commit 5678a0f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { de } from "./lang/de";
import { da } from "./lang/da";
import { no } from "./lang/no";
import { sv } from "./lang/sv";
import { ko } from "./lang/ko";


i18n
Expand All @@ -37,7 +38,8 @@ i18n
da: da,
no: no,
de: de,
sv: sv
sv: sv,
ko: ko,
},
fallbackLng: "en",
lng: localStorage.getItem("i18nextLng") || "en",
Expand Down
19 changes: 19 additions & 0 deletions src/i18n/lang/ko.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import option from "@/assets/locale/ko/option.json";
import playground from "@/assets/locale/ko/playground.json";
import common from "@/assets/locale/ko/common.json";
import sidepanel from "@/assets/locale/ko/sidepanel.json";
import settings from "@/assets/locale/ko/settings.json";
import knowledge from "@/assets/locale/ko/knowledge.json";
import chrome from "@/assets/locale/ko/chrome.json";
import openai from "@/assets/locale/ko/openai.json";

export const ko = {
option,
playground,
common,
sidepanel,
settings,
knowledge,
chrome,
openai
}
4 changes: 4 additions & 0 deletions src/i18n/support-language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ export const supportLanguage = [
{
value: "sv",
label: "Svenska"
},
{
value: "ko",
label: "한국어"
}
]

0 comments on commit 5678a0f

Please sign in to comment.