MCPcopy Index your code
hub / github.com/angular/angular / isI18nAttribute

Function isI18nAttribute

packages/compiler/src/render3/view/i18n/util.ts:20–22  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

18export const I18N_ICU_VAR_PREFIX = 'VAR_';
19
20export function isI18nAttribute(name: string): boolean {
21 return name === I18N_ATTR || name.startsWith(I18N_ATTR_PREFIX);
22}
23
24export function hasI18nAttrs(node: html.Element | html.Component): boolean {
25 return node.attrs.some((attr: html.Attribute) => isI18nAttribute(attr.name));

Callers 2

hasI18nAttrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…