MCPcopy Create free account
hub / github.com/angular/angular / _getI18nAttr

Function _getI18nAttr

packages/compiler/src/i18n/extractor_merger.ts:630–635  ·  view source on GitHub ↗
(p: html.Element)

Source from the content-addressed store, hash-verified

628}
629
630function _getI18nAttr(p: html.Element): html.Attribute | null {
631 return (
632 (p.attrs.find((attr) => attr instanceof html.Attribute && attr.name === _I18N_ATTR) as
633 html.Attribute | undefined) || null
634 );
635}
636
637function _parseMessageMeta(i18n?: string): {meaning: string; description: string; id: string} {
638 if (!i18n) return {meaning: '', description: '', id: ''};

Callers 1

_visitElementLikeMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected