3.0.6 • Published 6 months ago

@types/node-gettext v3.0.6

Weekly downloads
1,319
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/node-gettext

Summary

This package contains type definitions for node-gettext (https://github.com/alexanderwallin/node-gettext).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-gettext.

index.d.ts

// Type definitions for node-gettext 3.0
// Project: https://github.com/alexanderwallin/node-gettext
// Definitions by: Sameer K.C. <https://github.com/sameercaresu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export = GetText;
declare class GetText {
    static getLanguageCode(locale: string): string;
    readonly locale: string;
    readonly domain: string;
    constructor(options?: { debug?: boolean | undefined; sourceLocale?: string | undefined });
    addTranslations(locale: string, domain: string, translations: object): void;
    dgettext(domain: string, msgid: string): string;
    dngettext(domain: string, msgid: string, msgidPlural: string, count: number): string;
    dnpgettext(domain: string, msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
    dpgettext(domain: string, msgctxt: string, msgid: string): string;
    emit(eventName: string, eventData: any): void;
    getComment(domain: string, msgctxt: string, msgid: string): object | boolean;
    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: 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;
    textdomain(domain: string): void;
    warn(message: string): void;
}

Additional Details

  • Last updated: Thu, 16 Dec 2021 22:32:02 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Sameer K.C..

3.0.4

8 months ago

3.0.6

6 months ago

3.0.5

7 months ago

3.0.3

2 years ago

3.0.2

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago