From 3e0f7f1c5b7d84590d5c846bfd96edb90398adad Mon Sep 17 00:00:00 2001 From: Taysuisin Date: Thu, 1 Feb 2024 16:48:19 +0800 Subject: [PATCH 1/2] chore: add bangladesh langauge --- app/index.tsx | 1 + sass/icons/flags/bangladesh.svg | 1 + scripts/import-chartiq-translations.js | 2 +- src/Constant.tsx | 5 +++++ src/components/Icons.tsx | 2 ++ 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sass/icons/flags/bangladesh.svg diff --git a/app/index.tsx b/app/index.tsx index 17bae5496..80c0e00d8 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -93,6 +93,7 @@ const IntervalEnum = { }; const activeLanguages = [ 'EN', + 'BN', 'DE', 'ES', 'FR', diff --git a/sass/icons/flags/bangladesh.svg b/sass/icons/flags/bangladesh.svg new file mode 100644 index 000000000..e43aaf71b --- /dev/null +++ b/sass/icons/flags/bangladesh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/scripts/import-chartiq-translations.js b/scripts/import-chartiq-translations.js index 02bafd14b..eee40ff9d 100644 --- a/scripts/import-chartiq-translations.js +++ b/scripts/import-chartiq-translations.js @@ -4,7 +4,7 @@ var fs = require('fs'); -const languages = ['en', 'ar', 'fr', 'de', 'hu', 'it', 'ko', 'pt', 'ru', 'tr', 'es', 'zh_cn', 'ja']; +const languages = ['en', 'ar', 'bn', 'fr', 'de', 'hu', 'it', 'ko', 'pt', 'ru', 'tr', 'es', 'zh_cn', 'ja']; const lang_map = {}; let i = 0; for (const l of languages) { diff --git a/src/Constant.tsx b/src/Constant.tsx index 8a964c2ce..494488526 100644 --- a/src/Constant.tsx +++ b/src/Constant.tsx @@ -2013,6 +2013,11 @@ export const Languages = [ name: 'English', icon: , }, + { + key: 'bn', + name: 'বাংলা', + icon: , + }, { key: 'de', name: 'Deutsch', diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index d13e3bc97..3fdace539 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -104,6 +104,7 @@ import USD from '../../sass/icons/flags/usd.svg'; import XAU from '../../sass/icons/flags/xau.svg'; import Russia from '../../sass/icons/flags/russia.svg'; +import Bangladesh from '../../sass/icons/flags/bangladesh.svg'; import Thailand from '../../sass/icons/flags/thailand.svg'; import Turkey from '../../sass/icons/flags/turkey.svg'; import Indonesia from '../../sass/icons/flags/indonesia.svg'; @@ -498,6 +499,7 @@ export const FlagIcons = { German: Wrapper(German), French: Wrapper(French), Russia: Wrapper(Russia), + Bangladesh: Wrapper(Bangladesh), Thailand: Wrapper(Thailand), Turkey: Wrapper(Turkey), Indonesia: Wrapper(Indonesia), From 1b49567da2a03eeae42fa141ca097e8dab4d41b8 Mon Sep 17 00:00:00 2001 From: Taysuisin Date: Mon, 5 Feb 2024 14:29:12 +0800 Subject: [PATCH 2/2] chore: empty commit