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

Function parseTranslations

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

Source from the content-addressed store, hash-verified

220 }
221
222 function parseTranslations(
223 translations: Record<string, TargetMessage>,
224 ): Record<string, ParsedTranslation> {
225 const parsedTranslations: Record<string, ParsedTranslation> = {};
226 Object.keys(translations).forEach((key) => {
227 parsedTranslations[computeMsgId(key, '')] = parseTranslation(translations[key]);
228 });
229 return parsedTranslations;
230 }
231
232 function doTranslate(
233 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