source: trip-planner-front/node_modules/@angular/compiler/src/i18n/extractor_merger.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.1 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 * as html from '../ml_parser/ast';
9import { InterpolationConfig } from '../ml_parser/interpolation_config';
10import { ParseTreeResult } from '../ml_parser/parser';
11import * as i18n from './i18n_ast';
12import { I18nError } from './parse_util';
13import { TranslationBundle } from './translation_bundle';
14/**
15 * Extract translatable messages from an html AST
16 */
17export declare function extractMessages(nodes: html.Node[], interpolationConfig: InterpolationConfig, implicitTags: string[], implicitAttrs: {
18 [k: string]: string[];
19}): ExtractionResult;
20export declare function mergeTranslations(nodes: html.Node[], translations: TranslationBundle, interpolationConfig: InterpolationConfig, implicitTags: string[], implicitAttrs: {
21 [k: string]: string[];
22}): ParseTreeResult;
23export declare class ExtractionResult {
24 messages: i18n.Message[];
25 errors: I18nError[];
26 constructor(messages: i18n.Message[], errors: I18nError[]);
27}
Note: See TracBrowser for help on using the repository browser.