Skip to content

Commit

Permalink
chore: add portuguese language into SmartCharts (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
suisin-deriv authored Nov 21, 2023
1 parent 4d311cf commit 10ce4d8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
18 changes: 17 additions & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,23 @@ const IntervalEnum = {
day: 24 * 3600,
year: 365 * 24 * 3600,
};
const activeLanguages = ['EN', 'DE', 'ES', 'FR', 'ID', 'IT', 'KO', 'PL', 'RU', 'TR', 'TH', 'VI', 'ZH_CN', 'ZH_TW'];
const activeLanguages = [
'EN',
'DE',
'ES',
'FR',
'ID',
'IT',
'KO',
'PL',
'PT',
'RU',
'TR',
'TH',
'VI',
'ZH_CN',
'ZH_TW',
];
const streamManager = new StreamManager(connectionManager);
const requestAPI = connectionManager.send.bind(connectionManager);
const requestSubscribe = streamManager.subscribe.bind(streamManager);
Expand Down
1 change: 1 addition & 0 deletions sass/icons/flags/portugal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/import-chartiq-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var fs = require('fs');

const languages = ['en', 'ar', 'fr', 'de', 'hu', 'it', 'ko', 'ru', 'tr', 'es', 'zh_cn', 'ja'];
const languages = ['en', 'ar', 'fr', 'de', 'hu', 'it', 'ko', 'pt', 'ru', 'tr', 'es', 'zh_cn', 'ja'];
const lang_map = {};
let i = 0;
for (const l of languages) {
Expand Down
5 changes: 5 additions & 0 deletions src/Constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ export const Languages = [
name: '한국어',
icon: <FlagIcons.Korean />,
},
{
key: 'pt',
name: 'Português',
icon: <FlagIcons.Portugal />,
},
{
key: 'tr',
name: 'Türkçe',
Expand Down
2 changes: 2 additions & 0 deletions src/components/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import Indonesia from '../../sass/icons/flags/indonesia.svg';
import Vietnam from '../../sass/icons/flags/vietnam.svg';
import Italy from '../../sass/icons/flags/italy.svg';
import Korean from '../../sass/icons/flags/korean.svg';
import Portugal from '../../sass/icons/flags/portugal.svg';
import Chinese from '../../sass/icons/flags/chinese.svg';
import ChineseTraditional from '../../sass/icons/flags/chinese-traditional.svg';
import German from '../../sass/icons/flags/german.svg';
Expand Down Expand Up @@ -503,6 +504,7 @@ export const FlagIcons = {
Vietnam: Wrapper(Vietnam),
Italy: Wrapper(Italy),
Korean: Wrapper(Korean),
Portugal: Wrapper(Portugal),
Chinese: Wrapper(Chinese),
ChineseTraditional: Wrapper(ChineseTraditional),
Poland: Wrapper(PLN),
Expand Down

2 comments on commit 10ce4d8

@vercel
Copy link

@vercel vercel bot commented on 10ce4d8 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

smart-charts – ./

smart-charts-git-master.binary.sx
smart-charts.binary.sx

@vercel
Copy link

@vercel vercel bot commented on 10ce4d8 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

smart-charts-deriv-app-integration – ./

smart-charts-deriv-app-integration.binary.sx
smart-charts-deriv-app-integration-git-master.binary.sx

Please sign in to comment.