Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 06b1343

Browse files
author
Aaron
authored
Merge pull request #2838 from binary-com/beta
beta to master
2 parents aefe0ae + b011f4e commit 06b1343

File tree

9 files changed

+35
-37
lines changed

9 files changed

+35
-37
lines changed

gulp/i18n.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ const customTransform = function _transform(file, enc, done) {
4848
done();
4949
};
5050

51-
gulp.task(
52-
'clean-i18n',
53-
gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del)))
54-
);
51+
gulp.task('clean-i18n', gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del))));
5552

5653
gulp.task(
5754
'i18n-xml',
@@ -86,13 +83,10 @@ gulp.task(
8683
gulp.task(
8784
'pull-blockly-translations',
8885
gulp.series(done => {
89-
const blocklyLanguages = ['en', 'de', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
90-
remoteSrc(
91-
blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`),
92-
{
93-
base: 'https://blockly-demo.appspot.com/static/msg/js/',
94-
}
95-
)
86+
const blocklyLanguages = ['en', 'de', 'id', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
87+
remoteSrc(blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`), {
88+
base: 'https://blockly-demo.appspot.com/static/msg/js/',
89+
})
9690
.pipe(rename(path => (path.extname = '.js')))
9791
.pipe(gulp.dest('www/translations'));
9892
done();

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"webpack-stream": "^4.0.0"
104104
},
105105
"dependencies": {
106-
"smartcharts-beta": "^0.8.0-betam.10",
106+
"smartcharts-beta": "^0.8.0-betam.11",
107107
"binary-style": "^0.2.4",
108108
"blockly": "github:google/blockly#59e5ac6",
109109
"clone": "aminmarashi/clone#d97b4f",

src/botPage/bot/Interpreter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const unrecoverableErrors = [
2727
'FinancialAssessmentRequired',
2828
'AuthorizationRequired',
2929
'InvalidToken',
30+
'ClientUnwelcome',
3031
];
3132
const botInitialized = bot => bot && bot.tradeEngine.options;
3233
const botStarted = bot => botInitialized(bot) && bot.tradeEngine.tradeOptions;

src/botPage/view/View.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ export default class View {
650650

651651
window.addEventListener('storage', e => {
652652
window.onbeforeunload = null;
653-
if (e.key === 'activeToken' && !e.newValue) window.location.reload();
653+
if (e.key === 'activeToken' && e.newValue !== e.oldValue) window.location.reload();
654654
if (e.key === 'realityCheckTime') hideRealityCheck();
655655
});
656656

src/common/elevio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Elevio = (() => {
2020

2121
// eslint-disable-next-line no-underscore-dangle
2222
window._elev.on('load', elev => {
23-
const availableLanguages = ['en', 'es', 'pt', 'ru'];
23+
const availableLanguages = ['en', 'es', 'id', 'pt', 'ru'];
2424
const currentLanguage = getLanguage();
2525
if (availableLanguages.includes(currentLanguage)) {
2626
elev.setLanguage(currentLanguage);

src/common/i18n.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import es from './translations/es_ES/i10n.json';
1111
import fr from './translations/fr_FR/i10n.json';
1212
import en from './translations/en/i10n.json';
1313
import ach from './translations/ach_UG/i10n.json';
14+
import id from './translations/id_ID/i10n.json';
1415

1516
export const supportedLanguages = {
1617
zh_tw: zhTw,
@@ -25,6 +26,7 @@ export const supportedLanguages = {
2526
fr,
2627
en,
2728
ach,
29+
id,
2830
};
2931

3032
const fallbackLang = en;

src/indexPage/react-components/footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const Footer = () => (
3232
<SocialIcons
3333
networks={[
3434
{ media: 'youtube', href: 'https://www.youtube.com/user/BinaryTradingVideos' },
35-
{ media: 'facebook', href: 'https://www.facebook.com/binarydotcom' },
36-
{ media: 'twitter', href: 'https://twitter.com/Binarydotcom' },
35+
{ media: 'facebook', href: 'https://www.facebook.com/derivdotcom' },
36+
{ media: 'twitter', href: 'https://twitter.com/derivdotcom' },
3737
{ media: 'telegram', href: 'https://t.me/binarydotcom' },
3838
{ media: 'reddit', href: 'https://www.reddit.com/r/binarydotcom/' },
3939
]}

templates/partials/language.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<li class="en">English</li>
1616
<li class="de">Deutsch</li>
1717
<li class="fr">Français</li>
18+
<li class="id">Indonesia</li>
1819
<li class="pl">Polish</li>
1920
<li class="pt">Português</li>
2021
<li class="ru">Русский</li>

0 commit comments

Comments
 (0)