diff --git a/i18n/config.ts b/i18n/config.ts index 4c3a66c..57bb64d 100644 --- a/i18n/config.ts +++ b/i18n/config.ts @@ -38,7 +38,7 @@ const languages = { }, 'km-KH': { translation: translationKM, - } + }, }; type Language = keyof typeof languages; diff --git a/src/components/Icon/img/khmer.svg b/src/components/Icon/img/khmer.svg new file mode 100644 index 0000000..aedefed --- /dev/null +++ b/src/components/Icon/img/khmer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/LanguageSwitch/LanguageSwitch.tsx b/src/components/LanguageSwitch/LanguageSwitch.tsx index 9d00463..f6480dd 100644 --- a/src/components/LanguageSwitch/LanguageSwitch.tsx +++ b/src/components/LanguageSwitch/LanguageSwitch.tsx @@ -64,6 +64,11 @@ const getTranslatedCurrentLanguageDetails = ( translation: t('lng.ukraine'), icon: 'ukraine', }; + case 'km-KH': + return { + translation: t('lng.khmer'), + icon: 'khmer', + }; default: return { translation: t('lng.english'),