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

Commit c24a87c

Browse files
authored
Fix: missing translations in cashier (#6609)
* Fix: missing translations in cashier * Remove dot from multiple translations
1 parent c109d5e commit c24a87c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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({

0 commit comments

Comments
 (0)