cancel
Showing results for 
Search instead for 
Did you mean: 

How to translate "Remember me" help text?

How to translate "Remember me" help text?

On the Register Customer page, how can I translate this string?

 

bilde.png

1 REPLY 1

Re: How to translate "Remember me" help text?

Hello phantonym,

If you are including this text from your phtml file the there you can use it as 

<?= __("Your desired text"); ?>

And then add your translation in translation csv file.

If you are adding this text from js file then use mage/translate.js for translation.

require([
'jquery', 
'mage/translate'
], function($){ 
    $(window).load(function() {
        alert($.mage.__('Your desired text'));
    });
});

As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way and then translate it in your translation csv. 

Hope this will help you. Smiley Happy