Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mayuran/BOT-2612/language fix #188

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 88 additions & 23 deletions src/utils/languages.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import {
FlagArabLeagueIcon,
FlagBangladeshIcon,
FlagCambodiaIcon,
FlagChinaSimplifiedIcon,
FlagChinaTraditionalIcon,
FlagFranceIcon,
FlagGermanyIcon,
FlagItalyIcon,
FlagPolandIcon,
FlagPortugalIcon,
FlagRussiaIcon,
FlagSouthKoreaIcon,
FlagSpainIcon,
FlagSriLankaIcon,
FlagTanzaniaIcon,
FlagThailandIcon,
FlagTurkeyIcon,
FlagUnitedKingdomIcon,
FlagUzbekistanIcon,
FlagVietnamIcon,
} from '@deriv/quill-icons/Flags';

Expand All @@ -29,26 +37,61 @@ export const LANGUAGES = [
placeholderIconInMobile: <FlagArabLeagueIcon height={14.67} width={22} />,
},
{
code: 'ES',
displayName: 'Español',
icon: <FlagSpainIcon height={24} width={36} />,
placeholderIcon: <FlagSpainIcon height={12} width={18} />,
placeholderIconInMobile: <FlagSpainIcon height={14.67} width={22} />,
code: 'BN',
displayName: 'বাংলা',
icon: <FlagBangladeshIcon height={24} width={36} />,
placeholderIcon: <FlagBangladeshIcon height={12} width={18} />,
placeholderIconInMobile: <FlagBangladeshIcon height={14.67} width={22} />,
},

{
code: 'DE',
displayName: 'Deutsch',
icon: <FlagGermanyIcon height={24} width={36} />,
placeholderIcon: <FlagGermanyIcon height={12} width={18} />,
placeholderIconInMobile: <FlagGermanyIcon height={14.67} width={22} />,
},

{
code: 'PT',
displayName: 'Português',
icon: <FlagPortugalIcon height={24} width={36} />,
placeholderIcon: <FlagPortugalIcon height={12} width={18} />,
placeholderIconInMobile: <FlagPortugalIcon height={14.67} width={22} />,
code: 'ES',
displayName: 'Español',
icon: <FlagSpainIcon height={24} width={36} />,
placeholderIcon: <FlagSpainIcon height={12} width={18} />,
placeholderIconInMobile: <FlagSpainIcon height={14.67} width={22} />,
},
{
code: 'FR',
displayName: 'Français',
icon: <FlagFranceIcon height={24} width={36} />,
placeholderIcon: <FlagFranceIcon height={12} width={18} />,
placeholderIconInMobile: <FlagFranceIcon height={14.67} width={22} />,
},
{
code: 'IT',
displayName: 'Italiano',
icon: <FlagItalyIcon height={24} width={36} />,
placeholderIcon: <FlagItalyIcon height={12} width={18} />,
placeholderIconInMobile: <FlagItalyIcon height={14.67} width={22} />,
},
{
code: 'SW',
displayName: 'Kiswahili',
icon: <FlagTanzaniaIcon height={24} width={36} />,
placeholderIcon: <FlagTanzaniaIcon height={12} width={18} />,
placeholderIconInMobile: <FlagTanzaniaIcon height={14.67} width={22} />,
},
{
code: 'KM',
displayName: 'ខ្មែរ',
icon: <FlagCambodiaIcon height={24} width={36} />,
placeholderIcon: <FlagCambodiaIcon height={12} width={18} />,
placeholderIconInMobile: <FlagCambodiaIcon height={14.67} width={22} />,
},
{
code: 'KO',
displayName: '한국어',
icon: <FlagSouthKoreaIcon height={24} width={36} />,
placeholderIcon: <FlagSouthKoreaIcon height={12} width={18} />,
placeholderIconInMobile: <FlagSouthKoreaIcon height={14.67} width={22} />,
},
{
code: 'PL',
Expand All @@ -57,6 +100,13 @@ export const LANGUAGES = [
placeholderIcon: <FlagPolandIcon height={12} width={18} />,
placeholderIconInMobile: <FlagPolandIcon height={14.67} width={22} />,
},
{
code: 'PT',
displayName: 'Português',
icon: <FlagPortugalIcon height={24} width={36} />,
placeholderIcon: <FlagPortugalIcon height={12} width={18} />,
placeholderIconInMobile: <FlagPortugalIcon height={14.67} width={22} />,
},
{
code: 'RU',
displayName: 'Русский',
Expand All @@ -65,18 +115,11 @@ export const LANGUAGES = [
placeholderIconInMobile: <FlagRussiaIcon height={14.67} width={22} />,
},
{
code: 'FR',
displayName: 'Français',
icon: <FlagFranceIcon height={24} width={36} />,
placeholderIcon: <FlagFranceIcon height={12} width={18} />,
placeholderIconInMobile: <FlagFranceIcon height={14.67} width={22} />,
},
{
code: 'IT',
displayName: 'Italiano',
icon: <FlagItalyIcon height={24} width={36} />,
placeholderIcon: <FlagItalyIcon height={12} width={18} />,
placeholderIconInMobile: <FlagItalyIcon height={14.67} width={22} />,
code: 'SI',
displayName: 'සිංහල',
icon: <FlagSriLankaIcon height={24} width={36} />,
placeholderIcon: <FlagSriLankaIcon height={12} width={18} />,
placeholderIconInMobile: <FlagSriLankaIcon height={14.67} width={22} />,
},
{
code: 'TH',
Expand All @@ -92,11 +135,33 @@ export const LANGUAGES = [
placeholderIcon: <FlagTurkeyIcon height={12} width={18} />,
placeholderIconInMobile: <FlagTurkeyIcon height={14.67} width={22} />,
},
{
code: 'UZ',
displayName: `O'zbek`,
icon: <FlagUzbekistanIcon height={24} width={36} />,
placeholderIcon: <FlagUzbekistanIcon height={12} width={18} />,
placeholderIconInMobile: <FlagUzbekistanIcon height={14.67} width={22} />,
},

{
code: 'VI',
displayName: 'Tiếng Việt',
icon: <FlagVietnamIcon height={24} width={36} />,
placeholderIcon: <FlagVietnamIcon height={12} width={18} />,
placeholderIconInMobile: <FlagVietnamIcon height={14.67} width={22} />,
},
{
code: 'ZH_CN',
displayName: '简体中文',
icon: <FlagChinaSimplifiedIcon height={24} width={36} />,
placeholderIcon: <FlagChinaSimplifiedIcon height={12} width={18} />,
placeholderIconInMobile: <FlagChinaSimplifiedIcon height={14.67} width={22} />,
},
{
code: 'ZH_TW',
displayName: '繁體中文',
icon: <FlagChinaTraditionalIcon height={24} width={36} />,
placeholderIcon: <FlagChinaTraditionalIcon height={12} width={18} />,
placeholderIconInMobile: <FlagChinaTraditionalIcon height={14.67} width={22} />,
},
];
Loading