Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
62 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 ٣٩٩٫٥٠ ...
Jancy Abraham's user avatar
2 votes
2 answers
52 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 ...
user113282's user avatar
1 vote
0 answers
36 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 ...
Keval Chauhan's user avatar
0 votes
3 answers
48 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?
Yogesh's user avatar
  • 1,503
0 votes
0 answers
23 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-...
Magento2-learner's user avatar
1 vote
1 answer
140 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 ...
Syed Hassan Zamir's user avatar
0 votes
0 answers
34 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 ...
user avatar
0 votes
2 answers
263 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=&...
bambo's user avatar
  • 3
0 votes
0 answers
123 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=&...
LosMos's user avatar
  • 111
0 votes
1 answer
101 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=$...
LosMos's user avatar
  • 111
0 votes
1 answer
99 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/...
Jan-petter Havna's user avatar
1 vote
1 answer
188 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 ...
LosMos's user avatar
  • 111
1 vote
0 answers
22 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-...
Scruffy Paws's user avatar
0 votes
1 answer
85 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 ...
Surjan Raghuwanshi's user avatar
0 votes
1 answer
574 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.
paj's user avatar
  • 5,775
0 votes
2 answers
58 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 ...
Arjun's user avatar
  • 3,566
1 vote
1 answer
528 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
Junaid Ashfaq's user avatar
0 votes
2 answers
402 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: ...
Attila Naghi's user avatar
  • 3,963
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-...
user97995's user avatar
0 votes
1 answer
509 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 ...
Simpa407's user avatar
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" ...
Alain Stout's user avatar
0 votes
3 answers
186 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 ...
themew's user avatar
  • 136
0 votes
1 answer
392 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....
User0434's user avatar
  • 1,155
0 votes
1 answer
487 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 ...
Jan-petter Havna's user avatar
0 votes
1 answer
680 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 ...
Fbr's user avatar
  • 157
0 votes
1 answer
612 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 ...
PY Yick's user avatar
  • 2,705
1 vote
0 answers
372 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. &...
Faizan Roshan's user avatar
0 votes
1 answer
221 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 ...
Kristofer's user avatar
1 vote
1 answer
318 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 ...
Nang's user avatar
  • 33
0 votes
1 answer
734 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 ...
mrbrdo's user avatar
  • 101
0 votes
1 answer
846 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 ...
coding ev's user avatar
0 votes
1 answer
241 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. ...
Always_home's user avatar
0 votes
1 answer
282 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 ...
Carter's user avatar
  • 47
0 votes
1 answer
211 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 ....
Always_home's user avatar
0 votes
1 answer
237 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 --...
Always_home's user avatar
0 votes
1 answer
885 views

How to translate validation error message in checkout page Magento 2.3

Please any Ideas on how to translate the validation message on phone field on view/frontend/layout/checkout_index_index.xml: <item name="telephone" xsi:type="array"> <...
Alain Landry Noutchomwo's user avatar
1 vote
0 answers
125 views

Magento 2 Translations not working on plugins

I have a translation file in app/design/frontend/vendor/theme/i18n/en_US.csv "sample_trans","Sample Trans" my problem is when i try to call it in a plugin via __('sample_trans'). ...
mendz's user avatar
  • 143
0 votes
1 answer
128 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 ...
Jay Parmar's user avatar
0 votes
1 answer
49 views

Magento 2 - Conflict in localisation csv file

I understand the general structure of i18n csv files that is like <key_hook>,<translation_of_that_key> but according to the documentation there is the possibility to add a module ...
Pete's user avatar
  • 105
1 vote
2 answers
36 views

Translate problem about

How to Translate about this code please? ->addSuccessMessage(__('Your #' . $incrementId . ' has been submited.')); I tried Your #%1 xxxx but not working? anyone can help, thank you!
niceonelee's user avatar
0 votes
0 answers
137 views

Translation in arabic store for You added {Product name } to your shopping cart

I want to translate "You added {Product name } to you shopping cart in arabic. I tried this, "You added %1 to your <a href=""""%2"""">shopping ...
Nafsss's user avatar
  • 760
1 vote
1 answer
32 views

Magento2: Issue with translate

I add to list.pthml: <tr> <th style="width:10%"><?php /* @escapeNotVerified */ echo __('SKU') ?></th> <th style="width:10%"><?php /* @...
Sylvester's user avatar
  • 2,204
0 votes
1 answer
377 views

Magento 2.3 - How set custom options title by store view programmatically?

I would like to be able to translate the title of the customizable options. The following code works correctly and adds the options in all store views. How to adapt it to have a translated title in ...
Gregory's user avatar
0 votes
2 answers
168 views

Transalation problems checkout

I have translated "You can create an account after checkout." text and "Place order" button and the translation is displayed correct when Magento is set to developer mode, but when ...
Robert's user avatar
  • 23
0 votes
1 answer
229 views

Translate *Required Fields - Magento 2.3

We have an issue that we are not able to translate "*Required Field" and "This is a Required field" I also notice that the previous developer have put the Norwegian Language pack ...
Jan-petter Havna's user avatar
0 votes
2 answers
54 views

Filters on the dashboard don't work with the Spanish dashboard

When I put the panel in Spanish the filters stop working: Why can this be? And how can I fix it? Thank you so much!!
IvannVerano's user avatar
0 votes
1 answer
333 views

How to Translate "Ship here" button

I'm trying to translate a button when you are in checkout and you click "Add new address", a popup comes up where you can add a new address. At the bottom on that popup there is 2 buttons, ...
Jan-petter Havna's user avatar
1 vote
1 answer
760 views

Translate html magento 2

I am developing my custom module. I have the html template look like this <p> This is a <strong>text that I need to translate</strong> </p> <p>Read more: <a href=&...
 coinhndp's user avatar
2 votes
1 answer
2k views

Magento 2: Convert Magento\Framework\Phrase into string

How can i convert this variable into string: $var = __("Welcome"); because when i put in strpos function it will return an error: strpos($var, 'om'); Uncaught TypeError: strpos() expects ...
jojo's user avatar
  • 179
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"...
Chris's user avatar
  • 1,389