cancel
Showing results for 
Search instead for 
Did you mean: 

Translate text in checkout

SOLVED

Translate text in checkout

On the checkout it shows BTW which is Dutch for Tax. But I would to change it to.

I've tried it with Inline Translate but that didn't work

Can somebody explain me how and where I can change it?

----------------------------------------------------------------------------
PdM internetdiensten voor webwinkels & websites.
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Translate text in checkout

You can translate text by create en_US.csv file under i18n folder,

 

You can create at two places for translation of text at theme level and module level.

 

For Theme level,
app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv

 

For Module Level,

app/code/{Vendorname}/{Modulename}/i18n/en_US.csv

Now under en_US.csv, left side is your main content and right column defines translated text,

"Grand Total","Total"

Now at all of your grand total text convert to total only.

 

Run below command to see changes,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

4 REPLIES 4

Re: Translate text in checkout

You can translate text by create en_US.csv file under i18n folder,

 

You can create at two places for translation of text at theme level and module level.

 

For Theme level,
app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv

 

For Module Level,

app/code/{Vendorname}/{Modulename}/i18n/en_US.csv

Now under en_US.csv, left side is your main content and right column defines translated text,

"Grand Total","Total"

Now at all of your grand total text convert to total only.

 

Run below command to see changes,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Translate text in checkout

How can I translate the below text in the mini quote?

You have no items in your shopping cart.

 

I have tried to change by changing the text in the i18n - .csv file
but still the same issue.

 

Please help me out of this.

Thanks in advance.

Re: Translate text in checkout

Using your language skills may lead you to a position Freelance Arabic translators that requires both translating and interpreting. However, you may only be able to work with written or spoken language in some positions.

Re: Translate text in checkout

Hi @qwyrp,

 

To translate or customize the "BTW" (Dutch for Tax) text in the checkout page of Magento, you can follow these steps:

 

Check Current Language: Ensure that your Magento store is set to the Dutch language. You can check and change the current language in the Magento Admin Panel under Stores -> Configuration -> General -> General -> Locale Options

 

For Theme:

 

Create a Custom Translation CSV File: If you don't already have a custom theme, create one. In your custom theme directory, create a i18n directory. Inside the i18n directory, create a

 

CSV file named nl_NL.csv. This file will be used for Dutch translations.

 

The path should look like this:

app/design/frontend/[Vendor]/[Theme]/i18n/nl_NL.csv

Add Translation for "BTW": Open the nl_NL.csv file and add the following line:
"BTW","Your Translation"

 

Replace "Your Translation" with the text you want to display instead of "BTW."

Clear Cache: Clear the Magento cache to apply the changes. You can do this using the command line:

bin/magento cache:clean

Or you can clear the cache from the Magento Admin Panel under System -> Cache Management.

This method is based on the assumption that your store is using the Dutch locale. If you are using a different locale, adjust the file name accordingly (e.g., nl_BE.csv for Belgian Dutch).

 

If you are using module and you want to change there then you have to same process but

 

For Module:

 

Create the file at below path:

 

app/code/{Vendorname}/{Modulename}/i18n/nl_NL.csv

"BTW","Your Translation"

Replace "Your Translation" with the text you want to display instead of "BTW."

 

And all other steps are same as above.

 

If the issue will be resolved, Click Kudos & Accept as a Solution.