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 | */
|
---|
8 | import * as html from '../ml_parser/ast';
|
---|
9 | import { InterpolationConfig } from '../ml_parser/interpolation_config';
|
---|
10 | import { ParseTreeResult } from '../ml_parser/parser';
|
---|
11 | import * as i18n from './i18n_ast';
|
---|
12 | import { I18nError } from './parse_util';
|
---|
13 | import { TranslationBundle } from './translation_bundle';
|
---|
14 | /**
|
---|
15 | * Extract translatable messages from an html AST
|
---|
16 | */
|
---|
17 | export declare function extractMessages(nodes: html.Node[], interpolationConfig: InterpolationConfig, implicitTags: string[], implicitAttrs: {
|
---|
18 | [k: string]: string[];
|
---|
19 | }): ExtractionResult;
|
---|
20 | export declare function mergeTranslations(nodes: html.Node[], translations: TranslationBundle, interpolationConfig: InterpolationConfig, implicitTags: string[], implicitAttrs: {
|
---|
21 | [k: string]: string[];
|
---|
22 | }): ParseTreeResult;
|
---|
23 | export 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.