Skip to content

Commit e035b58

Browse files
authored
Suisin/chore: add Mongolian language in SmartCharts (#1592)
* chore: add Mongolian language in SmartCharts * chore: update Mongolian flag * chore: empty commit * chore: update mongolian translation file * chore: empty commit * chore: update strings for mongolian language * chore: update json strings
1 parent 3b513f5 commit e035b58

File tree

6 files changed

+293
-1
lines changed

6 files changed

+293
-1
lines changed

app/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const activeLanguages = [
101101
'ID',
102102
'IT',
103103
'KO',
104+
'MN',
104105
'PL',
105106
'PT',
106107
'RU',

sass/icons/flags/mongolian.svg

+1
Loading

scripts/import-chartiq-translations.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,25 @@
44

55
var fs = require('fs');
66

7-
const languages = ['en', 'ar', 'bn', 'fr', 'de', 'hu', 'it', 'ko', 'pt', 'ru', 'si', 'sw', 'tr', 'es', 'zh_cn', 'ja'];
7+
const languages = [
8+
'en',
9+
'ar',
10+
'bn',
11+
'fr',
12+
'de',
13+
'hu',
14+
'it',
15+
'ko',
16+
'mn',
17+
'pt',
18+
'ru',
19+
'si',
20+
'sw',
21+
'tr',
22+
'es',
23+
'zh_cn',
24+
'ja',
25+
];
826
const lang_map = {};
927
let i = 0;
1028
for (const l of languages) {

src/Constant.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -2039,6 +2039,11 @@ export const Languages = [
20392039
name: 'French',
20402040
icon: <FlagIcons.French />,
20412041
},
2042+
{
2043+
key: 'mn',
2044+
name: 'Монгол',
2045+
icon: <FlagIcons.Mongolian />,
2046+
},
20422047
{
20432048
key: 'ru',
20442049
name: 'Русский',

src/components/Icons.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ import Russia from '../../sass/icons/flags/russia.svg';
107107
import Arabic from '../../sass/icons/flags/arabic.svg';
108108
import Bangladesh from '../../sass/icons/flags/bangladesh.svg';
109109
import Srilanka from '../../sass/icons/flags/srilanka.svg';
110+
import Mongolian from '../../sass/icons/flags/mongolian.svg';
110111
import Kenya from '../../sass/icons/flags/kenya.svg';
111112
import Thailand from '../../sass/icons/flags/thailand.svg';
112113
import Turkey from '../../sass/icons/flags/turkey.svg';
@@ -505,6 +506,7 @@ export const FlagIcons = {
505506
Arabic: Wrapper(Arabic),
506507
Bangladesh: Wrapper(Bangladesh),
507508
Srilanka: Wrapper(Srilanka),
509+
Mongolian: Wrapper(Mongolian),
508510
Kenya: Wrapper(Kenya),
509511
Thailand: Wrapper(Thailand),
510512
Turkey: Wrapper(Turkey),

0 commit comments

Comments
 (0)