Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
298 views

How To Translate contact us Meta description in magento2?

vendor/magento/module-contact/view/frontend/layout/contact_index_index.xml <head> <title>Contact Us</title> <meta name="description" content="Have ...
1 vote
2 answers
1k views

Magento2 : How to translate attribute group Label?

In magento we can translate attribute label by store. But how can we translate Attribute Group Label By default label will be same for all store as there is no option for set label by Store.
1 vote
2 answers
2k views

How to change default search placeholder text in Magento 2.3.5

I want to change the default search box placeholder text by using a translation file - it's the text that says "Search entire store here...". I want to change it to "Search website"...
1 vote
3 answers
1k views

How to translate admin panel?

I need to translate magento 2 admin panel to Persian language. Can anyone suggest to me the best ways to achieve this? I suppose I need to download some language pack and then install it. Or I just ...
3 votes
2 answers
2k views

Magento 2 : How to override translation file module wise?

I need to update translation file only for checkout page , so how can I do that . I don't want to use translation file which is use in theme folder.
0 votes
0 answers
44 views

Magento 2 : how to remove Product Price getting Translated?

I have a multilanguage site (Arabic and English) which is upgraded from 2.4.3 to 2.4.6-p3. Now the product price is translated in Arabic store view (eg: if the price is 399.5 then it is like ٣٩٩٫٥٠ ...
2 votes
2 answers
48 views

translation not working when added new store in magento 2.3.2

I already had 2 stores, translation was working fine in them, then I created another 3 stores and translated them from csv file, but the translation is not working. Magento2.3.2 this is already had 2 ...
0 votes
1 answer
125 views

When Select France Language in Google Translate Price Formatting Different in cart page in Magento 1.9

I set the google translate to translate language in magento 1.9, but in the cart page for some products, the currency symbol was not changed. Select Language France Select Language English any one ...
1 vote
0 answers
33 views

Magento 2 Shpping Address Summary section State name did not translate

I want to create my site on Arabic Language but on Shipping Address page State name did not translate I also enter word into i18n csv file but it doesn't work for me. you can get references using the ...
0 votes
1 answer
1k views

Can't translate text in cookie popup in magento 2

Can't translate text in cookie popup in magento 2 I tryed add this text to de_DE.csv, but it not translate "We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre ...
0 votes
3 answers
42 views

Magento 2 + default url needs to traslate

Need to translate some default URLs like customer/account/login/ & customer/account/create/ is there any way to translate these URLs with/without using URL rewrite?
0 votes
2 answers
210 views

How to add translate in file master.html in pagebuilder in magento 2

Like in the title - I have a problem with adding translate to file master.html in PageBuilder. I tried these solutions: <h3 data-bind="i18n: 'text'"></h3> <h3 translate=&...
0 votes
0 answers
19 views

How to Skip Translation for specific input in magento2.4.3

I have added quantity increment and decrement button in minicart <input data-bind="value: qty, attr: { id: 'cart-item-'+item_id+'-qty', 'data-cart-...
1 vote
1 answer
104 views

how to translate magento2 Core APIs messages

I am creating mobile app using magento2 APIs. The problem is that I want to translate messages according to the store on frontend for example i want to translate the error messages and success ...
5 votes
3 answers
7k views

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

After switching to the production mode, an error appeared in the console : pub/static/adminhtml/Magento/backend/en_US/js-translation.json 404 (Not Found) pub/static/adminhtml/Magento/backend/en_US/js-...
0 votes
2 answers
338 views

Street address fields translations issue

This is my method from the core of magento: \Magento\Checkout\Block\Checkout\AttributeMerger::getMultilineFieldConfig and this is the code: .... $line = [ 'label' => __("%1: ...
0 votes
0 answers
31 views

Auto Switch Language when country changed

My question is how I can switch language when country code is changed. I have use this extension https://magefan.com/magento-2-auto-language-switcher But they have changed store using geo ip location ...
1 vote
7 answers
2k views

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

I want to translate "Buy" and "Save" word in tier_price.phtml file.I have added the word in translation csv file but it is not working form me. Refer screenshot PATH : vendor/magento/module-...
0 votes
1 answer
385 views

How to translate string with link?

Magento 2.3 How would I translate this in a CSV file: $message = __('You added <a href="'. $product->getProductUrl() .'">%1</a> to your shopping cart.', $product-&...
0 votes
0 answers
113 views

How to add html tag inside trans directive?

I am trying to add html <a> tag inside {{trans''}} but, I am getting the wrong output. Below is how I am trying to do it. <div class="register-button"> {{trans'<a href=&...
0 votes
1 answer
78 views

How to access variable outside of trans directive in email template?

I am trying to use a variable called reset_password_url and I cannot make it work. Below is what I have. <a href="%reset_password_url">{{trans 'link' reset_password_url=$...
0 votes
1 answer
95 views

Translate "Add to Cart" button on Recently Viewed widget

I think "Add to Cart" button recently viewed is hard coded. Can anyone confirm this? I did find a guide about changing the words in app/design/frontend/VendorName/ThemeName/...
0 votes
1 answer
146 views

How to ad html tag inside trans directive in magento2

I am trying to add a <span> tag inside a trans directive but, it is not working for me. Below is what I am trying: <h1 class="section-heading order-number-heading">{{trans 'Your ...
1 vote
0 answers
21 views

How to create non-modularized language packs

What are the structural differences and how do you create the non-modularized language pack? Per https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/xlate.html#m2devgde-xlate-...
0 votes
1 answer
2k views

Magento 2 translate the .pdf invoice

I've set up a Magento 2.3.0 shop, and I have also translated it. Everything seems fine on the front-end, but one part that I can't get translated, are the .pdf invoices. I have tried to add those ...
0 votes
1 answer
83 views

Order confirmation email is in english for custom payment method in Magento 2

I have an m2 website in the Norwegian language when an order is placed with COD then the order confirmation email is Norwegian but when I use my custom payment method the order confirmation email is ...
0 votes
1 answer
537 views

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

Magento 2.4.3 introduces a show password feature : How can I translate the "Show Password" text? An entry in the i18n\XX_XX.csv file does not work.
0 votes
2 answers
57 views

Magento2 text not getting translated when added in ar_SA.csv

vendor/magento/module-sales/Model/Reorder/Reorder.php Could not add the product with SKU "%1" to the shopping cart: %2 The above mentioned text si not getting translated when adding data ...
1 vote
1 answer
497 views

How can we change placeholder of state dropdown field on checkout page in magento 2?

How can we change placeholder of state Dropdown field on checkout page in Magento2
0 votes
0 answers
32 views

csv didn't work on translate store language label in magento frontend

getStores()) > 1): ?> <?php $id = $block->getIdModifier() ? '-' . $block->getIdModifier() : '' ?> <div class="switcher language switcher-language" data-ui-id="language-...
0 votes
1 answer
453 views

Magento 2.3.4: Translation with special charactors "\n"

I need to translate this question: "The requested qty is not available\nSome of the products are out of stock." This is a message from API payment information on the checkout page when I ...
0 votes
0 answers
40 views

Sign In in Magento Checkout doesn't translate

Have tried all combination: "Sign In", "Inloggen" " Sign In ", "Inloggen" "sign in","Inloggen" " sign in ", "Inloggen" ...
0 votes
3 answers
168 views

Translate "Sorry, no quotes are available for this order at this time"

Since we use table rates and require a city/state/zip, a customer will always see "Sorry, no quotes are available for this order at this time" before choosing their shipping criteria. We ...
1 vote
0 answers
209 views

English to english translation problem magento2

I am translating the text("You canceled the coupon code.") with "Thank you for canceling the coupon code" (This is just english to english translation) from Magento\Checkout\Controller\Cart\CouponPost ...
0 votes
1 answer
395 views

How does Translate inline work

How does translate inline work? I'm trying to change a previous translation in the checkout "Proceed to checkout" button. ATM all our websites have the same translation of the button but I ...
0 votes
1 answer
369 views

Magento 2 : How to add Translate Code in JavaScript code in PHTML file?

I am trying to add translate code <?= __('This field is required') ?> in the Magento file using JavaScript but it is not working plz help me. if(response.length == 0) { document....
5 votes
5 answers
7k views

Magento 2.3 translations (translate label) in the admin panel (backend)

In Magento 1 I just added a translate.csv for my admin area. How can I achieve this in Magento 2? I just want to change the translations of a few things and add some missing translations. Can't I put ...
0 votes
1 answer
633 views

Magento 2 - How to export all messages for translation

In magento 2, I need to export in file all alert and error messages in order to translate them. I already try this : php bin/magento i18n:collect-phrases app/code/ -o translate.csv But this not ...
1 vote
2 answers
1k views

Translate in Araic language Magento 2.3.3

Product Name, Description and Layerd Navigation not Translate In Arabic Language. Using Arabic Language Pack Install Language Pack. 1. Product Name 2. Product Description 3. Layerd ...
0 votes
1 answer
581 views

How to translate variable string in js file?

Let's say I have the following code: define([ 'jquery', 'mage/translate', ], function ( $, $t ) { 'use strict'; return function (str) { //Rest of codes to determine ...
1 vote
0 answers
361 views

How to translate Customer dashboard "Account Information" Tab text in magneto 2.4

I'm trying to translate Magento 2.4 with Porto theme in Danish, all translations working fine but a few of them not work. Under Customer Dashboard > Account Information below text not translated. &...
6 votes
2 answers
734 views

Merge different language csv to determine which phrases missing a translation

Currently we have our shop only in English language and want to add an Italian one. So we have collected all phrases with bin/magento i18n:collect-phrases --magento --output="en_EN.csv". We installed ...
0 votes
1 answer
203 views

How to translate magento 2 customer login/registration url

How I can translate customer login url? "customer/account/login/" but example if I translate it to Estonian then it should look like this "klient/kasutaja/sisselogimine". So if ...
0 votes
1 answer
688 views

Magento2 language/locale not working

So I installed Magento 2.4 via docker/composer on my development machine. I am trying to use the German (Germany) language for my store front view. I tried with just the default setup, I also tried ...
0 votes
1 answer
797 views

how to override translate from a vendor language package

hello everyone in my case i want to translate some sentences in magento 2.3 wich is already tanslated by a language package or in a module inside the vendor folder , for example i have already a ...
0 votes
1 answer
222 views

Translate "custom option" for multistore

I have a website and for a product like "shirts" there is a way to get a discount. (This is implemented by a custom option). I'm importing all the products and the options programmatically. ...
0 votes
1 answer
271 views

How to translate static content within CMS

I have a language pack installed and its working but it does not work for my own static content I have created within the CMS. For example I created a page within the CMS. <div> <p>Hello ...
0 votes
3 answers
920 views

Can anyone help me to get frontend translations only? Magento2

My site having two different languages, English and French. I have used MagePlaza's French language pack for the French translations. The translation CSV file contains more than 14k rows! So, it is ...
0 votes
1 answer
199 views

translate a content: 'Price'; in a scss file

I have a file called _catalog-extend.scss. When I open this file I see in de the code a hardcoded 'Price'. // // Price box // _____________________________________________ .product-info-main ....
0 votes
1 answer
229 views

Magento 2: Translate knockout html where "mailto:[email protected]" is used

In Magento_Checkout/web/template/minicart/content.html there is a "mailto:[email protected]" used. Now I can translate the last piece by -- ko text: $t('[email protected]') --> <-- /ko --...