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

Function doTranslate

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

Source from the content-addressed store, hash-verified

230 }
231
232 function doTranslate(
233 translations: Record<string, TargetMessage>,
234 message: [TemplateStringsArray, any[]],
235 ): [TemplateStringsArray, readonly any[]] {
236 return translate(parseTranslations(translations), message[0], message[1]);
237 }
238 });
239});

Callers 1

Calls 2

parseTranslationsFunction · 0.85
translateFunction · 0.50

Tested by

no test coverage detected