MCPcopy Create free account
hub / github.com/angular/angular / computeIds

Function computeIds

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

Source from the content-addressed store, hash-verified

127});
128
129function computeIds(
130 translations: Record<MessageId, TargetMessage>,
131): Record<MessageId, TargetMessage> {
132 const processed: Record<MessageId, TargetMessage> = {};
133 Object.keys(translations).forEach(
134 (key) => (processed[computeMsgId(key, '')] = translations[key]),
135 );
136 return processed;
137}

Callers 1

translate_spec.tsFile · 0.85

Calls 3

computeMsgIdFunction · 0.85
keysMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected