Tell us which versions you are using:
Not sure if I'm missing something but changing the label manually on the options doesn't remove the "(optional)" text.
Is there a way to remove this or is not supported?
Thanks.
Solution: pass i18n on the options object and set "optional" param to whatever you want
const options = {
i18n: {
optional: ''
},
}
@gcanti It seems the readme should be updated with this solution cause this works and the solution in the readme doesn't.
The current readme solution is not working for me :
t.form.Form.i18n = {
optional: '',
required: ' (required)' // inverting the behaviour: adding a postfix to the required fields
};
Furthermore you also need :
required: '',
otherwise you will get undefined text in your label which is not wanted. Should be default to ''.
@Ishigamii Thanks for the report but I don't maintain this library anymore (maybe someone else could verify). Cheers.
my bad sorry @alvaromb maybe ?
Most helpful comment
Solution: pass i18n on the options object and set "optional" param to whatever you want