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

[ToDo] i18n texts #12

Open
TimoStahl opened this issue Oct 29, 2018 · 1 comment
Open

[ToDo] i18n texts #12

TimoStahl opened this issue Oct 29, 2018 · 1 comment

Comments

@TimoStahl
Copy link

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

@TimoStahl TimoStahl changed the title TODO: i18n this [ToDo] i18n texts Oct 29, 2018
@zaunaro
Copy link

zaunaro commented Sep 10, 2021

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.

:)

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