@sap-ux/ui5-application-inquirer 0.14.22 → 0.14.24

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.initI18nUi5AppInquirer = initI18nUi5AppInquirer;
8
8
  exports.t = t;
9
9
  const i18next_1 = __importDefault(require("i18next"));
@@ -12,11 +12,12 @@ const inquirer_common_1 = require("@sap-ux/inquirer-common");
12
12
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
13
13
  const ui5AppInquirerNamespace = 'ui5-application-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 initI18nUi5AppInquirer() {
19
- await i18next_1.default.init({
20
+ await exports.i18n.init({
20
21
  lng: 'en',
21
22
  fallbackLng: 'en',
22
23
  interpolation: {
@@ -25,7 +26,7 @@ async function initI18nUi5AppInquirer() {
25
26
  }
26
27
  }
27
28
  });
28
- i18next_1.default.addResourceBundle('en', ui5AppInquirerNamespace, ui5_application_inquirer_i18n_json_1.default);
29
+ exports.i18n.addResourceBundle('en', ui5AppInquirerNamespace, ui5_application_inquirer_i18n_json_1.default);
29
30
  // Add bundles on which this module depends (this is a temp workaround as the init from the imported modules is not called)
30
31
  (0, project_input_validator_1.addi18nResourceBundle)();
31
32
  (0, inquirer_common_1.addi18nResourceBundle)();
@@ -41,7 +42,7 @@ function t(key, options) {
41
42
  if (!options?.ns) {
42
43
  options = Object.assign(options ?? {}, { ns: ui5AppInquirerNamespace });
43
44
  }
44
- return i18next_1.default.t(key, options);
45
+ return exports.i18n.t(key, options);
45
46
  }
46
47
  initI18nUi5AppInquirer().catch(() => {
47
48
  // Needed for lint
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-application-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for UI5 application writing",
4
- "version": "0.14.22",
4
+ "version": "0.14.24",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -19,13 +19,13 @@
19
19
  "!dist/**/*.map"
20
20
  ],
21
21
  "dependencies": {
22
- "i18next": "23.5.1",
22
+ "i18next": "25.3.0",
23
23
  "inquirer-autocomplete-prompt": "2.0.1",
24
24
  "lodash": "4.17.21",
25
25
  "semver": "7.5.4",
26
- "@sap-ux/inquirer-common": "0.7.19",
27
- "@sap-ux/project-access": "1.30.5",
28
- "@sap-ux/project-input-validator": "0.6.8",
26
+ "@sap-ux/inquirer-common": "0.7.21",
27
+ "@sap-ux/project-access": "1.30.6",
28
+ "@sap-ux/project-input-validator": "0.6.10",
29
29
  "@sap-ux/ui5-info": "0.12.0"
30
30
  },
31
31
  "devDependencies": {
@@ -35,7 +35,7 @@
35
35
  "@types/lodash": "4.14.202",
36
36
  "@types/semver": "7.5.4",
37
37
  "inquirer": "8.2.6",
38
- "@sap-ux/cap-config-writer": "0.10.15"
38
+ "@sap-ux/cap-config-writer": "0.10.17"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=20.x"