Skip to content

Commit

Permalink
chore: add Khmer language into deriv-app
Browse files Browse the repository at this point in the history
  • Loading branch information
suisin-deriv committed Jun 20, 2024
1 parent 427b9b2 commit 042b702
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const languages = {
FR: 'Français',
ID: 'Indonesian',
IT: 'Italiano',
KM: 'ខ្មែរ',
KO: '한국어',
MN: 'Монгол',
PL: 'Polish',
Expand Down
3 changes: 3 additions & 0 deletions packages/p2p/src/components/i18next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import de from 'Translations/de.json';
import fr from 'Translations/fr.json';
import id from 'Translations/id.json';
import it from 'Translations/it.json';
// import km from 'Translations/km.json';
import ko from 'Translations/ko.json';
import mn from 'Translations/mn.json';
import pl from 'Translations/pl.json';
Expand Down Expand Up @@ -48,6 +49,8 @@ const i18n_config = {
FR: { translations: { ...fr } },
ID: { translations: { ...id } },
IT: { translations: { ...it } },
//TODOs: uncomment this when km.json is ready in p2p
// KM: { translations: { ...km } },
KO: { translations: { ...ko } },
MN: { translations: { ...mn } },
PL: { translations: { ...pl } },
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/src/utils/constants/translation-flag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import {
FlagArabLeagueIcon,
FlagBangladeshIcon,
FlagCambodiaIcon,
FlagChinaSimplifiedIcon,
FlagChinaTraditionalIcon,
FlagFranceIcon,
Expand Down Expand Up @@ -34,6 +35,7 @@ export const TranslationFlag: TTranslationFlag = {
FR: size => <FlagFranceIcon iconSize={size} />,
ID: size => <FlagIndonesiaIcon iconSize={size} />,
IT: size => <FlagItalyIcon iconSize={size} />,
KM: size => <FlagCambodiaIcon iconSize={size} />,
// KO: ,
MN: size => <FlagMongoliaIcon iconSize={size} />,
PL: size => <FlagPolandIcon iconSize={size} />,
Expand Down
2 changes: 2 additions & 0 deletions packages/translations/src/i18next/i18next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ALL_LANGUAGES = Object.freeze({
FR: 'Français',
ID: 'Indonesian',
IT: 'Italiano',
KM: 'ខ្មែរ',
KO: '한국어',
MN: 'Монгол',
PL: 'Polish',
Expand All @@ -37,6 +38,7 @@ export const getAllowedLanguages = () => {
ES: 'Español',
BN: 'বাংলা',
DE: 'Deutsch',
KM: 'ខ្មែរ',
KO: '한국어',
MN: 'Монгол',
PT: 'Português',
Expand Down

0 comments on commit 042b702

Please sign in to comment.