@sap-ux/fiori-app-sub-generator 0.5.18 → 0.5.20

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.
@@ -1,4 +1,5 @@
1
- import type { TOptions } from 'i18next';
1
+ import type { i18n as i18nNext, TOptions } from 'i18next';
2
+ export declare const i18n: i18nNext;
2
3
  export declare const fioriAppSubGeneratorNs = "fiori-app-sub-generator";
3
4
  export declare const defaultProjectNumber = 1;
4
5
  /**
@@ -3,18 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.defaultProjectNumber = exports.fioriAppSubGeneratorNs = void 0;
6
+ exports.defaultProjectNumber = exports.fioriAppSubGeneratorNs = exports.i18n = void 0;
7
7
  exports.initI18nFioriAppSubGenerator = initI18nFioriAppSubGenerator;
8
8
  exports.t = t;
9
9
  const i18next_1 = __importDefault(require("i18next"));
10
10
  const fioriAppSubGenerator_i18n_json_1 = __importDefault(require("../translations/fioriAppSubGenerator.i18n.json"));
11
+ exports.i18n = i18next_1.default.createInstance();
11
12
  exports.fioriAppSubGeneratorNs = 'fiori-app-sub-generator';
12
13
  exports.defaultProjectNumber = 1;
13
14
  /**
14
15
  * Initialize i18next with the translations for this module.
15
16
  */
16
17
  async function initI18nFioriAppSubGenerator() {
17
- await i18next_1.default.init({
18
+ await exports.i18n.init({
18
19
  resources: {
19
20
  en: {
20
21
  [exports.fioriAppSubGeneratorNs]: fioriAppSubGenerator_i18n_json_1.default
@@ -46,7 +47,7 @@ function t(key, options) {
46
47
  if (!options?.ns) {
47
48
  options = Object.assign(options ?? {}, { ns: exports.fioriAppSubGeneratorNs });
48
49
  }
49
- return i18next_1.default.t(key, options);
50
+ return exports.i18n.t(key, options);
50
51
  }
51
52
  initI18nFioriAppSubGenerator().catch(() => {
52
53
  // Needed for lint
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "0.5.18",
4
+ "version": "0.5.20",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -22,29 +22,29 @@
22
22
  "@sap-ux/annotation-converter": "0.10.3",
23
23
  "@sap-ux/edmx-parser": "0.9.1",
24
24
  "@sap/service-provider-apis": "2.1.5",
25
- "i18next": "23.11.2",
25
+ "i18next": "25.3.0",
26
26
  "inquirer": "8.2.6",
27
27
  "lodash": "4.17.21",
28
28
  "mem-fs": "2.1.0",
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "uuid": "11.0.5",
31
31
  "yeoman-generator": "5.10.0",
32
- "@sap-ux/annotation-generator": "0.3.43",
32
+ "@sap-ux/annotation-generator": "0.3.45",
33
33
  "@sap-ux/axios-extension": "1.22.3",
34
34
  "@sap-ux/btp-utils": "1.1.0",
35
- "@sap-ux/cap-config-writer": "0.10.15",
35
+ "@sap-ux/cap-config-writer": "0.10.17",
36
36
  "@sap-ux/feature-toggle": "0.3.0",
37
- "@sap-ux/fiori-elements-writer": "2.5.8",
38
- "@sap-ux/fiori-freestyle-writer": "2.4.19",
39
- "@sap-ux/fiori-generator-shared": "0.12.14",
37
+ "@sap-ux/fiori-freestyle-writer": "2.4.21",
38
+ "@sap-ux/fiori-generator-shared": "0.12.16",
40
39
  "@sap-ux/fiori-tools-settings": "0.2.0",
41
- "@sap-ux/launch-config": "0.10.10",
42
- "@sap-ux/odata-service-inquirer": "2.5.11",
43
- "@sap-ux/odata-service-writer": "0.27.9",
44
- "@sap-ux/project-access": "1.30.5",
45
- "@sap-ux/store": "1.1.1",
46
- "@sap-ux/telemetry": "0.6.7",
47
- "@sap-ux/ui5-application-inquirer": "0.14.22",
40
+ "@sap-ux/fiori-elements-writer": "2.5.10",
41
+ "@sap-ux/launch-config": "0.10.12",
42
+ "@sap-ux/odata-service-inquirer": "2.5.13",
43
+ "@sap-ux/odata-service-writer": "0.27.11",
44
+ "@sap-ux/project-access": "1.30.6",
45
+ "@sap-ux/store": "1.1.2",
46
+ "@sap-ux/telemetry": "0.6.9",
47
+ "@sap-ux/ui5-application-inquirer": "0.14.24",
48
48
  "@sap-ux/ui5-info": "0.12.0"
49
49
  },
50
50
  "devDependencies": {
@@ -62,12 +62,12 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "5.0.5",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/abap-deploy-config-inquirer": "1.4.29",
66
- "@sap-ux/cf-deploy-config-inquirer": "0.3.22",
67
- "@sap-ux/flp-config-sub-generator": "0.2.42",
68
- "@sap-ux/inquirer-common": "0.7.19",
65
+ "@sap-ux/abap-deploy-config-inquirer": "1.4.31",
66
+ "@sap-ux/cf-deploy-config-inquirer": "0.3.24",
69
67
  "@sap-ux/jest-file-matchers": "0.2.3",
70
- "@sap-ux/logger": "0.7.0"
68
+ "@sap-ux/flp-config-sub-generator": "0.2.45",
69
+ "@sap-ux/logger": "0.7.0",
70
+ "@sap-ux/inquirer-common": "0.7.21"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=20.x"