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

Commit 05b8548

Browse files
Merge branch 'master' of github.com:binary-com/binary-static into fix_mlt_and_uk_market
2 parents 62abbe8 + 7e518d7 commit 05b8548

File tree

24 files changed

+290
-119
lines changed

24 files changed

+290
-119
lines changed

.circleci/config.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,44 +85,48 @@ commands:
8585
command: gh-pages -d dist --branch << parameters.target_branch >> --message '[skip ci]'
8686
docker_build_push:
8787
description: "Build Docker image"
88+
parameters:
89+
docker_latest_image_tag:
90+
type: string
91+
default: "latest-staging"
92+
docker_image_tag:
93+
type: string
94+
default: ${CIRCLE_SHA1}
8895
steps:
8996
- setup_remote_docker
9097
- run:
9198
name: Building docker image
9299
command: |
93-
docker build -t ${DOCKHUB_ORGANISATION}/binary-static:${CIRCLE_TAG} -t ${DOCKHUB_ORGANISATION}/binary-static:production-latest .
100+
docker build -t ${DOCKHUB_ORGANISATION}/binary-static:<< parameters.docker_image_tag >> -t ${DOCKHUB_ORGANISATION}/binary-static:<< parameters.docker_latest_image_tag >> .
94101
- run:
95102
name: Pushing Image to docker hub
96103
command: |
97104
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
98-
docker push ${DOCKHUB_ORGANISATION}/binary-static:${CIRCLE_TAG}
99-
docker push ${DOCKHUB_ORGANISATION}/binary-static:production-latest
105+
docker push ${DOCKHUB_ORGANISATION}/binary-static:<< parameters.docker_image_tag >>
106+
docker push ${DOCKHUB_ORGANISATION}/binary-static:<< parameters.docker_latest_image_tag >>
100107
k8s_deploy:
101108
description: "Deploy to k8s cluster"
102109
parameters:
103110
k8s_svc_name:
104111
type: string
105112
default: "staging-binary-com"
113+
k8s_namespace:
114+
type: string
115+
default: "www-binary-com-staging"
116+
k8s_version:
117+
type: string
118+
default: ${CIRCLE_SHA1}
106119
steps:
107120
- k8s/install-kubectl
108121
- run:
109122
name: Deploying to k8s cluster for service << parameters.k8s_svc_name >>
110123
command: |
111-
for SERVER_ID in {1..5}
112-
do
113-
KUBE_SERVER_REF="KUBE_SERVER_$SERVER_ID"
114-
SERVICEACCOUNT_TOKEN_REF="SERVICEACCOUNT_TOKEN_$SERVER_ID"
115-
CA_CRT_REF="CA_CRT_$SERVER_ID"
116-
if [ ! -z "${!KUBE_SERVER_REF}" ]
117-
then
118-
echo "Deploying to cluster $SERVER_ID"
119-
CA_CRT="${!CA_CRT_REF}"
120-
KUBE_SERVER="${!KUBE_SERVER_REF}"
121-
SERVICEACCOUNT_TOKEN="${!SERVICEACCOUNT_TOKEN_REF}"
122-
echo $CA_CRT | base64 --decode > ca.crt
123-
kubectl --server=${KUBE_SERVER} --certificate-authority=ca.crt --token=$SERVICEACCOUNT_TOKEN set image deployment/<< parameters.k8s_svc_name >> << parameters.k8s_svc_name >>=${DOCKHUB_ORGANISATION}/binary-static:${CIRCLE_TAG}
124-
fi
125-
done
124+
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
125+
export NAMESPACE=<< parameters.k8s_namespace >>
126+
git clone https://github.com/binary-com/devops-ci-scripts
127+
cd devops-ci-scripts/k8s-build_tools
128+
echo $CA_CRT | base64 --decode > ca.crt
129+
./release.sh binary-static << parameters.k8s_version >>
126130
notify_slack:
127131
description: "Notify slack"
128132
steps:
@@ -139,7 +143,7 @@ jobs:
139143
- git_checkout_from_cache
140144
- npm_install
141145
- test
142-
release_beta:
146+
release_staging:
143147
docker:
144148
- image: circleci/node:9.8.0-stretch
145149
steps:
@@ -152,6 +156,8 @@ jobs:
152156
target: 'translations'
153157
- deploy:
154158
target_branch: "staging"
159+
- docker_build_push
160+
- k8s_deploy
155161
- notify_slack
156162
release_production:
157163
docker:
@@ -174,10 +180,14 @@ jobs:
174180
- test
175181
- build:
176182
target: 'production'
177-
- docker_build_push
183+
- docker_build_push:
184+
docker_latest_image_tag: latest
185+
docker_image_tag: ${CIRCLE_TAG}
178186
- k8s_deploy:
179187
k8s_svc_name: "production-binary-com"
180-
188+
k8s_namespace: "www-binary-com-production"
189+
k8s_version: ${CIRCLE_TAG}
190+
181191
workflows:
182192
test:
183193
jobs:
@@ -187,7 +197,7 @@ workflows:
187197
ignore: /^master$/
188198
release:
189199
jobs:
190-
- release_beta:
200+
- release_staging:
191201
filters:
192202
branches:
193203
only: /^master$/

