feat(i18n): add Khmer language support
Register Khmer (km) locale, add complete 1,394-entry dashboard translation, and show the Cambodia flag in the language selector. Place Khmer immediately before Thai in the selector and keep the header locale in sync after switching.
This commit is contained in:
@@ -20,6 +20,7 @@ export const LOCALES = [
|
||||
"uk",
|
||||
"tl",
|
||||
"id",
|
||||
"km",
|
||||
"th",
|
||||
"hi",
|
||||
"bn",
|
||||
@@ -60,6 +61,7 @@ export const LOCALE_NAMES = {
|
||||
tl: "Tagalog",
|
||||
id: "Indonesia",
|
||||
th: "ไทย",
|
||||
km: "ខ្មែរ",
|
||||
hi: "हिन्दी",
|
||||
bn: "বাংলা",
|
||||
ur: "اردو",
|
||||
@@ -141,6 +143,9 @@ export function normalizeLocale(locale) {
|
||||
if (locale === "th") {
|
||||
return "th";
|
||||
}
|
||||
if (locale === "km") {
|
||||
return "km";
|
||||
}
|
||||
if (locale === "hi") {
|
||||
return "hi";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user