@o3r/localization 11.6.0-prerelease.9 → 11.7.0-prerelease.0
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/builders/i18n/index.d.ts +1 -1
- package/builders/i18n/index.d.ts.map +1 -1
- package/builders/localization/index.d.ts +1 -1
- package/builders/localization/index.d.ts.map +1 -1
- package/builders/localization-extractor/index.d.ts +2 -2
- package/builders/localization-extractor/index.d.ts.map +1 -1
- package/builders/localization-extractor/index.js +0 -2
- package/builders/metadata-check/helpers/localization-metadata-comparison.helper.d.ts +1 -1
- package/builders/metadata-check/helpers/localization-metadata-comparison.helper.d.ts.map +1 -1
- package/core/localization.configuration.d.ts +1 -1
- package/core/localization.configuration.d.ts.map +1 -1
- package/core/translate-messageformat-lazy.compiler.d.ts +1 -1
- package/core/translate-messageformat-lazy.compiler.d.ts.map +1 -1
- package/devkit/localization-devtools.message.service.d.ts +2 -5
- package/devkit/localization-devtools.message.service.d.ts.map +1 -1
- package/devkit/localization-devtools.token.d.ts +1 -1
- package/devkit/localization-devtools.token.d.ts.map +1 -1
- package/esm2022/core/localization.configuration.mjs +1 -1
- package/esm2022/core/translate-messageformat-lazy.compiler.mjs +4 -4
- package/esm2022/devkit/localization-devtools.console.service.mjs +3 -3
- package/esm2022/devkit/localization-devtools.message.service.mjs +9 -12
- package/esm2022/devkit/localization-devtools.module.mjs +4 -4
- package/esm2022/devkit/localization-devtools.service.mjs +3 -3
- package/esm2022/devkit/localization-devtools.token.mjs +1 -1
- package/esm2022/rules-engine/localization.handler-action.mjs +3 -3
- package/esm2022/rules-engine/localization.rules-engine.module.mjs +4 -4
- package/esm2022/stores/localization-override/localization-override.module.mjs +4 -4
- package/esm2022/tools/localization-translate.directive.mjs +3 -3
- package/esm2022/tools/localization-translate.pipe.mjs +6 -6
- package/esm2022/tools/localization.module.mjs +4 -4
- package/esm2022/tools/localization.provider.mjs +1 -1
- package/esm2022/tools/localization.service.mjs +3 -3
- package/esm2022/tools/localized-currency.pipe.mjs +3 -3
- package/esm2022/tools/localized-date.pipe.mjs +3 -3
- package/esm2022/tools/localized-decimal.pipe.mjs +3 -3
- package/esm2022/tools/text-direction.service.mjs +3 -3
- package/esm2022/tools/text-directionality.service.mjs +3 -3
- package/esm2022/tools/translations-loader.mjs +3 -3
- package/fesm2022/o3r-localization-rules-engine.mjs +7 -7
- package/fesm2022/o3r-localization.mjs +59 -62
- package/fesm2022/o3r-localization.mjs.map +1 -1
- package/migration.json +5 -0
- package/package.json +19 -19
- package/schemas/localization.metadata.schema.json +1 -2
- package/schematics/add-localization-key/index.d.ts.map +1 -1
- package/schematics/add-localization-key/index.js +22 -6
- package/schematics/localization-to-component/templates/__name__.translation.ts.template +1 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-update/v11-6/index.d.ts +6 -0
- package/schematics/ng-update/v11-6/index.d.ts.map +1 -0
- package/schematics/ng-update/v11-6/index.js +22 -0
- package/tools/localization.provider.d.ts +1 -1
- package/tools/localization.provider.d.ts.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v11-6/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EAEL,MAAM,4BAA4B,CAAC;AAqBpC;;GAEG;AACH,eAAO,MAAM,UAAU,4BAAsD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateV116 = void 0;
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
const regexp = /translations\s*:\s*(?:Readonly<)?([A-Z][\w]*)(?:>)?\s*=\s*({[^;]+})\s*(as\s*const)?\s*;/g;
|
|
6
|
+
function updateV116Fn() {
|
|
7
|
+
return (tree) => {
|
|
8
|
+
const files = (0, schematics_1.findFilesInTree)(tree.getDir(''), (filePath) => /translation\.ts$/.test(filePath));
|
|
9
|
+
files.forEach(({ content, path }) => {
|
|
10
|
+
const str = content.toString();
|
|
11
|
+
const newContent = str.replaceAll(regexp, 'translations: Readonly<$1> = $2 as const;');
|
|
12
|
+
if (newContent !== str) {
|
|
13
|
+
tree.overwrite(path, newContent);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Update of Otter configuration V11.6
|
|
20
|
+
*/
|
|
21
|
+
exports.updateV116 = (0, schematics_1.createSchematicWithMetricsIfInstalled)(updateV116Fn);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -14,5 +14,5 @@ export declare function createTranslateLoader(localizationConfiguration: Localiz
|
|
|
14
14
|
/**
|
|
15
15
|
* TranslateLoader provider, using framework's TranslationsLoader class
|
|
16
16
|
*/
|
|
17
|
-
export declare const translateLoaderProvider: FactoryProvider
|
|
17
|
+
export declare const translateLoaderProvider: Readonly<FactoryProvider>;
|
|
18
18
|
//# sourceMappingURL=localization.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.provider.d.ts","sourceRoot":"","sources":["../../src/tools/localization.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAIjB,OAAO,EACL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,qBAAqB,CAAC,EAAE,qBAAqB,sBAEhK;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"localization.provider.d.ts","sourceRoot":"","sources":["../../src/tools/localization.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAIjB,OAAO,EACL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,qBAAqB,CAAC,EAAE,qBAAqB,sBAEhK;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,eAAe,CAIpD,CAAC"}
|