@sap-ux/app-config-writer 0.6.21 → 0.6.22
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 -3
- package/package.json +4 -4
package/dist/i18n.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { TOptions } from 'i18next';
|
|
1
|
+
import type { i18n as i18nNext, TOptions } from 'i18next';
|
|
2
2
|
export declare const SMART_LINKS_NS = "app-config-writer:smartLinksConfig";
|
|
3
3
|
export declare const NAV_CONFIG_NS = "app-config-writer:navConfig";
|
|
4
|
+
export declare const i18n: i18nNext;
|
|
4
5
|
/**
|
|
5
6
|
* Initialize i18next with the translations for this module.
|
|
6
7
|
*/
|
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.NAV_CONFIG_NS = exports.SMART_LINKS_NS = void 0;
|
|
6
|
+
exports.i18n = exports.NAV_CONFIG_NS = exports.SMART_LINKS_NS = void 0;
|
|
7
7
|
exports.initI18n = initI18n;
|
|
8
8
|
exports.t = t;
|
|
9
9
|
const i18next_1 = __importDefault(require("i18next"));
|
|
@@ -11,11 +11,12 @@ const smartlinks_config_json_1 = __importDefault(require("./translations/smartli
|
|
|
11
11
|
const navigation_config_json_1 = __importDefault(require("./translations/navigation-config.json"));
|
|
12
12
|
exports.SMART_LINKS_NS = 'app-config-writer:smartLinksConfig';
|
|
13
13
|
exports.NAV_CONFIG_NS = 'app-config-writer:navConfig';
|
|
14
|
+
exports.i18n = i18next_1.default.createInstance();
|
|
14
15
|
/**
|
|
15
16
|
* Initialize i18next with the translations for this module.
|
|
16
17
|
*/
|
|
17
18
|
async function initI18n() {
|
|
18
|
-
await
|
|
19
|
+
await exports.i18n.init({
|
|
19
20
|
resources: {
|
|
20
21
|
en: {
|
|
21
22
|
[exports.SMART_LINKS_NS]: smartlinks_config_json_1.default,
|
|
@@ -36,7 +37,7 @@ async function initI18n() {
|
|
|
36
37
|
* @returns {string} localized string stored for the given key
|
|
37
38
|
*/
|
|
38
39
|
function t(key, options) {
|
|
39
|
-
return
|
|
40
|
+
return exports.i18n.t(key, options);
|
|
40
41
|
}
|
|
41
42
|
initI18n().catch(() => {
|
|
42
43
|
// Ignore any errors since the write will still work
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/app-config-writer",
|
|
3
3
|
"description": "Add or update configuration for SAP Fiori tools application",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.22",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"chalk": "4.1.2",
|
|
24
24
|
"ejs": "3.1.10",
|
|
25
|
-
"i18next": "
|
|
25
|
+
"i18next": "25.3.0",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"prompts": "2.4.2",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@sap-ux/btp-utils": "1.1.0",
|
|
32
32
|
"@sap-ux/logger": "0.7.0",
|
|
33
33
|
"@sap-ux/project-access": "1.30.6",
|
|
34
|
-
"@sap-ux/store": "1.1.
|
|
34
|
+
"@sap-ux/store": "1.1.2",
|
|
35
35
|
"@sap-ux/ui5-config": "0.29.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/semver": "7.5.8",
|
|
43
43
|
"axios": "1.8.2",
|
|
44
44
|
"nock": "13.4.0",
|
|
45
|
-
"@sap-ux/preview-middleware": "0.20.
|
|
45
|
+
"@sap-ux/preview-middleware": "0.20.54"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20.x"
|