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