@sap-ux/adp-tooling 0.14.38 → 0.14.40
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 +4 -2
- package/package.json +8 -8
package/dist/i18n.d.ts
CHANGED
package/dist/i18n.js
CHANGED
|
@@ -3,18 +3,20 @@ 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 adp_tooling_i18n_json_1 = __importDefault(require("./translations/adp-tooling.i18n.json"));
|
|
10
11
|
const adpI18nNamespace = 'adp-tooling';
|
|
12
|
+
exports.i18n = i18next_1.default.createInstance();
|
|
11
13
|
/**
|
|
12
14
|
* Initialize i18next with the translations for this module.
|
|
13
15
|
*
|
|
14
16
|
* @returns {Promise<void>} A promise that resolves when the i18n initialization is completed.
|
|
15
17
|
*/
|
|
16
18
|
async function initI18n() {
|
|
17
|
-
await
|
|
19
|
+
await exports.i18n.init({
|
|
18
20
|
resources: {
|
|
19
21
|
en: {
|
|
20
22
|
[adpI18nNamespace]: adp_tooling_i18n_json_1.default
|
|
@@ -37,7 +39,7 @@ function t(key, options) {
|
|
|
37
39
|
if (!options?.ns) {
|
|
38
40
|
options = Object.assign(options ?? {}, { ns: adpI18nNamespace });
|
|
39
41
|
}
|
|
40
|
-
return
|
|
42
|
+
return exports.i18n.t(key, options);
|
|
41
43
|
}
|
|
42
44
|
initI18n().catch(() => {
|
|
43
45
|
// Needed for lint
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.14.
|
|
12
|
+
"version": "0.14.40",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@sap-devx/yeoman-ui-types": "1.16.9",
|
|
27
27
|
"adm-zip": "0.5.10",
|
|
28
28
|
"ejs": "3.1.10",
|
|
29
|
-
"i18next": "
|
|
29
|
+
"i18next": "25.3.0",
|
|
30
30
|
"inquirer": "8.2.6",
|
|
31
31
|
"mem-fs": "2.1.0",
|
|
32
32
|
"mem-fs-editor": "9.4.0",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"uuid": "10.0.0",
|
|
36
36
|
"@sap-ux/axios-extension": "1.22.3",
|
|
37
37
|
"@sap-ux/btp-utils": "1.1.0",
|
|
38
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
38
|
+
"@sap-ux/inquirer-common": "0.7.22",
|
|
39
39
|
"@sap-ux/logger": "0.7.0",
|
|
40
40
|
"@sap-ux/project-access": "1.30.6",
|
|
41
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
42
|
-
"@sap-ux/system-access": "0.6.
|
|
41
|
+
"@sap-ux/project-input-validator": "0.6.10",
|
|
42
|
+
"@sap-ux/system-access": "0.6.10",
|
|
43
43
|
"@sap-ux/ui5-config": "0.29.0",
|
|
44
44
|
"@sap-ux/ui5-info": "0.12.0",
|
|
45
|
-
"@sap-ux/odata-service-writer": "0.27.
|
|
45
|
+
"@sap-ux/odata-service-writer": "0.27.11",
|
|
46
46
|
"@sap-ux/nodejs-utils": "0.2.1",
|
|
47
47
|
"@sap-ux/i18n": "0.3.1",
|
|
48
|
-
"@sap-ux/store": "1.1.
|
|
48
|
+
"@sap-ux/store": "1.1.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/adm-zip": "0.5.5",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"rimraf": "5.0.5",
|
|
64
64
|
"supertest": "6.3.3",
|
|
65
65
|
"cross-env": "^7.0.3",
|
|
66
|
-
"@sap-ux/store": "1.1.
|
|
66
|
+
"@sap-ux/store": "1.1.2"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=20.x"
|