Skip to content

Commit 663dcb5

Browse files
committed
fix: test issues
1 parent e972f36 commit 663dcb5

File tree

15 files changed

+22
-15
lines changed

15 files changed

+22
-15
lines changed

scripts/js_texts/extracted_strings_app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module.exports = [
6868
'Contract ends',
6969
'Contract has not started yet',
7070
'Contract information',
71+
'Contract period',
7172
'Contract result',
7273
'Contract starts',
7374
'Contract type',
@@ -135,6 +136,7 @@ module.exports = [
135136
'High Tick',
136137
'High Tick/Low Tick contracts have a strict duration of five ticks.',
137138
'High barrier',
139+
'High, Low and Close',
138140
'High-Close',
139141
'High-Low',
140142
'Higher',
@@ -143,6 +145,8 @@ module.exports = [
143145
'I want to reapply',
144146
'IDK',
145147
'If the <strong>exit spot</strong> is equal to either the <strong>Low barrier</strong> or the <strong>High barrier</strong>, you don\'t win the payout.',
148+
'If the <strong>exit spot</strong> is equal to the <strong>barrier</strong> or the <strong>new barrier (if a reset occurs)</strong>, you don\'t win the payout.',
149+
'If the <strong>exit spot</strong> is equal to the <strong>barrier</strong>, you don\'t win the payout.',
146150
'If the <strong>last tick</strong> is equal to the average of the ticks, you don\'t win the payout.',
147151
'If you select "Allow equals", you win the payout if exit spot is higher than or equal to entry spot for "Rise". Similarly, you win the payout if exit spot is lower than or equal to entry spot for "Fall".',
148152
'If you select "Asian Fall", you will win the payout if the <strong>last tick</strong> is <strong>lower</strong> than the <strong>average</strong> of the ticks.',
@@ -378,6 +382,7 @@ module.exports = [
378382
'The <strong>start time</strong> is when the contract has been processed by our servers and the <strong>entry spot</strong> is the <strong>next tick</strong> thereafter.',
379383
'The <strong>start time</strong> is when the contract is processed by our servers and the <strong>entry spot</strong> is the <strong>next tick</strong> thereafter.',
380384
'The <strong>start time</strong> is when the contract is processed by our servers.',
385+
'The Average',
381386
'The average is the average of the ticks, including the entry spot and the last tick.',
382387
'The entry spot is the first tick after the contract is processed by our servers.',
383388
'The reset time is [_1]',

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/de.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/fr.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/it.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/pl.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/th.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/vi.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/_common/localize.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ const Localize = (() => {
1717
const index = text.replace(/[\s|.]/g, '_');
1818

1919
const lang = urlLang().toUpperCase();
20-
// eslint-disable-next-line no-undef
21-
localized_texts = texts_json[lang];
20+
21+
const strings = typeof texts_json !== 'undefined' ? texts_json : {};
22+
23+
localized_texts = strings[lang];
2224

2325
text = (localized_texts && localized_texts[index]) || text;
2426

0 commit comments

Comments
 (0)