refactor(ivy): remove `i18nLocalize` instruction (#31609)

This has been replaced by the `$localize` tag.

PR Close #31609
This commit is contained in:
Pete Bacon Darwin 2019-07-31 10:52:38 +01:00 committed by Misko Hevery
parent fa79f51645
commit c024d89448
6 changed files with 2 additions and 9 deletions

View File

@ -24,7 +24,7 @@ const angularFiles = setup({
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\s*(.*?)\s*=\s*goog\.getMsg\("(.*?)",?\s*(.*?)\)/g;

View File

@ -198,7 +198,6 @@ export class Identifiers {
static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};
static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', 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};

View File

@ -17,6 +17,7 @@ ng_module(
"//packages/core/src/interface",
"//packages/core/src/reflection",
"//packages/core/src/util",
"//packages/localize",
"@npm//rxjs",
"@npm//zone.js",
],

View File

@ -169,7 +169,6 @@ export {
ɵɵi18nApply,
ɵɵi18nPostprocess,
i18nConfigureLocalize as ɵi18nConfigureLocalize,
ɵɵi18nLocalize,
setLocaleId as ɵsetLocaleId,
setClassMetadata as ɵsetClassMetadata,
ɵɵresolveWindow,

View File

@ -153,7 +153,6 @@ export const angularCoreEnv: {[name: string]: Function} =
'ɵɵi18nEnd': r3.ɵɵi18nEnd,
'ɵɵi18nApply': r3.ɵɵi18nApply,
'ɵɵi18nPostprocess': r3.ɵɵi18nPostprocess,
'ɵɵi18nLocalize': r3.ɵɵi18nLocalize,
'ɵɵresolveWindow': r3.ɵɵresolveWindow,
'ɵɵresolveDocument': r3.ɵɵresolveDocument,
'ɵɵresolveBody': r3.ɵɵresolveBody,

View File

@ -888,11 +888,6 @@ export declare function ɵɵi18nEnd(): void;
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?: {
[key: string]: (string | string[]);
}): string;