-
Notifications
You must be signed in to change notification settings - Fork 278
chore: enable translations step #2 #715
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
Conversation
@@ -1,5 +1,5 @@ | |||
import { registerIcon } from "../SVGIconRegistry.js"; | |||
import { ICON_MESSAGE_ERROR } from "../../../main/src/i18n/defaults.js"; | |||
import { ICON_MESSAGE_ERROR } from "../../../main/dist/generated/i18n/i18n-defaults"; |
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.
.js
?
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.
shouldn't this be @ui5/webcomponents/dist/generaated/i18n/...
?
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.
Added .js and leave it with relative path
packages/main/package.json
Outdated
"copy:qunit": "cpx \"test/**/qunit/*.*\" dist/test-resources", | ||
"copy:webcomponents-polyfill": "cpx \"../../node_modules/@webcomponents/webcomponentsjs/**/*.*\" dist/webcomponentsjs/", | ||
"dev": "npm-run-all --parallel watch:templates watch:samples watch:pages watch:qunit watch:src watch:bundle watch:styles-bundles watch:styles-components copy:webcomponents-polyfill", | ||
"dev": "npm-run-all --parallel watch:templates watch:samples watch:pages watch:qunit watch:src watch:bundle watch:styles-bundles watch:styles-components copy:webcomponents-polyfill build:i18n-defaults", |
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.
we should avoid race conditions and run the i18n sequentially as first step and the current parallel steps as a second step after the i18n is generated.
After introducing the
translation_v2.json
andmessagebundle.properties
(#Step1) to enable the translation team find and process our texts we continue improving our message translation setupdefaults.js
i18n-defaults.js
underdist/generated/i18n/
folder for eachmessagebundle_*.properties
filei18n-toJSON
to convert the messagebundle_*.propertiesfiles to messagebundle_*.json
ones