@sap-ux/cf-deploy-config-inquirer 0.3.22 → 0.3.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 +2 -1
- package/dist/i18n.js +6 -4
- package/package.json +4 -4
package/dist/i18n.d.ts
CHANGED
package/dist/i18n.js
CHANGED
|
@@ -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 = void 0;
|
|
6
|
+
exports.i18n = exports.defaultProjectNumber = void 0;
|
|
7
7
|
exports.initI18nCfDeployConfigInquirer = initI18nCfDeployConfigInquirer;
|
|
8
8
|
exports.t = t;
|
|
9
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
10
10
|
const cf_deploy_config_inquirer_i18n_json_1 = __importDefault(require("./translations/cf-deploy-config-inquirer.i18n.json"));
|
|
11
11
|
const cfInquirerNamespace = 'cf-deploy-config-inquirer';
|
|
12
12
|
exports.defaultProjectNumber = 1;
|
|
13
|
+
exports.i18n = i18next_1.default.createInstance();
|
|
13
14
|
/**
|
|
14
15
|
* Initialize i18next with the translations for this module.
|
|
15
16
|
*/
|
|
16
17
|
async function initI18nCfDeployConfigInquirer() {
|
|
17
|
-
await
|
|
18
|
+
await exports.i18n.init({
|
|
18
19
|
lng: 'en',
|
|
19
20
|
fallbackLng: 'en',
|
|
20
21
|
interpolation: {
|
|
@@ -22,7 +23,8 @@ async function initI18nCfDeployConfigInquirer() {
|
|
|
22
23
|
defaultProjectNumber: exports.defaultProjectNumber
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
}
|
|
26
|
+
});
|
|
27
|
+
exports.i18n.addResourceBundle('en', cfInquirerNamespace, cf_deploy_config_inquirer_i18n_json_1.default);
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
|
|
@@ -35,7 +37,7 @@ function t(key, options) {
|
|
|
35
37
|
if (!options?.ns) {
|
|
36
38
|
options = Object.assign(options ?? {}, { ns: cfInquirerNamespace });
|
|
37
39
|
}
|
|
38
|
-
return
|
|
40
|
+
return exports.i18n.t(key, options);
|
|
39
41
|
}
|
|
40
42
|
initI18nCfDeployConfigInquirer().catch(() => {
|
|
41
43
|
// Needed for lint
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-inquirer",
|
|
3
3
|
"description": "Prompts module that can provide prompts for cf deployment config writer",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.24",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"!dist/**/*.map"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"i18next": "
|
|
22
|
+
"i18next": "25.3.0",
|
|
23
23
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
24
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
24
|
+
"@sap-ux/inquirer-common": "0.7.21",
|
|
25
25
|
"@sap-ux/btp-utils": "1.1.0",
|
|
26
26
|
"@sap-ux/logger": "0.7.0"
|
|
27
27
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/inquirer-autocomplete-prompt": "2.0.1",
|
|
31
31
|
"@types/inquirer": "8.2.6",
|
|
32
32
|
"inquirer": "8.2.6",
|
|
33
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
33
|
+
"@sap-ux/project-input-validator": "0.6.10"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=20.x"
|