(p: html.Element)
| 628 | } |
| 629 | |
| 630 | function _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 | |
| 637 | function _parseMessageMeta(i18n?: string): {meaning: string; description: string; id: string} { |
| 638 | if (!i18n) return {meaning: '', description: '', id: ''}; |