Change all examples of Tax to VAT?
-
24-03-2021 - |
Question
I'm trying to change all uses of the word 'Excl. Tax' to 'Excl. VAT' as I'm building a UK site. I found 3 examples of how to do this but which is the right way?
- Change every use of 'Tax' to 'Vat' in /vendor/magento/module-tax/view/frontend/layout/{checkout_cart_index.xml} & {checkout_index_index.xml}.
- Add a translation to a en_GB file / not too sure on how to do this
- Install a language pack - composer require cubewebsites/magento2-language-en-gb:*
Solution
try Following Way.. it is best way to translate using language pack
composer require mageplaza/magento-2-english-united-kingdom-language-pack:dev-master
php bin/magento setup:static-content:deploy en_GB
php bin/magento indexer:reindex php bin/magento cache:clean
php bin/magento cache:flush
if this language pack in file not available then you can add simple like this way..
'Excl. Tax','Excl. VAT'
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange