Skip to main content
added 155 characters in body
Source Link
Suresh Chikani
  • 15.9k
  • 11
  • 63
  • 99

You can change only text which is written in translation

Like : $this->__("Sample Taxt");

Suggested text not written in translation so you can not change it with translation.

If you want to change it, you can find it in JS file which is located :

vendor/magento/module-checkout/view/frontend/web/js/model/shipping-rates-validator.js

Note : You have to override JS file to in your theme.

Delete pub/static/*

Run Command :

php bin/magento setup:static-content:deploy 

php bin/magento cache:clean

Delete browser cache.

You can change only text which is written in translation

Like : $this->__("Sample Taxt");

Suggested text not written in translation so you can not change it with translation.

If you want to change it, you can find it in JS file which is located :

vendor/magento/module-checkout/view/frontend/web/js/model/shipping-rates-validator.js

Note : You have to override JS file to in your theme.

You can change only text which is written in translation

Like : $this->__("Sample Taxt");

Suggested text not written in translation so you can not change it with translation.

If you want to change it, you can find it in JS file which is located :

vendor/magento/module-checkout/view/frontend/web/js/model/shipping-rates-validator.js

Note : You have to override JS file to in your theme.

Delete pub/static/*

Run Command :

php bin/magento setup:static-content:deploy 

php bin/magento cache:clean

Delete browser cache.

Change Answer
Source Link
Suresh Chikani
  • 15.9k
  • 11
  • 63
  • 99

Csv file path wrongYou can change only text which you have used.is written in translation

Like : frontend/..theme../Magento_Checkout/i18n/en_US.c$this->__("Sample Taxt");sv

CsvSuggested text not written in translation so you can not change it with translation.

If you want to change it, you can find it in JS file should bewhich is located to given path. :

appvendor/designmagento/module-checkout/view/frontend/YourThemeweb/ThemePackagejs/i18nmodel/en_USshipping-rates-validator.csvjs

Run Below commandNote : You have to override JS file to in your theme.

php bin/magento cache:clean

Csv file path wrong which you have used.

frontend/..theme../Magento_Checkout/i18n/en_US.csv

Csv file should be located to given path.

app/design/frontend/YourTheme/ThemePackage/i18n/en_US.csv

Run Below command

php bin/magento cache:clean

You can change only text which is written in translation

Like : $this->__("Sample Taxt");

Suggested text not written in translation so you can not change it with translation.

If you want to change it, you can find it in JS file which is located :

vendor/magento/module-checkout/view/frontend/web/js/model/shipping-rates-validator.js

Note : You have to override JS file to in your theme.

Source Link
Suresh Chikani
  • 15.9k
  • 11
  • 63
  • 99

Csv file path wrong which you have used.

frontend/..theme../Magento_Checkout/i18n/en_US.csv

Csv file should be located to given path.

app/design/frontend/YourTheme/ThemePackage/i18n/en_US.csv

Run Below command

php bin/magento cache:clean