[ToDo] i18n texts
Opened this issue · 1 comments
TimoStahl commented
Hi,
thanks for this script, it would be nice if the i18n-todo will be fixed.
e.g.: https://github.com/qualiture/ui5-validator/blob/master/Validator.js#L129
Thanks
zaunaro commented
Hi,
I solved the problem by fetching the i18n property over the oControl
. Therefore insert:
const oResourceBundle = oControl.getModel("i18n");
const sWrongInputMessage = oResourceBundle.getProperty("i18nFileKeyInYourProject");
This code can also be used for the other messages, so you can support multilanguage in your application.
:)