MCPcopy
hub / github.com/angular/angular / computeIds

Function computeIds

packages/localize/test/translate_spec.ts:108–116  ·  view source on GitHub ↗
(
  translations: Record<MessageId, TargetMessage>,
)

Source from the content-addressed store, hash-verified

106});
107
108function computeIds(
109 translations: Record<MessageId, TargetMessage>,
110): Record<MessageId, TargetMessage> {
111 const processed: Record<MessageId, TargetMessage> = {};
112 Object.keys(translations).forEach(
113 (key) => (processed[computeMsgId(key, '')] = translations[key]),
114 );
115 return processed;
116}

Callers 1

translate_spec.tsFile · 0.85

Calls 3

computeMsgIdFunction · 0.85
keysMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…