-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: user role description translations in en/de #1287
base: main
Are you sure you want to change the base?
fix: user role description translations in en/de #1287
Conversation
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@kunalgaurav-bmw @lavanya-bmw @manojava-gk please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original implementation ignored i18n. We should refactor the code so the descriptions are not hard coded in the template csv but instead are taken from the i18n files. This way all i18n translations are in one place and not scattered over the repo.
CSVCells[0] === 'roles;description\r' || | ||
CSVCells[0] === 'roles;description' | ||
CSVCells[0] === 'roles;description_en;description_de\r' || | ||
CSVCells[0] === 'roles;description_en;description_de' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implemented solution wouldn't work with more than two languages in case we provide descriptions for additional languages in the future.
Commercial Manager;Commercial Specialist can do the final approval of commercial request and trigger the payout;Der Handelsspezialist kann die endgültige Genehmigung des Handelsantrags vornehmen und die Auszahlung veranlassen. | ||
Recycler;Recycler can buy recycled material;Recycler können recyceltes Material kaufen | ||
Manager;This is only a test text in EN;Das is in Deutsch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the translations should not appear in this template. Instead we should have them together with the other translations in src/assets/locales.
Description
Updated the CSV file parsing journey in order to extract the German language translations for User role's description in process of App creation.
Changelog entry:
Why
we weren't handling the User Role's description in German language from CSV file template.
Issue
#1288
Checklist