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

Website Translation and Localization #235

Open
bmatern opened this issue Apr 6, 2022 · 1 comment
Open

Website Translation and Localization #235

bmatern opened this issue Apr 6, 2022 · 1 comment
Labels
enhancement New feature or request nice to have

Comments

@bmatern
Copy link
Contributor

bmatern commented Apr 6, 2022

No description provided.

@bmatern bmatern added enhancement New feature or request nice to have labels Apr 6, 2022
@bmatern
Copy link
Contributor Author

bmatern commented Apr 6, 2022

The JHITranslate / i18n feature is not (completely) enabled on the website.

We resolved an issue related to non-informative error messages, that look like for example "ihiwManagementApp.upload.updated"

The fix was to change the REST endpoints to return "untranslated" entity update alerts, which pass a "false" into the createEntityUpdateAlert:
return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(applicationName, false, ENTITY_NAME, upload.getId().toString())) .body(result);

A better solution is to enable translation (i18nEnabled: false in app.module.ts), but this would bring great challenges, because most text does not have an available translation, it does not work currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice to have
Projects
None yet
Development

No branches or pull requests

1 participant