refactor(ivy): remove `i18nLocalize` instruction (#31609)
This has been replaced by the `$localize` tag. PR Close #31609
This commit is contained in:
parent
fa79f51645
commit
c024d89448
|
@ -24,7 +24,7 @@ const angularFiles = setup({
|
||||||
|
|
||||||
const htmlParser = new HtmlParser();
|
const htmlParser = new HtmlParser();
|
||||||
|
|
||||||
// TODO: update translation extraction RegExp to support i18nLocalize calls once #28689 lands.
|
// TODO: update translation extraction RegExp to support `$localize` tags.
|
||||||
const EXTRACT_GENERATED_TRANSLATIONS_REGEXP =
|
const EXTRACT_GENERATED_TRANSLATIONS_REGEXP =
|
||||||
/const\s*(.*?)\s*=\s*goog\.getMsg\("(.*?)",?\s*(.*?)\)/g;
|
/const\s*(.*?)\s*=\s*goog\.getMsg\("(.*?)",?\s*(.*?)\)/g;
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,6 @@ export class Identifiers {
|
||||||
static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};
|
static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};
|
||||||
static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', moduleName: CORE};
|
static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', moduleName: CORE};
|
||||||
static i18nPostprocess: o.ExternalReference = {name: 'ɵɵi18nPostprocess', moduleName: CORE};
|
static i18nPostprocess: o.ExternalReference = {name: 'ɵɵi18nPostprocess', moduleName: CORE};
|
||||||
static i18nLocalize: o.ExternalReference = {name: 'ɵɵi18nLocalize', moduleName: CORE};
|
|
||||||
|
|
||||||
static pipe: o.ExternalReference = {name: 'ɵɵpipe', moduleName: CORE};
|
static pipe: o.ExternalReference = {name: 'ɵɵpipe', moduleName: CORE};
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ ng_module(
|
||||||
"//packages/core/src/interface",
|
"//packages/core/src/interface",
|
||||||
"//packages/core/src/reflection",
|
"//packages/core/src/reflection",
|
||||||
"//packages/core/src/util",
|
"//packages/core/src/util",
|
||||||
|
"//packages/localize",
|
||||||
"@npm//rxjs",
|
"@npm//rxjs",
|
||||||
"@npm//zone.js",
|
"@npm//zone.js",
|
||||||
],
|
],
|
||||||
|
|
|
@ -169,7 +169,6 @@ export {
|
||||||
ɵɵi18nApply,
|
ɵɵi18nApply,
|
||||||
ɵɵi18nPostprocess,
|
ɵɵi18nPostprocess,
|
||||||
i18nConfigureLocalize as ɵi18nConfigureLocalize,
|
i18nConfigureLocalize as ɵi18nConfigureLocalize,
|
||||||
ɵɵi18nLocalize,
|
|
||||||
setLocaleId as ɵsetLocaleId,
|
setLocaleId as ɵsetLocaleId,
|
||||||
setClassMetadata as ɵsetClassMetadata,
|
setClassMetadata as ɵsetClassMetadata,
|
||||||
ɵɵresolveWindow,
|
ɵɵresolveWindow,
|
||||||
|
|
|
@ -153,7 +153,6 @@ export const angularCoreEnv: {[name: string]: Function} =
|
||||||
'ɵɵi18nEnd': r3.ɵɵi18nEnd,
|
'ɵɵi18nEnd': r3.ɵɵi18nEnd,
|
||||||
'ɵɵi18nApply': r3.ɵɵi18nApply,
|
'ɵɵi18nApply': r3.ɵɵi18nApply,
|
||||||
'ɵɵi18nPostprocess': r3.ɵɵi18nPostprocess,
|
'ɵɵi18nPostprocess': r3.ɵɵi18nPostprocess,
|
||||||
'ɵɵi18nLocalize': r3.ɵɵi18nLocalize,
|
|
||||||
'ɵɵresolveWindow': r3.ɵɵresolveWindow,
|
'ɵɵresolveWindow': r3.ɵɵresolveWindow,
|
||||||
'ɵɵresolveDocument': r3.ɵɵresolveDocument,
|
'ɵɵresolveDocument': r3.ɵɵresolveDocument,
|
||||||
'ɵɵresolveBody': r3.ɵɵresolveBody,
|
'ɵɵresolveBody': r3.ɵɵresolveBody,
|
||||||
|
|
|
@ -888,11 +888,6 @@ export declare function ɵɵi18nEnd(): void;
|
||||||
|
|
||||||
export declare function ɵɵi18nExp<T>(value: T): TsickleIssue1009;
|
export declare function ɵɵi18nExp<T>(value: T): TsickleIssue1009;
|
||||||
|
|
||||||
/** @deprecated */
|
|
||||||
export declare function ɵɵi18nLocalize(input: string, placeholders?: {
|
|
||||||
[key: string]: string;
|
|
||||||
}): string;
|
|
||||||
|
|
||||||
export declare function ɵɵi18nPostprocess(message: string, replacements?: {
|
export declare function ɵɵi18nPostprocess(message: string, replacements?: {
|
||||||
[key: string]: (string | string[]);
|
[key: string]: (string | string[]);
|
||||||
}): string;
|
}): string;
|
||||||
|
|
Loading…
Reference in New Issue