ngx-translate-po-http-loader/dist/po.d.ts
Vasiliy Tolstov fa3f5f14ab initial import
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-04-25 18:42:42 +03:00

37 lines
902 B
TypeScript

declare interface IHeaders {
'Project-Id-Version': string;
'Report-Msgid-Bugs-To': string;
'POT-Creation-Date': string;
'PO-Revision-Date': string;
'Last-Translator': string;
'Language': string;
'Language-Team': string;
'Content-Type': string;
'Content-Transfer-Encoding': string;
'Plural-Forms': string;
[name: string]: string;
}
export declare class Item {
msgid: string;
msgctxt?: string;
references: string[];
msgid_plural?: string;
msgstr: string[];
comments: string[];
extractedComments: string[];
flags: Record<string, boolean | undefined>;
obsolete: boolean;
}
export declare class PO {
comments: string[];
extractedComments: string[];
items: Item[];
headers: Partial<IHeaders>;
headerOrder: any[];
}
export declare class POLoader {
constructor();
parse(data: string): PO;
}
export {};