UNPKG

@owja/i18n

Version:

lightweight internationalization library for javascript

13 lines (12 loc) 383 B
/** * Workaround for Typescript because Intl.Locale is not included in ES2020 types yet */ import type { Locale as FormatJsLocale, IntlLocaleOptions } from "@formatjs/intl-locale"; declare global { namespace Intl { type Locale = FormatJsLocale; const Locale: { new (tag?: string, options?: IntlLocaleOptions): Locale; }; } }