Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
43 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
27 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
37 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,483
0 votes
0 answers
17 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
77 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
28 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 ...
Rohit Gohel's user avatar
0 votes
2 answers
149 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
100 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
  • 41
0 votes
1 answer
47 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
  • 41
0 votes
1 answer
79 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
0 votes
1 answer
124 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
  • 41
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-...
Scruffy Paws's user avatar
0 votes
1 answer
77 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
494 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,745
0 votes
2 answers
56 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,526
1 vote
1 answer
460 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
276 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,863
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
372 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
144 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
  • 137
0 votes
1 answer
351 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,123
0 votes
1 answer
333 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
580 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
  • 147
0 votes
1 answer
542 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,695
1 vote
0 answers
349 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
175 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
0 votes
1 answer
268 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
  • 23
0 votes
1 answer
626 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
744 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
190 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
244 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
176 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
221 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
766 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
110 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
123 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 ...
Joy Poly's user avatar
  • 501
0 votes
1 answer
43 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
116 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
  • 720
1 vote
1 answer
30 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,186
0 votes
1 answer
329 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
116 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
206 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
53 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
323 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
715 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
  • 129
1 vote
1 answer
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
1 vote
0 answers
34 views

File js-translation.json is loaded slower or later than other javascript

File js-translation.json is loaded slower or later than other javascript file which contains some texts need to translate so at this time translated texts still not push to storage. When the a.js is ...
Minh Nguyễn Văn's user avatar