intlayer
Version:
Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.
46 lines (43 loc) • 3.05 kB
JavaScript
import { content, editor, internationalization, log, routing } from "@intlayer/config/built";
import { file } from "@intlayer/core/file";
import { Intl, compact, currency, date, number, percentage, relativeTime, units } from "@intlayer/core/formatters";
import { getDictionary, getEnumeration, getEnumeration as getEnumerationContent, getIntlayer, getNesting, getTranslation, getTranslation as getTranslationContent } from "@intlayer/core/interpreter";
import { comparePaths, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getHTMLTextDir, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewriteRules, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, normalizePath, validatePrefix } from "@intlayer/core/localization";
import { getMarkdownMetadata } from "@intlayer/core/markdown";
import { cond, enu, gender, html, insert, md, nest, plural, select, t } from "@intlayer/core/transpiler";
import { LocaleStorageClient, LocaleStorageServer, getCookie, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer } from "@intlayer/core/utils";
//#region src/index.ts
/**
* The locales defined in the configuration.
*/
const locales = internationalization.locales;
/**
* The required locales defined in the configuration.
*/
const requiredLocales = internationalization.requiredLocales;
/**
* The default locale defined in the configuration.
*/
const defaultLocale = internationalization.defaultLocale;
/**
* @deprecated Use `defaultLocale`, `locales`, `requiredLocales` or `editor` instead.
*
* Configuration of Intlayer.
*
*/
const configuration = {
editor,
internationalization,
log,
content,
routing
};
/**
* Returns the configuration of Intlayer.
*/
const getConfiguration = () => configuration;
//#endregion
export { Intl, LocaleStorageClient, LocaleStorageServer, compact, comparePaths, cond, configuration, currency, date, defaultLocale, editor, enu, file, gender, generateSitemap, generateSitemapUrl, getBrowserLocale, getCanonicalPath, getConfiguration, getCookie, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMultilingualUrls, getNesting, getPathWithoutLocale, getPrefix, getRewriteRules, getTranslation, getTranslationContent, html, insert, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, locales, md, nest, normalizePath, number, percentage, plural, relativeTime, requiredLocales, select, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, t, units, validatePrefix };
export { ALL_LOCALES } from "@intlayer/types/allLocales";
export * as Locales from "@intlayer/types/locales";
//# sourceMappingURL=index.mjs.map