cancel
Showing results for 
Search instead for 
Did you mean: 

Change currency converter switcher text

Change currency converter switcher text

Hi,

 

How to change text "AED - United Arab Emirates Dirhams" into "AED - UAE" on Luma theme?

 

luma-currency.PNG

5 REPLIES 5

Re: Change currency converter switcher text

Hi @chathuramk 

 

Create a i18n directory in your theme and en_US.csv file inside this directory.

 

app/design/frontend/Magento/Luma/i18n/en_US.csv

Or you can copy this file from vendor also.

 

vendor/magento/theme-frontend-blank/i18n/en_US.csv

 

Add text from in first column and then text to in second column. Run the following commands:

 

sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

It will replace your text.

 

I hope it will help you.

 

Thanks

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Change currency converter switcher text

hi @PankajS_Magento ,

I did the same. But no luck Smiley Sad still showing as "United Arab Emirates Dirhams"

Re: Change currency converter switcher text

Hi @chathuramk 

 

Can you please check once again, run these commands after adding file.

 

sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/*
sudo rm -Rf var/generation/* var/di/* var/cache/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will work.

 

Thanks

Re: Change currency converter switcher text

@PankajS_Magento ,

 

I did same. but still currency text not changing. Smiley Sad

Re: Change currency converter switcher text

@chathuramk 

 

Open app/design/frontend/YOUR-PACKAGE/YOUR-THEME/template/directory/currency.phtml 

 

You will see the following code that will display: Currency Name - Currency Code

(e.g. British Pound Sterling - GBP)

 

Your requirement is to display: Currency Code - Currency Symbol

(e.g.GBP - £)

 

So, you can do this:

<?php currency( $_code )->getSymbol() ?> - <?php echo $_code ?>

 

If Issue Solved, Click Kudos/Accept As solutions.