@angular/localize
Version:
Angular - library for localizing messages
19 lines (18 loc) • 724 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
*/
import { Element, ParseError } from '@angular/compiler';
import { ɵParsedTranslation } from '../../../../../index';
import { MessageSerializerConfig } from '../message_serialization/message_serializer';
/**
* Serialize the given `element` into a parsed translation using the given `serializer`.
*/
export declare function serializeTranslationMessage(element: Element, config: MessageSerializerConfig): {
translation: ɵParsedTranslation | null;
parseErrors: ParseError[];
serializeErrors: ParseError[];
};