Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shontzu/WALL-823/inaccurate-jurisdictions-displayed-when-language-is-non-English #8919

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,21 @@ const MT5AccountTypeModal = () => {
const is_swapfree_available = useHasSwapFreeAccount();

const set_account_type = () => {
switch (account_type_card) {
case 'Derived':
const localizedAccountType = localize(account_type_card);

switch (localizedAccountType) {
case localize('Derived'):
setAccountType({ category: 'real', type: 'synthetic' });
break;
case 'Swap-Free':
setAccountType({ category: 'real', type: 'all' });
case localize('Financial'):
setAccountType({ category: 'real', type: 'financial' });
break;
case 'Financial':
default:
setAccountType({ category: 'real', type: 'financial' });
setAccountType({ category: 'real', type: 'all' });
break;
}
};

return (
<div>
<React.Suspense fallback={<UILoader />}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const JurisdictionModal = ({
const modal_title = show_eu_related_content
? localize('Choose a jurisdiction for your Deriv MT5 CFDs account')
: localize('Choose a jurisdiction for your Deriv MT5 {{account_type}} account', {
account_type: getMT5Title(account_type.type),
account_type: localize(getMT5Title(account_type.type)),
});

return (
Expand Down