MCPcopy
hub / github.com/angular/angular / parseTranslations

Function parseTranslations

packages/localize/src/utils/test/translations_spec.ts:211–219  ·  view source on GitHub ↗
(
      translations: Record<string, TargetMessage>,
    )

Source from the content-addressed store, hash-verified

209 }
210
211 function parseTranslations(
212 translations: Record<string, TargetMessage>,
213 ): Record<string, ParsedTranslation> {
214 const parsedTranslations: Record<string, ParsedTranslation> = {};
215 Object.keys(translations).forEach((key) => {
216 parsedTranslations[computeMsgId(key, '')] = parseTranslation(translations[key]);
217 });
218 return parsedTranslations;
219 }
220
221 function doTranslate(
222 translations: Record<string, TargetMessage>,

Callers 1

doTranslateFunction · 0.85

Calls 4

computeMsgIdFunction · 0.85
parseTranslationFunction · 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…