Vue-i18n: Why is vue-i18n in a single label element can not be used normally?

Created on 8 Nov 2016  Â·  2Comments  Â·  Source: kazupon/vue-i18n

Why is vue-i18n in a single label element can not be used normally?
This is a small example of the web site:
https://jsfiddle.net/linfulong/4k7aLb3p/

Most helpful comment

You must bind value of element
I change <input type="button" value="{{ $t('message.hello') }}" > to <input type="button" :value="$t('message.hello')" >

example:
https://jsfiddle.net/no0n7s3u/1/

All 2 comments

You must bind value of element
I change <input type="button" value="{{ $t('message.hello') }}" > to <input type="button" :value="$t('message.hello')" >

example:
https://jsfiddle.net/no0n7s3u/1/

As @drozdzynski says, You can use the v-bind about it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rosadojonathan picture Rosadojonathan  Â·  4Comments

JakubKoralewski picture JakubKoralewski  Â·  5Comments

alexey2baranov picture alexey2baranov  Â·  4Comments

koslo picture koslo  Â·  5Comments

jarikmarwede picture jarikmarwede  Â·  4Comments