@steedos/i18n 3.0.13-beta.8 → 3.0.13
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/lib/core_i18n.js +12 -12
- package/lib/core_i18n.js.map +1 -1
- package/lib/export_object_i18n.js +19 -24
- package/lib/export_object_i18n.js.map +1 -1
- package/lib/i18n/i18n.app.js +36 -36
- package/lib/i18n/i18n.app.js.map +1 -1
- package/lib/i18n/i18n.js +72 -72
- package/lib/i18n/i18n.js.map +1 -1
- package/lib/index.js +24 -25
- package/lib/index.js.map +1 -1
- package/lib/locales.js +10 -15
- package/lib/locales.js.map +1 -1
- package/lib/router.js +4 -6
- package/lib/router.js.map +1 -1
- package/lib/translations/index.js +5 -5
- package/lib/translations/index.js.map +1 -1
- package/lib/translations/objectTranslation.js +111 -112
- package/lib/translations/objectTranslation.js.map +1 -1
- package/lib/translations/templates/objectTranslation.js +15 -16
- package/lib/translations/templates/objectTranslation.js.map +1 -1
- package/lib/translations/templates/translation.js +16 -17
- package/lib/translations/templates/translation.js.map +1 -1
- package/lib/translations/translation.js +65 -66
- package/lib/translations/translation.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAppMetadataTranslationTemplate = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const _ = require("underscore");
|
|
5
|
+
const index_1 = require("../index");
|
|
6
|
+
const clone = require("clone");
|
|
7
7
|
function keysToJSON(keys, source) {
|
|
8
|
-
|
|
8
|
+
const json = {};
|
|
9
9
|
_.each(keys, function (key) {
|
|
10
10
|
json[key] = source[key] || '';
|
|
11
11
|
});
|
|
12
12
|
return json;
|
|
13
13
|
}
|
|
14
14
|
function getTabGroupsTemplate(groups) {
|
|
15
|
-
|
|
15
|
+
const template = { groups: {} };
|
|
16
16
|
if (groups) {
|
|
17
17
|
_.each(groups, function (group) {
|
|
18
|
-
|
|
18
|
+
let groupKey = group.group_name.toLocaleLowerCase().replace(/\%/g, '_').replace(/\./g, '_').replace(/\ /g, '_');
|
|
19
19
|
template.groups[groupKey] = group.group_name;
|
|
20
20
|
});
|
|
21
21
|
return template;
|
|
@@ -24,36 +24,35 @@ function getTabGroupsTemplate(groups) {
|
|
|
24
24
|
return {};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
const getAppTranslationTemplate = function (app) {
|
|
28
28
|
return Object.assign({}, keysToJSON(['name', 'description'], app), getTabGroupsTemplate(app.tab_groups));
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
const getTabItemTranslationTemplate = function (tabs) {
|
|
31
|
+
const template = {};
|
|
32
32
|
_.each(tabs, function (tab, tabId) {
|
|
33
33
|
template[tabId] = tabId;
|
|
34
34
|
});
|
|
35
35
|
return template;
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const getTabTranslationTemplate = function (tabs) {
|
|
38
|
+
const template = {};
|
|
39
39
|
_.each(tabs, function (tab) {
|
|
40
|
-
|
|
40
|
+
let tabKey = tab.toLocaleLowerCase().replace(/\%/g, '_').replace(/\./g, '_').replace(/\ /g, '_');
|
|
41
41
|
template[tabKey] = tab;
|
|
42
42
|
});
|
|
43
43
|
return template;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var app = clone(_app);
|
|
45
|
+
const getAppMetadataTranslationTemplate = function (lng, appId, _app) {
|
|
46
|
+
let app = clone(_app);
|
|
48
47
|
(0, index_1.translationApp)(lng, appId, app);
|
|
49
|
-
|
|
48
|
+
let CustomTabs = {};
|
|
50
49
|
if (app.tab_items) {
|
|
51
50
|
CustomTabs = getTabItemTranslationTemplate(app.tab_items);
|
|
52
51
|
}
|
|
53
52
|
else if (app.tabs) {
|
|
54
53
|
CustomTabs = getTabTranslationTemplate(app.tabs);
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
let template = Object.assign({}, { CustomApplications: { [appId]: getAppTranslationTemplate(app) } }, { CustomTabs });
|
|
57
56
|
return template;
|
|
58
57
|
};
|
|
59
58
|
exports.getAppMetadataTranslationTemplate = getAppMetadataTranslationTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/translations/templates/translation.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/translations/templates/translation.ts"],"names":[],"mappings":";;;AAAA,gCAAgC;AAChC,oCAA0C;AAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAE/B,SAAS,UAAU,CAAC,IAAI,EAAE,MAAM;IAC5B,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,UAAS,GAAG;QACrB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAM;IAChC,MAAM,QAAQ,GAAG,EAAC,MAAM,EAAC,EAAE,EAAC,CAAC;IAC7B,IAAG,MAAM,EAAC,CAAC;QACP,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,UAAS,KAAK;YACzB,IAAI,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YAChH,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC;QACjD,CAAC,CAAC,CAAA;QACF,OAAO,QAAQ,CAAC;IACpB,CAAC;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ACd,UAAU,GAAG,6BAA6B,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;SAAK,IAAG,GAAG,CAAC,IAAI,EAAC,CAAC;QACf,UAAU,GAAG,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IACD,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAC,kBAAkB,EAAE,EAAC,CAAC,KAAK,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,EAAC,EAAC,EAAE,EAAC,UAAU,EAAC,CAAC,CAAC;IAEhH,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAZY,QAAA,iCAAiC,qCAY7C"}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addTranslations = exports.convertTranslation = exports.getAppTranslationTemplate = exports.translationApps = exports.translationMenus = exports.translationApp = exports.translationTabLabel = exports.translationTabGroup = void 0;
|
|
4
4
|
exports.convertTranslationData = convertTranslationData;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
const index_1 = require("../index");
|
|
6
|
+
const _ = require("underscore");
|
|
7
|
+
const _1 = require("./");
|
|
8
|
+
const i18n_app_1 = require("../i18n/i18n.app");
|
|
9
|
+
const clone = require("clone");
|
|
10
|
+
const NAMESPACE = "translation";
|
|
11
|
+
const KEYSEPARATOR = ".";
|
|
12
|
+
const CUSTOMAPPLICATIONS_KEY = "app";
|
|
13
|
+
const MENU_KEY = "menu";
|
|
14
|
+
const CUSTOMTABS_KEY = "tab";
|
|
15
|
+
const getPrefix = function (key) {
|
|
16
16
|
switch (key) {
|
|
17
17
|
case CUSTOMAPPLICATIONS_KEY:
|
|
18
18
|
return _1.SteedosTranslationPrefixKeys.Application;
|
|
@@ -22,12 +22,12 @@ var getPrefix = function (key) {
|
|
|
22
22
|
return "CustomLabels";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
const getCustomLabelKey = function (key) {
|
|
26
|
+
const prefix = getPrefix();
|
|
27
27
|
return [prefix, key].join(KEYSEPARATOR);
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const translation = function (key, lng) {
|
|
30
|
+
let options = { lng: lng, ns: NAMESPACE };
|
|
31
31
|
if (KEYSEPARATOR === ".") {
|
|
32
32
|
options.keySeparator = false;
|
|
33
33
|
}
|
|
@@ -35,79 +35,79 @@ var translation = function (key, lng) {
|
|
|
35
35
|
return (0, index_1._t)(key, options);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
const getAppNameKey = function (appId) {
|
|
39
|
+
const prefix = getPrefix(CUSTOMAPPLICATIONS_KEY);
|
|
40
40
|
return [prefix, appId, "name"].join(KEYSEPARATOR);
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const getAppDescriptionKey = function (appId) {
|
|
43
|
+
const prefix = getPrefix(CUSTOMAPPLICATIONS_KEY);
|
|
44
44
|
return [prefix, appId, "description"].join(KEYSEPARATOR);
|
|
45
45
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
const getAppGroupKey = function (appId, groupId) {
|
|
47
|
+
const prefix = getPrefix(CUSTOMAPPLICATIONS_KEY);
|
|
48
|
+
const fixGroupId = groupId
|
|
49
49
|
.toLocaleLowerCase()
|
|
50
50
|
.replace(/\%/g, "_")
|
|
51
51
|
.replace(/\./g, "_")
|
|
52
52
|
.replace(/\ /g, "_");
|
|
53
53
|
return [prefix, appId, "groups", fixGroupId].join(KEYSEPARATOR);
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return [prefix,
|
|
55
|
+
const getMenuLabelKey = function (menuId) {
|
|
56
|
+
const prefix = getPrefix(MENU_KEY);
|
|
57
|
+
return [prefix, `menu_${menuId}`].join(KEYSEPARATOR);
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
const getTabLabelKey = function (tabId) {
|
|
60
|
+
const prefix = getPrefix(CUSTOMTABS_KEY);
|
|
61
61
|
return [prefix, tabId].join(KEYSEPARATOR);
|
|
62
62
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
const translationAppName = function (lng, appId, def) {
|
|
64
|
+
let key = getAppNameKey(appId);
|
|
65
|
+
let keys = [key];
|
|
66
|
+
let fallbackKey = i18n_app_1.appFallbackKeys.getAppLabelKey(appId);
|
|
67
67
|
if (fallbackKey) {
|
|
68
68
|
keys.push(fallbackKey);
|
|
69
69
|
}
|
|
70
70
|
return translation(keys, lng) || def || "";
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
const translationAppDescription = function (lng, appId, def) {
|
|
73
|
+
let key = getAppDescriptionKey(appId);
|
|
74
|
+
let keys = [key];
|
|
75
|
+
let fallbackKey = i18n_app_1.appFallbackKeys.getAppDescriptionKey(appId);
|
|
76
76
|
if (fallbackKey) {
|
|
77
77
|
keys.push(fallbackKey);
|
|
78
78
|
}
|
|
79
79
|
return translation(keys, lng) || def || "";
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
const translationTabGroup = function (lng, appId, groupId, def) {
|
|
82
|
+
let key = getAppGroupKey(appId, groupId);
|
|
83
|
+
let keys = [key];
|
|
84
|
+
let fallbackKey = i18n_app_1.appFallbackKeys.getAppGroupKey(appId, groupId);
|
|
85
85
|
if (fallbackKey) {
|
|
86
86
|
keys.push(fallbackKey);
|
|
87
87
|
}
|
|
88
88
|
return translation(keys, lng) || def || "";
|
|
89
89
|
};
|
|
90
90
|
exports.translationTabGroup = translationTabGroup;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
const translationMenuLabel = function (lng, menuId, def) {
|
|
92
|
+
let key = getMenuLabelKey(menuId);
|
|
93
|
+
let keys = [key];
|
|
94
|
+
let fallbackKey = i18n_app_1.appFallbackKeys.getMenuLabelKey(menuId);
|
|
95
95
|
if (fallbackKey) {
|
|
96
96
|
keys.push(fallbackKey);
|
|
97
97
|
}
|
|
98
98
|
return translation(keys, lng) || def || "";
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
const translationTabLabel = function (lng, tabId, def) {
|
|
101
|
+
let key = getTabLabelKey(tabId);
|
|
102
|
+
let keys = [key];
|
|
103
|
+
let fallbackKey = i18n_app_1.appFallbackKeys.getTabKey(tabId);
|
|
104
104
|
if (fallbackKey) {
|
|
105
105
|
keys.push(fallbackKey);
|
|
106
106
|
}
|
|
107
107
|
return translation(keys, lng) || def || "";
|
|
108
108
|
};
|
|
109
109
|
exports.translationTabLabel = translationTabLabel;
|
|
110
|
-
|
|
110
|
+
const translationApp = function (lng, appId, app) {
|
|
111
111
|
app.label = translationAppName(lng, appId, app.label || app.name);
|
|
112
112
|
app.description = translationAppDescription(lng, appId, app.description);
|
|
113
113
|
_.each(app.tab_groups, function (tab_group, index) {
|
|
@@ -117,23 +117,23 @@ var translationApp = function (lng, appId, app) {
|
|
|
117
117
|
(0, exports.translationMenus)(lng, app.admin_menus);
|
|
118
118
|
};
|
|
119
119
|
exports.translationApp = translationApp;
|
|
120
|
-
|
|
120
|
+
const translationMenus = function (lng, menus) {
|
|
121
121
|
_.each(menus, function (menu) {
|
|
122
|
-
|
|
122
|
+
let label = translationMenuLabel(lng, menu._id, menu.label || menu.name);
|
|
123
123
|
menu.label = label;
|
|
124
124
|
menu.name = label;
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
exports.translationMenus = translationMenus;
|
|
128
|
-
|
|
128
|
+
const translationApps = function (lng, apps) {
|
|
129
129
|
_.each(apps, function (app, name) {
|
|
130
130
|
(0, exports.translationApp)(lng, name, app);
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
exports.translationApps = translationApps;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
const getAppTranslationTemplate = function (lng, appId, _app) {
|
|
135
|
+
let app = clone(_app);
|
|
136
|
+
let template = {};
|
|
137
137
|
template[getAppNameKey(appId)] = translationAppName(lng, appId, app.label || app.name);
|
|
138
138
|
template[getAppDescriptionKey(appId)] = translationAppDescription(lng, appId, app.description);
|
|
139
139
|
_.each(app.admin_menus, function (menu) {
|
|
@@ -142,7 +142,7 @@ var getAppTranslationTemplate = function (lng, appId, _app) {
|
|
|
142
142
|
return template;
|
|
143
143
|
};
|
|
144
144
|
exports.getAppTranslationTemplate = getAppTranslationTemplate;
|
|
145
|
-
|
|
145
|
+
let processChildren = (item, parentKey, object) => {
|
|
146
146
|
if (_.isArray(object)) {
|
|
147
147
|
_.each(object, function (_citem) {
|
|
148
148
|
processChildren(_citem, "", _citem);
|
|
@@ -150,8 +150,8 @@ var processChildren = function (item, parentKey, object) {
|
|
|
150
150
|
}
|
|
151
151
|
else if (object) {
|
|
152
152
|
_.each(_.keys(object), function (k) {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
let childKey = parentKey ? `${parentKey}.${k}` : k;
|
|
154
|
+
let childValue = object[k];
|
|
155
155
|
if (typeof childValue === "object") {
|
|
156
156
|
if (_.isArray(childValue)) {
|
|
157
157
|
_.each(childValue, function (_citem) {
|
|
@@ -169,16 +169,16 @@ var processChildren = function (item, parentKey, object) {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
function convertTranslationData(record) {
|
|
172
|
-
for (
|
|
172
|
+
for (let k in record) {
|
|
173
173
|
if (typeof record[k] === "object") {
|
|
174
174
|
processChildren(record, k, record[k]);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
return record;
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
const convertTranslation = function (_translation) {
|
|
180
|
+
let translation = clone(_translation);
|
|
181
|
+
let template = {};
|
|
182
182
|
_.each(translation.CustomApplications, function (app, appId) {
|
|
183
183
|
template[getAppNameKey(appId)] = app.name;
|
|
184
184
|
template[getAppDescriptionKey(appId)] = app.description;
|
|
@@ -190,9 +190,8 @@ var convertTranslation = function (_translation) {
|
|
|
190
190
|
template[getTabLabelKey(tabId)] = tab;
|
|
191
191
|
});
|
|
192
192
|
_.each(translation.CustomLabels, function (labelValue, labelKey) {
|
|
193
|
-
var _a;
|
|
194
193
|
if (labelKey != "simpleschema" && _.isObject(labelValue)) {
|
|
195
|
-
|
|
194
|
+
const levelData = convertTranslationData({ [labelKey]: labelValue });
|
|
196
195
|
_.each(levelData, function (value, key) {
|
|
197
196
|
if (!_.isObject(value)) {
|
|
198
197
|
template[getCustomLabelKey(key)] = value;
|
|
@@ -206,10 +205,10 @@ var convertTranslation = function (_translation) {
|
|
|
206
205
|
return template;
|
|
207
206
|
};
|
|
208
207
|
exports.convertTranslation = convertTranslation;
|
|
209
|
-
|
|
208
|
+
const addTranslations = function (translations) {
|
|
210
209
|
_.each(translations, function (item) {
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
let data = (0, exports.convertTranslation)(item.data);
|
|
211
|
+
const ns = item.namespace || NAMESPACE;
|
|
213
212
|
(0, index_1.addResourceBundle)(item.lng, ns, data, true, true);
|
|
214
213
|
});
|
|
215
214
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../src/translations/translation.ts"],"names":[],"mappings":";;;AA8MA,wDAOC;AArND,
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../src/translations/translation.ts"],"names":[],"mappings":";;;AA8MA,wDAOC;AArND,oCAAyD;AACzD,gCAAgC;AAChC,yBAAkD;AAClD,+CA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
1
|
{
|
|
2
2
|
"name": "@steedos/i18n",
|
|
3
|
-
"version": "3.0.13
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/cachers": "3.0.13
|
|
13
|
+
"@steedos/cachers": "3.0.13",
|
|
14
14
|
"i18next": "^19.3.4",
|
|
15
15
|
"i18next-sprintf-postprocessor": "^0.2.2",
|
|
16
16
|
"underscore": "^1.13.7"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a71381a476ebd1183cd2c7096005b7d99820e21c"
|
|
25
25
|
}
|