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

Function doTranslate

packages/localize/src/utils/test/translations_spec.ts:247–252  ·  view source on GitHub ↗
(
      translations: Record<string, TargetMessage>,
      message: [TemplateStringsArray, any[]],
    )

Source from the content-addressed store, hash-verified

245 }
246
247 function doTranslate(
248 translations: Record<string, TargetMessage>,
249 message: [TemplateStringsArray, any[]],
250 ): [TemplateStringsArray, readonly any[]] {
251 return translate(parseTranslations(translations), message[0], message[1]);
252 }
253 });
254});

Callers 1

Calls 2

parseTranslationsFunction · 0.85
translateFunction · 0.50

Tested by

no test coverage detected