(message: i18n.Message)
| 40 | * Compute the message id using the XLIFF2/XMB/$localize digest. |
| 41 | */ |
| 42 | export function computeDecimalDigest(message: i18n.Message): string { |
| 43 | const visitor = new _SerializerIgnoreIcuExpVisitor(); |
| 44 | const parts = message.nodes.map((a) => a.visit(visitor, null)); |
| 45 | return computeMsgId(parts.join(''), message.meaning); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Serialize the i18n ast to something xml-like in order to generate an UID. |
no test coverage detected
searching dependent graphs…