From c2c94929a72e43abeb59d9a1f3e2c61ca67392fa Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 5 May 2020 19:27:53 +0700 Subject: [PATCH] add cambodia flag (khmer) and cleanup --- i18n/config.ts | 2 +- src/components/Icon/img/khmer.svg | 1 + src/components/LanguageSwitch/LanguageSwitch.tsx | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/components/Icon/img/khmer.svg 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'),