@sap-ux/deploy-config-sub-generator 0.3.34 → 0.3.35

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
  /**
3
4
  * Initialize i18next with the translations for this module.
4
5
  */
@@ -3,17 +3,23 @@ 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.i18n = void 0;
6
7
  exports.initI18n = initI18n;
7
8
  exports.t = t;
8
9
  const i18next_1 = __importDefault(require("i18next"));
9
10
  const deploy_config_sub_generator_i18n_json_1 = __importDefault(require("../translations/deploy-config-sub-generator.i18n.json"));
10
11
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
11
12
  const deployConfigSubGen = 'deploy-config-sub-generator';
13
+ exports.i18n = i18next_1.default.createInstance();
12
14
  /**
13
15
  * Initialize i18next with the translations for this module.
14
16
  */
15
17
  async function initI18n() {
16
- await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', deployConfigSubGen, deploy_config_sub_generator_i18n_json_1.default));
18
+ await exports.i18n.init({
19
+ lng: 'en',
20
+ fallbackLng: 'en'
21
+ });
22
+ exports.i18n.addResourceBundle('en', deployConfigSubGen, deploy_config_sub_generator_i18n_json_1.default);
17
23
  (0, inquirer_common_1.addi18nResourceBundle)();
18
24
  }
19
25
  /**
@@ -27,7 +33,7 @@ function t(key, options) {
27
33
  if (!options?.ns) {
28
34
  options = Object.assign(options ?? {}, { ns: deployConfigSubGen });
29
35
  }
30
- return i18next_1.default.t(key, options);
36
+ return exports.i18n.t(key, options);
31
37
  }
32
38
  initI18n().catch(() => {
33
39
  // Needed for lint
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/deploy-config-sub-generator",
3
3
  "description": "Main generator for configuring ABAP or Cloud Foundry deployment configuration",
4
- "version": "0.3.34",
4
+ "version": "0.3.35",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -22,18 +22,18 @@
22
22
  "@sap-devx/yeoman-ui-types": "1.16.9",
23
23
  "dotenv": "16.3.1",
24
24
  "hasbin": "1.2.3",
25
- "i18next": "23.5.1",
25
+ "i18next": "25.3.0",
26
26
  "yeoman-generator": "5.10.0",
27
27
  "@sap-ux/btp-utils": "1.1.0",
28
- "@sap-ux/cf-deploy-config-sub-generator": "0.2.29",
29
- "@sap-ux/abap-deploy-config-sub-generator": "0.1.33",
30
- "@sap-ux/deploy-config-generator-shared": "0.1.16",
31
- "@sap-ux/fiori-generator-shared": "0.12.15",
32
- "@sap-ux/inquirer-common": "0.7.20",
33
- "@sap-ux/odata-service-inquirer": "2.5.12",
28
+ "@sap-ux/cf-deploy-config-sub-generator": "0.2.30",
29
+ "@sap-ux/abap-deploy-config-sub-generator": "0.1.34",
30
+ "@sap-ux/deploy-config-generator-shared": "0.1.17",
31
+ "@sap-ux/fiori-generator-shared": "0.12.16",
32
+ "@sap-ux/inquirer-common": "0.7.21",
34
33
  "@sap-ux/project-access": "1.30.6",
35
- "@sap-ux/store": "1.1.1",
36
- "@sap-ux/ui5-config": "0.29.0"
34
+ "@sap-ux/store": "1.1.2",
35
+ "@sap-ux/ui5-config": "0.29.0",
36
+ "@sap-ux/odata-service-inquirer": "2.5.13"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "9.0.13",
@@ -50,10 +50,10 @@
50
50
  "rimraf": "5.0.5",
51
51
  "unionfs": "4.4.0",
52
52
  "yeoman-test": "6.3.0",
53
- "@sap-ux/abap-deploy-config-inquirer": "1.4.30",
54
- "@sap-ux/cf-deploy-config-inquirer": "0.3.23",
55
- "@sap-ux/cf-deploy-config-writer": "0.3.12",
56
- "@sap-ux/fiori-app-sub-generator": "0.5.19",
53
+ "@sap-ux/abap-deploy-config-inquirer": "1.4.31",
54
+ "@sap-ux/cf-deploy-config-inquirer": "0.3.24",
55
+ "@sap-ux/cf-deploy-config-writer": "0.3.13",
56
+ "@sap-ux/fiori-app-sub-generator": "0.5.20",
57
57
  "@sap-ux/jest-file-matchers": "0.2.3"
58
58
  },
59
59
  "engines": {