MCPcopy Index your code
hub / github.com/angular/angular / makeTemplateObject

Function makeTemplateObject

packages/localize/src/utils/src/translations.ts:138–141  ·  view source on GitHub ↗
(cooked: string[], raw: string[])

Source from the content-addressed store, hash-verified

136 * @param raw The message parts with their escaped codes as-is.
137 */
138export function makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray {
139 Object.defineProperty(cooked, 'raw', {value: raw});
140 return cooked as any;
141}
142
143function describeMessage(message: ParsedMessage): string {
144 const meaningString = message.meaning && ` - "${message.meaning}"`;

Callers 4

parseTranslationFunction · 0.70
makeParsedTranslationFunction · 0.70
messages_spec.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…