@o3r/localization 9.6.0-alpha.30 → 9.6.0-alpha.32
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.
|
@@ -65,7 +65,7 @@ exports.default = (0, architect_1.createBuilder)(async (options, context) => {
|
|
|
65
65
|
if (translationsWithIssue.length) {
|
|
66
66
|
throw new schematics_1.O3rCliError(`The following translations are invalid: ${translationsWithIssue.map((translation) => translation.key).join(', ')}`);
|
|
67
67
|
}
|
|
68
|
-
(0, extractors_1.validateJson)(metadata, require('
|
|
68
|
+
(0, extractors_1.validateJson)(metadata, require('../../schemas/localization.metadata.schema.json'), 'The output of localization metadata is not valid regarding the json schema, please check the details below : \n', options.strictMode);
|
|
69
69
|
context.reportProgress(STEP_NUMBER, STEP_NUMBER, 'Generating metadata');
|
|
70
70
|
// Create output folder if does not exist
|
|
71
71
|
const localizationMetadataFolder = path.dirname(path.resolve(context.workspaceRoot, options.outputFile));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/localization",
|
|
3
|
-
"version": "9.6.0-alpha.
|
|
3
|
+
"version": "9.6.0-alpha.32",
|
|
4
4
|
"description": "This module provides a runtime dynamic language/translation support and debug tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localization",
|
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
"otter-module",
|
|
9
9
|
"otter-cms"
|
|
10
10
|
],
|
|
11
|
+
"exports": {
|
|
12
|
+
"./schemas/*.json": {
|
|
13
|
+
"default": "./schemas/*.json"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/o3r-localization.mjs",
|
|
21
|
+
"esm": "./esm2022/o3r-localization.mjs",
|
|
22
|
+
"default": "./fesm2022/o3r-localization.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
11
25
|
"peerDependencies": {
|
|
12
26
|
"@angular-devkit/architect": "~0.1602.0",
|
|
13
27
|
"@angular-devkit/core": "~16.2.0",
|
|
@@ -20,11 +34,11 @@
|
|
|
20
34
|
"@formatjs/intl-numberformat": "^8.0.2",
|
|
21
35
|
"@ngrx/store": "~16.3.0",
|
|
22
36
|
"@ngx-translate/core": "~15.0.0",
|
|
23
|
-
"@o3r/core": "^9.6.0-alpha.
|
|
24
|
-
"@o3r/dynamic-content": "^9.6.0-alpha.
|
|
25
|
-
"@o3r/extractors": "^9.6.0-alpha.
|
|
26
|
-
"@o3r/logger": "^9.6.0-alpha.
|
|
27
|
-
"@o3r/schematics": "^9.6.0-alpha.
|
|
37
|
+
"@o3r/core": "^9.6.0-alpha.32",
|
|
38
|
+
"@o3r/dynamic-content": "^9.6.0-alpha.32",
|
|
39
|
+
"@o3r/extractors": "^9.6.0-alpha.32",
|
|
40
|
+
"@o3r/logger": "^9.6.0-alpha.32",
|
|
41
|
+
"@o3r/schematics": "^9.6.0-alpha.32",
|
|
28
42
|
"@schematics/angular": "~16.2.0",
|
|
29
43
|
"chokidar": "^3.5.2",
|
|
30
44
|
"intl-messageformat": "~10.5.0",
|
|
@@ -67,17 +81,6 @@
|
|
|
67
81
|
"schematics": "./collection.json",
|
|
68
82
|
"module": "fesm2022/o3r-localization.mjs",
|
|
69
83
|
"typings": "index.d.ts",
|
|
70
|
-
"exports": {
|
|
71
|
-
"./package.json": {
|
|
72
|
-
"default": "./package.json"
|
|
73
|
-
},
|
|
74
|
-
".": {
|
|
75
|
-
"types": "./index.d.ts",
|
|
76
|
-
"esm2022": "./esm2022/o3r-localization.mjs",
|
|
77
|
-
"esm": "./esm2022/o3r-localization.mjs",
|
|
78
|
-
"default": "./fesm2022/o3r-localization.mjs"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
84
|
"sideEffects": false,
|
|
82
85
|
"contributors": [
|
|
83
86
|
{
|
|
@@ -26,6 +26,17 @@
|
|
|
26
26
|
"description": {
|
|
27
27
|
"type": "string",
|
|
28
28
|
"description": "Description of the key. Used to give some context to the translators"
|
|
29
|
+
},
|
|
30
|
+
"referenceData": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "Determine if the value has to be overriden"
|
|
33
|
+
},
|
|
34
|
+
"tags": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"description": "tags used to filter, categorize",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
41
|
}
|
|
31
42
|
},
|
|
@@ -37,8 +48,8 @@
|
|
|
37
48
|
"dictionary"
|
|
38
49
|
],
|
|
39
50
|
"if": { "properties": { "dictionary": { "const": false } } },
|
|
40
|
-
"then": { "required": ["key", "description", "dictionary"] },
|
|
41
|
-
"else": { "required": ["key", "description", "dictionary"
|
|
51
|
+
"then": { "required": ["key", "description", "dictionary", "value"] },
|
|
52
|
+
"else": { "required": ["key", "description", "dictionary"] },
|
|
42
53
|
"properties": {
|
|
43
54
|
"key": {
|
|
44
55
|
"type": "string",
|
|
@@ -62,6 +73,10 @@
|
|
|
62
73
|
"items": {
|
|
63
74
|
"type": "string"
|
|
64
75
|
}
|
|
76
|
+
},
|
|
77
|
+
"referenceData": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"description": "Determine if the value has to be overriden"
|
|
65
80
|
}
|
|
66
81
|
}
|
|
67
82
|
}
|