Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILocalizer

Plugin for localizing messages sent to the user by a bot.

Hierarchy

  • ILocalizer

Index

Methods

Methods

gettext

  • gettext(language: string, msgid: string): string
  • Loads a localized string for the specified language.

    Parameters

    • language: string

      Desired language of the string to return.

    • msgid: string

      String to use as a key in the localized string table. Typically this will just be the english version of the string.

    Returns string

ngettext

  • ngettext(language: string, msgid: string, msgid_plural: string, count: number): string
  • Loads the plural form of a localized string for the specified language.

    Parameters

    • language: string

      Desired language of the string to return.

    • msgid: string

      Singular form of the string to use as a key in the localized string table.

    • msgid_plural: string

      Plural form of the string to use as a key in the localized string table.

    • count: number

      Count to use when determining whether the singular or plural form of the string should be used.

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method