Merge pull request #1592 from moduvoice/feat/ko-i18n-translation

feat(i18n): add Korean (ko) translation
This commit is contained in:
Rohan Verma 2026-07-10 21:45:42 -07:00 committed by GitHub
commit e32413588e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 830 additions and 5 deletions

View file

@ -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 (

View file

@ -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);
};