mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Update node-gettext v3 typings (#43822)
This commit is contained in:
Vendored
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user