1 | import { ThroughStream } from 'event-stream';
|
2 | import { KeyInfo, Map } from './lib';
|
3 | export declare function rewriteLocalizeCalls(): ThroughStream;
|
4 | export declare function createMetaDataFiles(): ThroughStream;
|
5 | export declare function bundleMetaDataFiles(id: string, outDir: string): ThroughStream;
|
6 | export interface Language {
|
7 | id: string;
|
8 | folderName?: string;
|
9 | }
|
10 | export declare function createAdditionalLanguageFiles(languages: Language[], i18nBaseDir: string, baseDir?: string, logProblems?: boolean): ThroughStream;
|
11 | export declare function bundleLanguageFiles(): ThroughStream;
|
12 | export declare function debug(prefix?: string): ThroughStream;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function createKeyValuePairFile(commentSeparator?: string | undefined): ThroughStream;
|
20 | interface PackageJsonMessageFormat {
|
21 | message: string;
|
22 | comment: string[];
|
23 | }
|
24 | declare type MessageInfo = string | PackageJsonMessageFormat;
|
25 | declare namespace MessageInfo {
|
26 | function message(value: MessageInfo): string;
|
27 | function comment(value: MessageInfo): string[] | undefined;
|
28 | }
|
29 | export declare class Line {
|
30 | private buffer;
|
31 | constructor(indent?: number);
|
32 | append(value: string): Line;
|
33 | toString(): string;
|
34 | }
|
35 | export interface Resource {
|
36 | name: string;
|
37 | project: string;
|
38 | }
|
39 | export interface ParsedXLF {
|
40 | messages: Map<string>;
|
41 | originalFilePath: string;
|
42 | language: string;
|
43 | }
|
44 | export declare class XLF {
|
45 | project: string;
|
46 | private buffer;
|
47 | private files;
|
48 | constructor(project: string);
|
49 | toString(): string;
|
50 | addFile(original: string, keys: KeyInfo[], messages: MessageInfo[]): void;
|
51 | private addStringItem;
|
52 | private appendHeader;
|
53 | private appendFooter;
|
54 | private appendNewLine;
|
55 | static parse(xlfString: string): Promise<ParsedXLF[]>;
|
56 | }
|
57 | export declare function createXlfFiles(projectName: string, extensionName: string): ThroughStream;
|
58 | export declare function prepareJsonFiles(): ThroughStream;
|
59 | export {};
|