feat(i18n): add Korean (ko) translation

Adds a complete Korean locale (surfsense_web/messages/ko.json) with full
key parity with en.json, and wires ko into every place locales are
currently enumerated: next-intl routing config, the client-side locale
context/loader, and the two language-switcher UIs (main app + sidebar
user profile).
This commit is contained in:
moduvoice 2026-07-10 11:22:54 +07:00
parent 1ae927a7db
commit d3d8f10940
5 changed files with 830 additions and 5 deletions

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