@sap-ux/fiori-elements-writer 0.21.1 → 0.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -46,6 +46,7 @@ const templateAttributes_2 = require("./data/templateAttributes");
46
46
  const manifestSettings_1 = require("./data/manifestSettings");
47
47
  const semver_1 = __importDefault(require("semver"));
48
48
  const ui5_config_1 = require("@sap-ux/ui5-config");
49
+ const i18n_1 = require("./i18n");
49
50
  exports.V2_FE_TYPES_AVAILABLE = '1.108.0';
50
51
  /**
51
52
  * Get TypeScript Ignore Glob Pattern.
@@ -87,6 +88,9 @@ function getTypeScriptIgnoreGlob(feApp, coercedUI5Version) {
87
88
  function generate(basePath, data, fs) {
88
89
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
89
90
  return __awaiter(this, void 0, void 0, function* () {
91
+ // Load i18n translations asynchronously to ensure proper initialization.
92
+ // This addresses occasional issues where i18n is not initialized in time, causing tests to fail.
93
+ yield (0, i18n_1.initI18n)();
90
94
  // Clone rather than modifying callers refs
91
95
  const feApp = (0, cloneDeep_1.default)(data);
92
96
  // Ensure input data contains at least the mandatory properties required for app generation
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "0.21.1",
4
+ "version": "0.21.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -27,10 +27,10 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "read-pkg-up": "7.0.1",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/odata-service-writer": "0.20.3",
31
- "@sap-ux/ui5-application-writer": "0.26.16",
30
+ "@sap-ux/odata-service-writer": "0.20.4",
31
+ "@sap-ux/ui5-application-writer": "0.26.17",
32
32
  "@sap-ux/fe-fpm-writer": "0.24.15",
33
- "@sap-ux/ui5-config": "0.22.8",
33
+ "@sap-ux/ui5-config": "0.22.9",
34
34
  "@sap-ux/ui5-test-writer": "0.3.3"
35
35
  },
36
36
  "devDependencies": {