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

Function parseTranslations

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

Source from the content-addressed store, hash-verified

235 }
236
237 function parseTranslations(
238 translations: Record<string, TargetMessage>,
239 ): Record<string, ParsedTranslation> {
240 const parsedTranslations: Record<string, ParsedTranslation> = {};
241 Object.keys(translations).forEach((key) => {
242 parsedTranslations[computeMsgId(key, '')] = parseTranslation(translations[key]);
243 });
244 return parsedTranslations;
245 }
246
247 function doTranslate(
248 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