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

Function computeDigest

packages/compiler/src/i18n/digest.ts:28–30  ·  view source on GitHub ↗
(message: i18n.Message)

Source from the content-addressed store, hash-verified

26 * Compute the message id using the XLIFF1 digest.
27 */
28export function computeDigest(message: i18n.Message): string {
29 return sha1(serializeNodes(message.nodes).join('') + `[${message.meaning}]`);
30}
31
32/**
33 * Return the message id or compute it using the XLIFF2/XMB/$localize digest.

Callers 2

_setLegacyIdsMethod · 0.90
digestFunction · 0.85

Calls 3

sha1Function · 0.70
serializeNodesFunction · 0.70
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…