mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
Merge pull request #1592 from moduvoice/feat/ko-i18n-translation
feat(i18n): add Korean (ko) translation
This commit is contained in:
commit
e32413588e
5 changed files with 830 additions and 5 deletions
|
|
@ -25,6 +25,7 @@ export function LanguageSwitcher() {
|
|||
{ code: "pt" as const, name: "Português", flag: "🇧🇷" },
|
||||
{ code: "hi" as const, name: "हिन्दी", flag: "🇮🇳" },
|
||||
{ code: "zh" as const, name: "简体中文", flag: "🇨🇳" },
|
||||
{ code: "ko" as const, name: "한국어", flag: "🇰🇷" },
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
@ -32,7 +33,7 @@ export function LanguageSwitcher() {
|
|||
* Updates locale in context and localStorage
|
||||
*/
|
||||
const handleLanguageChange = (newLocale: string) => {
|
||||
setLocale(newLocale as "en" | "es" | "pt" | "hi" | "zh");
|
||||
setLocale(newLocale as "en" | "es" | "pt" | "hi" | "zh" | "ko");
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ const LANGUAGES = [
|
|||
{ code: "pt" as const, name: "Português", flag: "🇧🇷" },
|
||||
{ code: "hi" as const, name: "हिन्दी", flag: "🇮🇳" },
|
||||
{ code: "zh" as const, name: "简体中文", flag: "🇨🇳" },
|
||||
{ code: "ko" as const, name: "한국어", flag: "🇰🇷" },
|
||||
];
|
||||
|
||||
// Supported themes configuration
|
||||
|
|
@ -157,7 +158,7 @@ export function SidebarUserProfile({
|
|||
const showDownloadCta = !isDesktop && !isMobileOS && isDesktopViewport;
|
||||
const useMobileSubmenus = !isDesktopViewport;
|
||||
|
||||
const handleLanguageChange = (newLocale: "en" | "es" | "pt" | "hi" | "zh") => {
|
||||
const handleLanguageChange = (newLocale: "en" | "es" | "pt" | "hi" | "zh" | "ko") => {
|
||||
setLocale(newLocale);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue