@angular/localize
Version:
Angular - library for localizing messages
21 lines (20 loc) • 582 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export interface MessageRenderer<T> {
message: T;
startRender(): void;
endRender(): void;
text(text: string): void;
placeholder(name: string, body: string | undefined): void;
startPlaceholder(name: string): void;
closePlaceholder(name: string): void;
startContainer(): void;
closeContainer(): void;
startIcu(): void;
endIcu(): void;
}