2

I try to translate the value attribute of an input

<input type="checkbox" id="html" name="fav_language" data-bind="i18n: {value:'Check here'}">

I tried something like that but it doesn't work

Thanks in advance for your help

1 Answer 1

1

Found the solution : Add a label and translate it, can't directly do it inside input

<input type="checkbox" name="checkbox" id="checkbox_id" value="value">
<label for="checkbox_id" data-bind="i18n: 'Sign In'"></label>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.