Options
All
  • Public
  • Public/Protected
  • All
Menu

External module chrome/locales

Internationalization methods https://developer.chrome.com/extensions/i18n

Index

Functions

Functions

getLocale

  • getLocale(): string
  • Get the current locale

    Returns string

    current locale e.g. en_US

localize

  • localize(key: string, def?: undefined | string): string
  • Get the i18n string

    Parameters

    • key: string

      key in messages.json

    • Optional def: undefined | string

      default if no locales

    Returns string

    internationalized string

Generated using TypeDoc