19 votes
Accepted

Magento2: List translation strings from a module

Magento 2 already has a command that can collect all the texts from a certain folder that are translatable. Since one module can mean 1 folder, let's say your module name is app/code/Vendor/Module you ...
Marius's user avatar
  • 198k
8 votes
Accepted

Magento 2: js-translation.json 404 (Not Found) on production mode

I used this command : bin/magento setup:static-content:deploy --theme=Vendor/Theme en_US -f This command created js-translation.json. This solved my problem.
Eugene Kapelko's user avatar
6 votes

Magento 2: Convert Magento\Framework\Phrase into string

This should work. $var = __("Welcome")->render();
Marius's user avatar
  • 198k
4 votes
Accepted

Merge different language csv to determine which phrases missing a translation

In the next step I merged en_EN.csv and it_IT.csv via PHP into two new files. One containing the translated Version with EN and IT in one File and the other containing all English phrases that got no ...
Flo Espen's user avatar
  • 156
3 votes
Accepted

Can't translate mini cart magento 2

i have find solution open below file and add below translation text app/design/frontend/{Vendor}/{theme}/i18n/fr_FR.csv "View and edit cart","Afficher et modifier le panier" "You added %1 to ...
Rakesh Donga's user avatar
  • 5,344
3 votes

Magento2-Translation not working in js files

For me, I understood that flushing the translation cache was not deleting the js-translation.json in pub/static/path/to/appropriate/theme/locale. After deleting, the file was renewed and things where ...
Christophe Ferreboeuf's user avatar
3 votes

Translation of name prefix options

This is a Magento issue i know happens until 2.2.7 at least you need to override using a custom module di.xml: preference for="Magento\Customer\Model\Options" type="Vendor\Module\Model\Options" ...
codealliance_dev's user avatar
3 votes

Magento2 having Issue in language installation "Duplicated translation is found, but it is not allowed"

You have to define '-d' for allow duplicate translation. use i18n:pack -m replace -d de_DE.csv de_DE command for allow duplicate translation instead of i18n:pack -m replace de_DE.csv de_DE here -...
manish goyanka's user avatar
3 votes
Accepted

Magento 2 Localization Adding Links in CSV

Try Following Way.. i have converted French langugae "An error occurred.Please contact our customer service<a href=""%1"">here</a>","Une erreur est survenue.Veuillez contacter notre ...
Rakesh Donga's user avatar
  • 5,344
3 votes
Accepted

Add to Cart Success Message Translation issue?

You need to confirm that that language should be selected Swedish (Sweden) in for you store/website at "Admin > stores > configuration > General > Locale Options > Locale" field. Otherwise, Magento ...
kunj's user avatar
  • 3,699
3 votes

Translate *Required Fields - Magento 2.3

The translations in Magento can be done in two ways. One is the use of i8n folder in the theme and another one is the use of i8n folder in the module. You should use the i8n folder in the module when ...
Mathanagopal S's user avatar
2 votes

translation in html file

The below code works for me <h4 data-bind="i18n: 'Shipping Instruction'"></h4> Hope it will work for you. In your case it should be <label class="label" for="carrier_department">&...
2 votes

Magento Translation ver. 1.9.3.4

I) To translate your word, it should have the method translation ! something like: $this->__('Your word here') or Mage::helper('module')->__('Your word here');. So check if you have well the ...
PЯINCƎ's user avatar
  • 11.7k
2 votes

I want to translate "Buy" and "save" word in tier_price.phtml file. magento 2

Create a directory app/i18n/Vendorname/en_US(If not there presently) Run command: bin/magento i18n:collect-phrases --output "app/i18n/Vendorname/en_US/en_US.csv" --magento Now this command ...
Shubham Khandelwal's user avatar
2 votes
Accepted

get translated string Magento 2

I am not more knowledge about Magento 1 and _getTranslatedString() function but as per your query this might be help to you. Magento 2 already has a command that can collect all the texts from a ...
Chirag Patel's user avatar
  • 6,126
2 votes
Accepted

php date always displayed in Dutch

Please try this ... $locale = 'nl_NL'; $date = new Zend_Date($_product->getData('delivery_eta')); $date->setLocale($locale); echo $date->toString(Zend_Date::DATE_LONG);
sv3n's user avatar
  • 11.7k
2 votes

Can anyone help me to get frontend translations only? Magento2

For the back-end to be in English use the below configuration system > config > (general) general > locale options > locale > English (US) while doing it check that You are on the page that ...
Haerriz's user avatar
  • 681
2 votes
Accepted

M2 - Dutch date format

i am not sure would this work $locale = 'nl_NL'; $date = new Zend_Date($_product->getData('delivery_eta')); $date->setLocale($locale); echo $date->toString(Zend_Date::DATE_LONG);
jibin george's user avatar
2 votes
Accepted

Magento2 Translate cross sell, up sell and related products

When I look in my version of the Catalog translation file I find the following lines for the three themes "Related Products","Related Products" "We found other products you might like!","We found ...
iphigenie's user avatar
  • 1,729
2 votes

How to translate string with link?

Example: <?= __('Customer address <a href="%s">link</a>!', $this->getBaseUrl().'customer/address/') ?> and then the string in the CSV file should have double quotes: "Customer ...
Enrico Thrasher Monzeglio's user avatar
2 votes

how to override translate from a vendor language package

You can add your language file under your theme. EX: app/design/frontend/vendor/theme/i18n/de_DE.csv This file override all texts from any module.
Mital Shah's user avatar
2 votes
Accepted

Magento 2.4.3p1 Translate "Show Password" text on Registration page

You need to do following things. Override this magento code file. vendor/magento/module-customer/view/frontend/web/template/show-password.html Then replace the following code <span translate=&...
Dhiren Vasoya's user avatar
1 vote

Can't translate mini cart magento 2

app/design/frontend/{Vendor}/{theme}/i18n/fr_FR.csv "View and Edit Cart","Afficher et modifier le panier",module,Magento_Checkout "You added %1 to your shopping cart.","Vous avez ajouté %1 à votre ...
PЯINCƎ's user avatar
  • 11.7k
1 vote

Change existing translation?

Translations are also stored in local storage for client side translations. Have you cleared the local storage in you browser as well?
Rick Schippers's user avatar
1 vote
Accepted

Magento translation of configurable product

You should contact "PickPack" and ask them. It's impossible for us to help you if we cannot see the code.
Metal Mathematician's user avatar
1 vote
Accepted

String translation missing

The problem is that magento uses two similar lines: Account confirmation is required. Please, check your e-mail for confirmation link. To resend confirmation email please click here. is used in ...
Pavel Novitsky's user avatar
1 vote
Accepted

How to translate escapehtml (Filter by)

As per the code you have used in your view.phtml you need to use the below code in your csv file: Filter by "%1", YOUR TEXT "%1" OR Filter by '%1', YOUR TEXT '%1'
Sukumar Gorai's user avatar
1 vote

How to change wish list tab name?

app/design/frontend/{Theme}/{name}/i18n/code_ISO.csv "Wish List","wish list 1",module,Magento_Wishlist Note: code_ISO is your language code exemple: en_US for United States one etc ...
PЯINCƎ's user avatar
  • 11.7k
1 vote

Merge different language csv to determine which phrases missing a translation

You could use csvkit to diff the first columns of the CSVs In this example we compare de_DE with the theme we have to see what is not translated yet # download existing language pack to de_DE.csv ...
Alex's user avatar
  • 13.8k

Only top scored, non community-wiki answers of a minimum length are eligible