MCPcopy
hub / github.com/angular/angular / _getI18nAttr

Function _getI18nAttr

packages/compiler/src/i18n/extractor_merger.ts:674–680  ·  view source on GitHub ↗
(p: html.Element | html.Component)

Source from the content-addressed store, hash-verified

672}
673
674function _getI18nAttr(p: html.Element | html.Component): html.Attribute | null {
675 return (
676 (p.attrs.find((attr) => attr instanceof html.Attribute && attr.name === _I18N_ATTR) as
677 | html.Attribute
678 | undefined) || null
679 );
680}
681
682function _parseMessageMeta(i18n?: string): {meaning: string; description: string; id: string} {
683 if (!i18n) return {meaning: '', description: '', id: ''};

Callers 1

_visitElementLikeMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…