Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
type Entry = {
|
|
msgctxt?: string;
|
|
msgid: string;
|
|
msgstr: string;
|
|
references?: Array<{
|
|
path: string;
|
|
line?: number;
|
|
}>;
|
|
extractedComments?: Array<string>;
|
|
flags?: Array<string>;
|
|
};
|
|
type Catalog = {
|
|
meta?: Record<string, string>;
|
|
messages?: Array<Entry>;
|
|
};
|
|
declare class POParser {
|
|
private static readonly KEYWORDS;
|
|
private static readonly COMMENTS;
|
|
private static readonly QUOTE;
|
|
private static readonly NEWLINE;
|
|
private static readonly FILE_COLUMN_SEPARATOR;
|
|
private static readonly META_SEPARATOR;
|
|
private static readonly FLAG_SEPARATOR;
|
|
private static readonly ESCAPE_LOOKUP;
|
|
private static readonly UNESCAPE_LOOKUP;
|
|
static parse(content: string): Catalog;
|
|
private static isMetaEntry;
|
|
static serialize(catalog: Catalog): string;
|
|
private static lineStartsWithPrefix;
|
|
private static throwWithLine;
|
|
private static splitLines;
|
|
private static ensureEntry;
|
|
private static finishEntry;
|
|
private static extractQuotedString;
|
|
private static escape;
|
|
private static unescape;
|
|
}
|
|
|
|
export { POParser as default };
|
|
export type { Entry };
|