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?

  1. Change every use of 'Tax' to 'Vat' in /vendor/magento/module-tax/view/frontend/layout/{checkout_cart_index.xml} & {checkout_index_index.xml}.
  2. Add a translation to a en_GB file / not too sure on how to do this
  3. Install a language pack - composer require cubewebsites/magento2-language-en-gb:*
Was it helpful?

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
scroll top