@o3r/localization 9.5.0-alpha.4 → 9.5.0-alpha.5
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.
|
@@ -72,7 +72,7 @@ export declare class LocalizationExtractor {
|
|
|
72
72
|
*/
|
|
73
73
|
private readMetadataFile;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Generate a metadata item from a localization item
|
|
76
76
|
*
|
|
77
77
|
* @param loc Localization item
|
|
78
78
|
* @param key Key of the localization
|
|
@@ -104,7 +104,7 @@ class LocalizationExtractor {
|
|
|
104
104
|
return new Promise((resolve, reject) => fs.readFile(metadataFile, 'utf8', (err, data) => err ? reject(err) : resolve(JSON.parse(data))));
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Generate a metadata item from a localization item
|
|
108
108
|
*
|
|
109
109
|
* @param loc Localization item
|
|
110
110
|
* @param key Key of the localization
|
|
@@ -124,7 +124,7 @@ class LocalizationExtractor {
|
|
|
124
124
|
}
|
|
125
125
|
if (loc.$ref) {
|
|
126
126
|
const [refPath, refKey] = loc.$ref.split('#/', 2);
|
|
127
|
-
if (this.options?.libraries?.some((lib) => refPath.startsWith(lib))) {
|
|
127
|
+
if (refPath.startsWith('.') || this.options?.libraries?.some((lib) => refPath.startsWith(lib))) {
|
|
128
128
|
res.ref = refKey;
|
|
129
129
|
}
|
|
130
130
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/localization",
|
|
3
|
-
"version": "9.5.0-alpha.
|
|
3
|
+
"version": "9.5.0-alpha.5",
|
|
4
4
|
"description": "This module provides a runtime dynamic language/translation support and debug tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localization",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"@formatjs/intl-numberformat": "^8.0.2",
|
|
21
21
|
"@ngrx/store": "~16.3.0",
|
|
22
22
|
"@ngx-translate/core": "~15.0.0",
|
|
23
|
-
"@o3r/core": "^9.5.0-alpha.
|
|
24
|
-
"@o3r/dynamic-content": "^9.5.0-alpha.
|
|
25
|
-
"@o3r/extractors": "^9.5.0-alpha.
|
|
26
|
-
"@o3r/logger": "^9.5.0-alpha.
|
|
27
|
-
"@o3r/schematics": "^9.5.0-alpha.
|
|
23
|
+
"@o3r/core": "^9.5.0-alpha.5",
|
|
24
|
+
"@o3r/dynamic-content": "^9.5.0-alpha.5",
|
|
25
|
+
"@o3r/extractors": "^9.5.0-alpha.5",
|
|
26
|
+
"@o3r/logger": "^9.5.0-alpha.5",
|
|
27
|
+
"@o3r/schematics": "^9.5.0-alpha.5",
|
|
28
28
|
"@schematics/angular": "~16.2.0",
|
|
29
29
|
"chokidar": "^3.5.2",
|
|
30
30
|
"intl-messageformat": "~10.5.0",
|