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

Commit ef6669a

Browse files
mamali-fsMohammadreza Ghorbani
andauthored
Add Localize to strings (#6667)
Co-authored-by: Mohammadreza Ghorbani <reza@firstsource.email>
1 parent a8c7ad3 commit ef6669a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/javascript/app/common/account_opening.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ const AccountOpening = (() => {
4343
const lc_to_upgrade_to = landing_company[is_financial ? 'financial_company' : 'gaming_company'] || landing_company.financial_company;
4444
switch (lc_to_upgrade_to.shortcode){
4545
case 'iom':
46-
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), 'regulated by the UK Gaming Commission (UKGC),');
46+
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), localize('regulated by the UK Gaming Commission (UKGC),'));
4747
break;
4848
case 'malta':
49-
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), 'regulated by the Malta Gaming Authority,');
49+
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), localize('regulated by the Malta Gaming Authority,'));
5050
break;
5151
case 'maltainvest':
52-
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), 'regulated by the Malta Financial Services Authority (MFSA),');
52+
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-regulator'), localize('regulated by the Malta Financial Services Authority (MFSA),'));
5353
break;
5454
default:
5555
break;
5656
}
57-
57+
5858
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-name'), lc_to_upgrade_to.name);
5959
CommonFunctions.elementTextContent(CommonFunctions.getElementById('lc-country'), lc_to_upgrade_to.shortcode === 'iom' ? `the ${lc_to_upgrade_to.country}` : lc_to_upgrade_to.country);
6060
if (getPropertyValue(landing_company, ['financial_company', 'shortcode']) === 'maltainvest') {

0 commit comments

Comments
 (0)