Skip to content

Conversation

ilhan007
Copy link
Contributor

@ilhan007 ilhan007 commented Aug 5, 2019

After introducing the translation_v2.json and messagebundle.properties (#Step1) to enable the translation team find and process our texts we continue improving our message translation setup

  • remove the manually supported defaults.js
  • add a script for build time generation of i18n-defaults.js under dist/generated/i18n/ folder for each messagebundle_*.properties file
  • prepare a script without enabling it, calledi18n-toJSON to convert the messagebundle_*.properties files to messagebundle_*.json ones

@ilhan007 ilhan007 changed the title chore: enable translations step #2 wip: enable translations step #2 Aug 7, 2019
@ilhan007 ilhan007 changed the title wip: enable translations step #2 chore: enable translations step #2 Aug 7, 2019
MapTo0
MapTo0 previously approved these changes Aug 12, 2019
@@ -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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.js?

Copy link
Contributor

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/...?

Copy link
Contributor Author

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

"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",
Copy link
Contributor

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.

@ilhan007 ilhan007 merged commit 1532017 into master Aug 12, 2019
@ilhan007 ilhan007 deleted the translation-script branch August 12, 2019 11:13
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

Successfully merging this pull request may close these issues.

3 participants