Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-i18n change multiple attributes #216

Open
marcoas opened this issue Jun 9, 2020 · 3 comments
Open

data-i18n change multiple attributes #216

marcoas opened this issue Jun 9, 2020 · 3 comments

Comments

@marcoas
Copy link

marcoas commented Jun 9, 2020

(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

@antonvasilev52
Copy link

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?

@Kirtishukla2004
Copy link

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

enter your name

@Kirtishukla2004
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants