@sap-ux/abap-deploy-config-sub-generator 0.1.33 → 0.1.34
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/generators/utils/i18n.js
CHANGED
|
@@ -3,16 +3,22 @@ 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 abap_deploy_config_sub_generator_i18n_json_1 = __importDefault(require("../translations/abap-deploy-config-sub-generator.i18n.json"));
|
|
10
11
|
const abapDeployGenI18nNamespace = 'abap-deploy-config-sub-generator';
|
|
12
|
+
exports.i18n = i18next_1.default.createInstance();
|
|
11
13
|
/**
|
|
12
14
|
* Initialize i18next with the translations for this module.
|
|
13
15
|
*/
|
|
14
16
|
async function initI18n() {
|
|
15
|
-
await
|
|
17
|
+
await exports.i18n.init({
|
|
18
|
+
lng: 'en',
|
|
19
|
+
fallbackLng: 'en'
|
|
20
|
+
});
|
|
21
|
+
exports.i18n.addResourceBundle('en', abapDeployGenI18nNamespace, abap_deploy_config_sub_generator_i18n_json_1.default);
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
24
|
* Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
|
|
@@ -25,7 +31,7 @@ function t(key, options) {
|
|
|
25
31
|
if (!options?.ns) {
|
|
26
32
|
options = Object.assign(options ?? {}, { ns: abapDeployGenI18nNamespace });
|
|
27
33
|
}
|
|
28
|
-
return
|
|
34
|
+
return exports.i18n.t(key, options);
|
|
29
35
|
}
|
|
30
36
|
initI18n().catch(() => {
|
|
31
37
|
// Needed for lint
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
7
7
|
"directory": "packages/abap-deploy-config-sub-generator"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.34",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "generators/app/index.js",
|
|
12
12
|
"files": [
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"node": ">=20.x"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"i18next": "
|
|
22
|
+
"i18next": "25.3.0",
|
|
23
23
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
24
|
-
"@sap-ux/abap-deploy-config-inquirer": "1.4.
|
|
25
|
-
"@sap-ux/abap-deploy-config-writer": "0.1.
|
|
24
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.4.31",
|
|
25
|
+
"@sap-ux/abap-deploy-config-writer": "0.1.16",
|
|
26
26
|
"@sap-ux/btp-utils": "1.1.0",
|
|
27
|
-
"@sap-ux/deploy-config-generator-shared": "0.1.
|
|
27
|
+
"@sap-ux/deploy-config-generator-shared": "0.1.17",
|
|
28
28
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
29
|
-
"@sap-ux/fiori-generator-shared": "0.12.
|
|
29
|
+
"@sap-ux/fiori-generator-shared": "0.12.16",
|
|
30
30
|
"@sap-ux/logger": "0.7.0",
|
|
31
31
|
"@sap-ux/project-access": "1.30.6",
|
|
32
32
|
"@sap-ux/ui5-config": "0.29.0"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"mem-fs-editor": "9.4.0",
|
|
40
40
|
"unionfs": "4.4.0",
|
|
41
41
|
"yeoman-test": "6.3.0",
|
|
42
|
-
"@sap-ux/store": "1.1.
|
|
43
|
-
"@sap-ux/system-access": "0.6.
|
|
42
|
+
"@sap-ux/store": "1.1.2",
|
|
43
|
+
"@sap-ux/system-access": "0.6.10"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsc --build",
|