source: trip-planner-front/node_modules/@angular/compiler/src/i18n/translation_bundle.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { MissingTranslationStrategy } from '../core';
9import * as html from '../ml_parser/ast';
10import { Console } from '../util';
11import * as i18n from './i18n_ast';
12import { PlaceholderMapper, Serializer } from './serializers/serializer';
13/**
14 * A container for translated messages
15 */
16export declare class TranslationBundle {
17 private _i18nNodesByMsgId;
18 digest: (m: i18n.Message) => string;
19 mapperFactory?: ((m: i18n.Message) => PlaceholderMapper) | undefined;
20 private _i18nToHtml;
21 constructor(_i18nNodesByMsgId: {
22 [msgId: string]: i18n.Node[];
23 }, locale: string | null, digest: (m: i18n.Message) => string, mapperFactory?: ((m: i18n.Message) => PlaceholderMapper) | undefined, missingTranslationStrategy?: MissingTranslationStrategy, console?: Console);
24 static load(content: string, url: string, serializer: Serializer, missingTranslationStrategy: MissingTranslationStrategy, console?: Console): TranslationBundle;
25 get(srcMsg: i18n.Message): html.Node[];
26 has(srcMsg: i18n.Message): boolean;
27}
Note: See TracBrowser for help on using the repository browser.