
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@types/gettext-parser
Advanced tools
TypeScript definitions for gettext-parser
npm install --save @types/gettext-parser
This package contains type definitions for gettext-parser (https://github.com/smhg/gettext-parser).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gettext-parser.
/// <reference types="node" />
import { Transform, TransformOptions } from "readable-stream";
export interface GetTextComment {
translator?: string;
reference?: string;
extracted?: string;
flag?: string;
previous?: string;
}
export interface GetTextTranslation {
msgctxt?: string;
msgid: string;
msgid_plural?: string;
msgstr: string[];
comments?: GetTextComment;
obsolete?: boolean;
}
export interface GetTextTranslationRecord {
[msgctxt: string]: {
[msgId: string]: GetTextTranslation;
};
}
export interface GetTextTranslations {
charset: string;
headers: { [headerName: string]: string };
translations: GetTextTranslationRecord;
obsolete?: GetTextTranslationRecord;
}
export interface GetTextPoParserOptions {
defaultCharset?: string;
validation?: boolean;
}
export interface GetTextPoCompilerOptions {
foldLength?: number;
escapeCharacters?: boolean;
sort?: boolean | ((a: GetTextTranslation, b: GetTextTranslation) => number);
eol?: string;
}
export interface PoParser {
parse: (buffer: Buffer | string, options?: GetTextPoParserOptions) => GetTextTranslations;
compile: (table: GetTextTranslations, options?: GetTextPoCompilerOptions) => Buffer;
createParseStream: (options?: GetTextPoParserOptions, transformOptions?: TransformOptions) => Transform;
}
export interface MoParser {
parse: (buffer: Buffer | string, defaultCharset?: string) => GetTextTranslations;
compile: (table: GetTextTranslations) => Buffer;
}
export const po: PoParser;
export const mo: MoParser;
These definitions were written by Lorent Lempereur.
FAQs
TypeScript definitions for gettext-parser
We found that @types/gettext-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.