scripts/js_texts/extracted_strings_app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ module.exports = [
707707
'Yes, I\'m sure',
708708
'You are categorised as a professional client.',
709709
'You are categorised as a retail client. Apply to be treated as a professional trader.',
710-
'You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time [_1]',
710+
'You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time [_1].',
711711
'You can [_1]set a new currency[_2] before you deposit for the first [_3].',
712712
'You can close this window without interrupting your trade.',
713713
'You can no longer change the currency because you\'ve created an MT5 account.',
@@ -793,6 +793,8 @@ module.exports = [
793793
'close',
794794
'day',
795795
'days',
796+
'deposit',
797+
'deposit or create an MT5 account',
796798
'details',
797799
'e.g. United States',
798800
'for account [_1]',
@@ -810,6 +812,8 @@ module.exports = [
810812
'space',
811813
'tick',
812814
'ticks',
815+
'time',
816+
'time or create an MT5 account',
813817
'{SPAIN ONLY}However, Binary Investments (Europe) Ltd has assessed your knowledge and experience and deems the product appropriate for you.',
814818
'{SPAIN ONLY}This is a product with leverage. You should be aware that losses may be higher than the amount initially paid to purchase the product.',
815819
'{SPAIN ONLY}You are about to purchase a product that is not simple and may be difficult to understand: Contracts for difference and forex. As a general rule, the CNMV considers that such products are not appropriate for retail clients, due to their complexity.',

src/javascript/_autogenerated/ach.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/id.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/pt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/ru.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/zh_cn.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/zh_tw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/app/pages/cashier/cashier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Cashier = (() => {
9494
|| can_change;
9595
const account_action_text = has_upgrade ? `<br />${localize('[_1]Manage your accounts[_2]', [`<a href=${Url.urlFor('user/accounts')}>`, '</a>'])}` : '';
9696
const is_iom_client = Client.get('residence') === 'im' || State.getResponse('website_status.clients_country') === 'im';
97-
const change_text_for_iom = is_iom_client ? 'time' : 'time or create an MT5 account';
97+
const change_text_for_iom = is_iom_client ? localize('time') : localize('time or create an MT5 account');
9898
const url_user_account = `<a href=${Url.urlFor('user/accounts')}>`;
9999

100100
const missingCriteria = (has_mt5, has_transaction) => {

src/javascript/app/pages/user/set_currency.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,18 @@ const SetCurrency = (() => {
158158
$clicked_currency.addClass('selected');
159159

160160
if (should_show_confirmation) {
161-
const currency = $clicked_currency.attr('id');
162-
const is_iom_client = Client.get('residence') === 'im' || State.getResponse('website_status.clients_country') === 'im';
163-
let localized_message = '';
164-
let localized_footnote = '';
161+
const currency = $clicked_currency.attr('id');
162+
const is_iom_client = Client.get('residence') === 'im' || State.getResponse('website_status.clients_country') === 'im';
163+
const change_text_for_iom = is_iom_client ? localize('deposit') : localize('deposit or create an MT5 account');
164+
let localized_message = '';
165+
let localized_footnote = '';
165166

166167
if (Currency.isCryptocurrency(currency)) {
167168
localized_message = localize('Are you sure you want to create your [_1] account now?', `<strong>${Currency.getCurrencyName(currency)} (${Currency.getCurrencyDisplayCode(currency)})</strong>`);
168169
localized_footnote = `${localize('Note:')} ${localize('You may open one account for each supported cryptocurrency.')}`;
169170
} else {
170171
localized_message = localize('Are you sure you want to create a fiat account in [_1]?', `${currency}`);
171-
localized_footnote = `${localize('Note:')} ${localize('You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time [_1]', `${is_iom_client ? 'deposit.' : 'deposit or create an MT5 account.'}`)}`;
172+
localized_footnote = `${localize('Note:')} ${localize('You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time [_1].', change_text_for_iom)}`;
172173
}
173174

174175
Dialog.confirm({

src/translations/ach_UG.po

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: binary-static\n"
44
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
5-
"PO-Revision-Date: 2021-06-13 02:45\n"
5+
"PO-Revision-Date: 2021-06-15 06:35\n"
66
"Last-Translator: \n"
77
"Language-Team: Acholi\n"
88
"MIME-Version: 1.0\n"
@@ -14464,8 +14464,8 @@ msgstr "crwdns42534:0crwdne42534:0"
1446414464
msgid "You are expecting the base currency to rise in value so you can sell it back for a profit."
1446514465
msgstr "crwdns42535:0crwdne42535:0"
1446614466

14467-
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1"
14468-
msgstr "crwdns163502:0%1crwdne163502:0"
14467+
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1."
14468+
msgstr "crwdns163588:0%1crwdne163588:0"
1446914469

1447014470
msgid "You are responsible for mitigating the risks and abuse that we face from fraud and money laundering. To accomplish this, you must monitor, analyse, and conduct various anti-fraud and AML checks on client accounts and deposits. You will join us in Malta and report to our Head of Payments."
1447114471
msgstr "crwdns52478:0crwdne52478:0"
@@ -15019,6 +15019,12 @@ msgstr "crwdns40789:0crwdne40789:0"
1501915019
msgid "days"
1502015020
msgstr "crwdns40790:0crwdne40790:0"
1502115021

15022+
msgid "deposit"
15023+
msgstr "crwdns163590:0crwdne163590:0"
15024+
15025+
msgid "deposit or create an MT5 account"
15026+
msgstr "crwdns163592:0crwdne163592:0"
15027+
1502215028
msgid "details"
1502315029
msgstr "crwdns40791:0crwdne40791:0"
1502415030

@@ -15130,6 +15136,12 @@ msgstr "crwdns40830:0crwdne40830:0"
1513015136
msgid "ticks"
1513115137
msgstr "crwdns40831:0crwdne40831:0"
1513215138

15139+
msgid "time"
15140+
msgstr "crwdns163594:0crwdne163594:0"
15141+
15142+
msgid "time or create an MT5 account"
15143+
msgstr "crwdns163596:0crwdne163596:0"
15144+
1513315145
msgid "today"
1513415146
msgstr "crwdns40832:0crwdne40832:0"
1513515147

src/translations/es_ES.po

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: binary-static\n"
44
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
5-
"PO-Revision-Date: 2021-06-13 02:45\n"
5+
"PO-Revision-Date: 2021-06-15 06:35\n"
66
"Last-Translator: \n"
77
"Language-Team: Spanish\n"
88
"MIME-Version: 1.0\n"
@@ -6057,7 +6057,7 @@ msgid "If you have a payment reference (for example 122), you can enter it here.
60576057
msgstr "Si tiene una referencia de pago (por ejemplo 122), puede ingresarla aquí."
60586058

60596059
msgid "If you have an account with us, we'll send you a link to your email in a few minutes to reset your password."
6060-
msgstr ""
6060+
msgstr "Si tiene una cuenta con nosotros, le enviaremos un enlace a su correo electrónico en unos minutos para restablecer su contraseña."
60616061

60626062
msgid "If you keep any positions open overnight, an interest adjustment will be made to your trading account as indication of the cost required to keep your position open."
60636063
msgstr "Si mantiene cualquier posición abierta durante la noche, se realizará un ajuste de interés a su cuenta de operaciones como indicación del costo necesario para ello."
@@ -6916,7 +6916,7 @@ msgid "Less than $25,000"
69166916
msgstr "Menos de $25.000"
69176917

69186918
msgid "Let us introduce you to trading on Binary."
6919-
msgstr ""
6919+
msgstr "Permítanos presentarle el comercio en Binary."
69206920

69216921
msgid "Let's calculate the spread for EUR/USD:"
69226922
msgstr "Calculemos el spread del par EUR/USD:"
@@ -14212,7 +14212,7 @@ msgid "Where the negative balance is connected to or a result of functional limi
1421214212
msgstr "Cuando el saldo negativo está conectado a o es el resultado de limitaciones funcionales y / o mal funcionamiento de la plataforma de trading MT5"
1421314213

1421414214
msgid "Where would you like to start?"
14215-
msgstr ""
14215+
msgstr "¿Por dónde le gustaría empezar?"
1421614216

1421714217
msgid "Where you can go"
1421814218
msgstr "Donde puede viajar"
@@ -14466,7 +14466,7 @@ msgstr "Usted está esperando que el valor de la moneda base caiga para poder vo
1446614466
msgid "You are expecting the base currency to rise in value so you can sell it back for a profit."
1446714467
msgstr "Ustes está esperando que aumente el valor de la moneda base para poder venderla y obtener una ganancia."
1446814468

14469-
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1"
14469+
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1."
1447014470
msgstr ""
1447114471

1447214472
msgid "You are responsible for mitigating the risks and abuse that we face from fraud and money laundering. To accomplish this, you must monitor, analyse, and conduct various anti-fraud and AML checks on client accounts and deposits. You will join us in Malta and report to our Head of Payments."
@@ -15021,6 +15021,12 @@ msgstr "día"
1502115021
msgid "days"
1502215022
msgstr "días"
1502315023

15024+
msgid "deposit"
15025+
msgstr ""
15026+
15027+
msgid "deposit or create an MT5 account"
15028+
msgstr ""
15029+
1502415030
msgid "details"
1502515031
msgstr "detalles"
1502615032

@@ -15132,6 +15138,12 @@ msgstr "intervalo"
1513215138
msgid "ticks"
1513315139
msgstr "intervalos"
1513415140

15141+
msgid "time"
15142+
msgstr ""
15143+
15144+
msgid "time or create an MT5 account"
15145+
msgstr ""
15146+
1513515147
msgid "today"
1513615148
msgstr "hoy"
1513715149

src/translations/fr_FR.po

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: binary-static\n"
44
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
5-
"PO-Revision-Date: 2021-06-13 02:45\n"
5+
"PO-Revision-Date: 2021-06-15 06:35\n"
66
"Last-Translator: \n"
77
"Language-Team: French\n"
88
"MIME-Version: 1.0\n"
@@ -437,7 +437,7 @@ msgid "%124/7 customer support%2 to enhance your trading experience"
437437
msgstr "%124/7 support client%2 pour améliorer votre expérience de trading"
438438

439439
msgid "%1CFD%2"
440-
msgstr ""
440+
msgstr "%1CFD%2"
441441

442442
msgid "%1Contact us%2 to arrange a date and time for the video call."
443443
msgstr "%1Contactez nous%2 pour arranger une date et une heure pour l’appel vidéo."
@@ -449,7 +449,7 @@ msgid "%1Deriv-Server%2 or %1Deriv-Server-02%2 if your signals is for real accou
449449
msgstr "%1Deriv-Server%2 ou %1Deriv-Server-02%2 si vos signaux sont pour des comptes réels uniquement."
450450

451451
msgid "%1Digital Options%1"
452-
msgstr ""
452+
msgstr "%1Options Digitales%1"
453453

454454
msgid "%1Founded%2 October 1999"
455455
msgstr "%1Fondé%2 en Octobre 1999"
@@ -14212,7 +14212,7 @@ msgid "Where the negative balance is connected to or a result of functional limi
1421214212
msgstr "Lorsque le solde négatif est lié à ou un résultat de limitations fonctionnelles et/ou un mauvais fonctionnement de la plateforme de trading MT5"
1421314213

1421414214
msgid "Where would you like to start?"
14215-
msgstr ""
14215+
msgstr "Par où souhaitez-vous commencer?"
1421614216

1421714217
msgid "Where you can go"
1421814218
msgstr "Les destinations qui s'offrent à vous"
@@ -14466,7 +14466,7 @@ msgstr "Vous vous attendez que la devise de base va baisser en valeur, ainsi vou
1446614466
msgid "You are expecting the base currency to rise in value so you can sell it back for a profit."
1446714467
msgstr "Vous vous attendez à ce que la devise de base augmente en valeur, afin que vous puissiez la revendre pour faire un profit."
1446814468

14469-
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1"
14469+
msgid "You are limited to one fiat account. You can change the currency of your fiat account anytime before you make a first-time %1."
1447014470
msgstr ""
1447114471

1447214472
msgid "You are responsible for mitigating the risks and abuse that we face from fraud and money laundering. To accomplish this, you must monitor, analyse, and conduct various anti-fraud and AML checks on client accounts and deposits. You will join us in Malta and report to our Head of Payments."
@@ -15021,6 +15021,12 @@ msgstr "jour"
1502115021
msgid "days"
1502215022
msgstr "jours"
1502315023

15024+
msgid "deposit"
15025+
msgstr ""
15026+
15027+
msgid "deposit or create an MT5 account"
15028+
msgstr ""
15029+
1502415030
msgid "details"
1502515031
msgstr "informations"
1502615032

@@ -15132,6 +15138,12 @@ msgstr "tick"
1513215138
msgid "ticks"
1513315139
msgstr "ticks"
1513415140

15141+
msgid "time"
15142+
msgstr ""
15143+
15144+
msgid "time or create an MT5 account"
15145+
msgstr ""
15146+
1513515147
msgid "today"
1513615148
msgstr "aujourd'hui"
1513715149

0 commit comments

Comments
 (0)