feat(ivy): i18n compiler support for element attributes (#26280)
PR Close #26280
This commit is contained in:

committed by
Miško Hevery

parent
3f8ac238f1
commit
39f42bad1c
@ -105,6 +105,10 @@ export {
|
||||
PipeDef as ɵPipeDef,
|
||||
PipeDefWithMeta as ɵPipeDefWithMeta,
|
||||
whenRendered as ɵwhenRendered,
|
||||
i18nAttribute as ɵi18nAttribute,
|
||||
i18nExp as ɵi18nExp,
|
||||
i18nStart as ɵi18nStart,
|
||||
i18nEnd as ɵi18nEnd,
|
||||
i18nApply as ɵi18nApply,
|
||||
i18nExpMapping as ɵi18nExpMapping,
|
||||
i18nInterpolation1 as ɵi18nInterpolation1,
|
||||
|
@ -283,6 +283,22 @@ function appendI18nNode(
|
||||
return tNode;
|
||||
}
|
||||
|
||||
export function i18nAttribute(index: number, attrs: any[]): void {
|
||||
// placeholder for i18nAttribute function
|
||||
}
|
||||
|
||||
export function i18nExp(expression: any): void {
|
||||
// placeholder for i18nExp function
|
||||
}
|
||||
|
||||
export function i18nStart(index: number, message: string, subTemplateIndex: number = 0): void {
|
||||
// placeholder for i18nExp function
|
||||
}
|
||||
|
||||
export function i18nEnd(): void {
|
||||
// placeholder for i18nEnd function
|
||||
}
|
||||
|
||||
/**
|
||||
* Takes a list of instructions generated by `i18nMapping()` to transform the template accordingly.
|
||||
*
|
||||
|
@ -86,6 +86,10 @@ export {
|
||||
} from './instructions';
|
||||
|
||||
export {
|
||||
i18nAttribute,
|
||||
i18nExp,
|
||||
i18nStart,
|
||||
i18nEnd,
|
||||
i18nApply,
|
||||
i18nMapping,
|
||||
i18nInterpolation1,
|
||||
|
@ -98,6 +98,11 @@ export const angularCoreEnv: {[name: string]: Function} = {
|
||||
'ɵtextBinding': r3.textBinding,
|
||||
'ɵembeddedViewStart': r3.embeddedViewStart,
|
||||
'ɵembeddedViewEnd': r3.embeddedViewEnd,
|
||||
'ɵi18nAttribute': r3.i18nAttribute,
|
||||
'ɵi18nExp': r3.i18nExp,
|
||||
'ɵi18nStart': r3.i18nStart,
|
||||
'ɵi18nEnd': r3.i18nEnd,
|
||||
'ɵi18nApply': r3.i18nApply,
|
||||
|
||||
'ɵsanitizeHtml': sanitization.sanitizeHtml,
|
||||
'ɵsanitizeStyle': sanitization.sanitizeStyle,
|
||||
|
Reference in New Issue
Block a user