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

how to use on placeholder in input tag #38

Closed
webafra opened this issue Mar 12, 2018 · 3 comments
Closed

how to use on placeholder in input tag #38

webafra opened this issue Mar 12, 2018 · 3 comments

Comments

@webafra
Copy link

webafra commented Mar 12, 2018

hi .

i want set multilanguage on placeholder on input tag .
how to use ?

thanks .

@leonardovilarinho
Copy link
Owner

leonardovilarinho commented Mar 12, 2018

Hello, use the translate method. For example <input :placeholder="translate('...')"/>

@webafra
Copy link
Author

webafra commented Mar 12, 2018

and how to use with this method :
<div>trans.name,trans.hi</div>
?

@leonardovilarinho
Copy link
Owner

leonardovilarinho commented Mar 19, 2018

Hi, I not understanded. You can use:

<input :placeholder="translate('path.to.string.translated')" />

or

<div v-lang.path.to.string.translated></div>

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

No branches or pull requests

2 participants