Hi,
How to change text "AED - United Arab Emirates Dirhams" into "AED - UAE" on Luma theme?
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
hi @PankajS_Magento ,
I did the same. But no luck still showing as "United Arab Emirates Dirhams"
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
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 ?>