UNPKG

intlayer

Version:

Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.

1 lines 1.85 kB
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { Dictionary, DeclarationContent };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n insert,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,oCAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBA8BO;AACP,kBAAqB;AAlCrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}