@sap-ux/odata-service-inquirer 2.5.11 → 2.5.13

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.
package/dist/i18n.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { TOptions } from 'i18next';
1
+ import type { i18n as i18nNext, TOptions } from 'i18next';
2
2
  export declare const defaultProjectNumber = 1;
3
+ export declare const i18n: i18nNext;
3
4
  /**
4
5
  * Initialize i18next with the translations for this module.
5
6
  */
package/dist/i18n.js CHANGED
@@ -3,7 +3,7 @@ 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 = void 0;
6
+ exports.i18n = exports.defaultProjectNumber = void 0;
7
7
  exports.initI18nOdataServiceInquirer = initI18nOdataServiceInquirer;
8
8
  exports.t = t;
9
9
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
@@ -12,11 +12,12 @@ const i18next_1 = __importDefault(require("i18next"));
12
12
  const odata_service_inquirer_i18n_json_1 = __importDefault(require("./translations/odata-service-inquirer.i18n.json"));
13
13
  const odataServiceInquirerNamespace = 'odata-service-inquirer';
14
14
  exports.defaultProjectNumber = 1;
15
+ exports.i18n = i18next_1.default.createInstance();
15
16
  /**
16
17
  * Initialize i18next with the translations for this module.
17
18
  */
18
19
  async function initI18nOdataServiceInquirer() {
19
- await i18next_1.default.init({
20
+ await exports.i18n.init({
20
21
  lng: 'en',
21
22
  fallbackLng: 'en',
22
23
  missingInterpolationHandler: () => '',
@@ -34,7 +35,7 @@ async function initI18nOdataServiceInquirer() {
34
35
  }
35
36
  }
36
37
  });
37
- i18next_1.default.addResourceBundle('en', odataServiceInquirerNamespace, odata_service_inquirer_i18n_json_1.default);
38
+ exports.i18n.addResourceBundle('en', odataServiceInquirerNamespace, odata_service_inquirer_i18n_json_1.default);
38
39
  // add other bundles that are used in consumed modules
39
40
  (0, inquirer_common_1.addi18nResourceBundle)();
40
41
  (0, project_input_validator_1.addi18nResourceBundle)();
@@ -50,7 +51,7 @@ function t(key, options) {
50
51
  if (!options?.ns) {
51
52
  options = Object.assign(options ?? {}, { ns: odataServiceInquirerNamespace });
52
53
  }
53
- return i18next_1.default.t(key, options);
54
+ return exports.i18n.t(key, options);
54
55
  }
55
56
  initI18nOdataServiceInquirer().catch(() => {
56
57
  // Needed for lint
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "2.5.11",
4
+ "version": "2.5.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -25,20 +25,20 @@
25
25
  "axios": "1.8.2",
26
26
  "axios-logger": "2.8.0",
27
27
  "fast-xml-parser": "4.4.1",
28
- "i18next": "23.5.1",
28
+ "i18next": "25.3.0",
29
29
  "inquirer-autocomplete-prompt": "2.0.1",
30
30
  "os-name": "4.0.1",
31
31
  "@sap-ux/axios-extension": "1.22.3",
32
32
  "@sap-ux/btp-utils": "1.1.0",
33
- "@sap-ux/fiori-generator-shared": "0.12.14",
33
+ "@sap-ux/fiori-generator-shared": "0.12.16",
34
34
  "@sap-ux/guided-answers-helper": "0.3.0",
35
- "@sap-ux/telemetry": "0.6.7",
36
- "@sap-ux/inquirer-common": "0.7.19",
35
+ "@sap-ux/telemetry": "0.6.9",
36
+ "@sap-ux/inquirer-common": "0.7.21",
37
37
  "@sap-ux/logger": "0.7.0",
38
38
  "@sap-ux/nodejs-utils": "0.2.1",
39
- "@sap-ux/project-access": "1.30.5",
40
- "@sap-ux/project-input-validator": "0.6.8",
41
- "@sap-ux/store": "1.1.1"
39
+ "@sap-ux/project-access": "1.30.6",
40
+ "@sap-ux/project-input-validator": "0.6.10",
41
+ "@sap-ux/store": "1.1.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@sap-ux/vocabularies-types": "0.13.0",
@@ -47,12 +47,12 @@
47
47
  "@types/inquirer": "8.2.6",
48
48
  "@types/lodash": "4.14.202",
49
49
  "jest-extended": "3.2.4",
50
- "@sap-ux/fiori-generator-shared": "0.12.14",
51
- "@sap-ux/fiori-elements-writer": "2.5.8",
52
- "@sap-ux/fiori-freestyle-writer": "2.4.19",
50
+ "@sap-ux/fiori-generator-shared": "0.12.16",
51
+ "@sap-ux/fiori-elements-writer": "2.5.10",
52
+ "@sap-ux/fiori-freestyle-writer": "2.4.21",
53
53
  "@sap-ux/feature-toggle": "0.3.0",
54
- "@sap-ux/odata-service-writer": "0.27.9",
55
- "@sap-ux/cap-config-writer": "0.10.15"
54
+ "@sap-ux/odata-service-writer": "0.27.11",
55
+ "@sap-ux/cap-config-writer": "0.10.17"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=20.x"