mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update node-gettext v3 typings (#43822)
This commit is contained in:
parent
65c629ec55
commit
1e5dd1d7e3
8
types/node-gettext/index.d.ts
vendored
8
types/node-gettext/index.d.ts
vendored
@ -5,6 +5,9 @@
|
||||
// TypeScript Version: 2.2
|
||||
export = GetText;
|
||||
declare class GetText {
|
||||
static getLanguageCode(locale: string): string;
|
||||
readonly locale: string;
|
||||
readonly domain: string;
|
||||
constructor(options?: { debug?: boolean; sourceLocale?: string });
|
||||
addTranslations(locale: string, domain: string, translations: object): void;
|
||||
dgettext(domain: string, msgid: string): string;
|
||||
@ -16,12 +19,11 @@ declare class GetText {
|
||||
gettext(msgid: string): string;
|
||||
ngettext(msgid: string, msgidPlural: string, count: number): string;
|
||||
npgettext(msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
|
||||
off(eventName: 'error', callback: (error: any) => void): void;
|
||||
on(eventName: 'error', callback: (error: any) => void): void;
|
||||
off(eventName: 'error', callback: (error: Error) => void): void;
|
||||
on(eventName: 'error', callback: (error: Error) => void): void;
|
||||
pgettext(msgctxt: string, msgid: string): string;
|
||||
setLocale(locale: string): void;
|
||||
setTextDomain(domain: string): void;
|
||||
static getLanguageCode(locale: string): string;
|
||||
textdomain(domain: string): void;
|
||||
warn(message: string): void;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user