How to use the @ringcentral-integration/i18n.setLocale function in @ringcentral-integration/i18n

To help you get started, we’ve selected a few @ringcentral-integration/i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ringcentral / ringcentral-js-widgets / packages / ringcentral-integration / modules / Locale / Locale.ts View on Github external
async _setLocale(locale) {
    await I18n.setLocale(locale);
    formatMessage.setup({
      locale:
        this.currentLocale === PSEUDO_LOCALE
          ? DEFAULT_LOCALE
          : this.currentLocale,
    });
  }

@ringcentral-integration/i18n

A simple I18n implementation used in RingCentral Integration projects.

MIT
Latest version published 4 months ago

Package Health Score

70 / 100
Full package analysis

Similar packages