intlayer
Version:
Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.
22 lines (20 loc) • 2.03 kB
JavaScript
import { Locales, Locales as Locales$1 } from "@intlayer/types";
import configuration from "@intlayer/config/built";
import { Intl, compact, cond, currency, date, enu, gender, getBrowserLocale, getCookie, getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslation as getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, md, nest, number, percentage, relativeTime, setLocaleInStorage, t, units, validatePrefix } from "@intlayer/core";
import { file } from "@intlayer/core/file";
//#region src/index.ts
/** biome-ignore-all lint/suspicious/noEmptyInterface: Intlayer module augmentation registries */
/**
* Rexport using named import because πof Tsup bug in CJS
*/
Locales$1.ALL_LOCALES;
/**
* @deprecated Use `import { configuration } from 'intlayer'` instead.
*/
const getConfiguration = () => configuration;
const locales = configuration.internationalization.locales;
const requiredLocales = configuration.internationalization.requiredLocales;
const defaultLocale = configuration.internationalization.defaultLocale;
//#endregion
export { Intl, Locales, compact, cond, configuration, currency, date, defaultLocale, enu, file, gender, getBrowserLocale, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getTranslation, getTranslationContent, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, number, percentage, relativeTime, requiredLocales, setLocaleInStorage, t, units, validatePrefix };
//# sourceMappingURL=index.mjs.map