jquery.i18n icon indicating copy to clipboard operation
jquery.i18n copied to clipboard

data-i18n change multiple attributes

Open marcoas opened this issue 4 years ago • 3 comments

(Translated by Google)

Is it possible to change the value and an attribute of an element simultaneously, with data-i18n?

<button data-i18n="[title]Text-a">Text-b</button>

In this example I want to translate the TITLE and the content of the BUTTON

marcoas avatar Jun 09 '20 23:06 marcoas

I have a similar issue.
Example:
<input type="text" placeholder="Enter your name" title="Only Latin letters are allowed"></input>

How do I localize both placeholder and title?

antonvasilev52 avatar Sep 15 '20 15:09 antonvasilev52

to @antonvasilev52 i think showing like this can also be a solution

enter your name

Kirtishukla2004 avatar Mar 16 '23 09:03 Kirtishukla2004

enter your name <input type="text" placeholder="Only Latin letters are allowed"">

Kirtishukla2004 avatar Mar 16 '23 09:03 Kirtishukla2004