@intlayer/core 8.4.0-canary.0 → 8.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{_virtual/_rolldown/runtime.cjs → chunk-Bmb41Sf3.cjs} +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs.map +1 -1
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +1 -1
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +1 -1
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs.map +1 -1
- package/dist/cjs/formatters/compact.cjs +1 -1
- package/dist/cjs/formatters/compact.cjs.map +1 -1
- package/dist/cjs/formatters/currency.cjs +1 -1
- package/dist/cjs/formatters/currency.cjs.map +1 -1
- package/dist/cjs/formatters/date.cjs +1 -1
- package/dist/cjs/formatters/date.cjs.map +1 -1
- package/dist/cjs/formatters/list.cjs +1 -1
- package/dist/cjs/formatters/list.cjs.map +1 -1
- package/dist/cjs/formatters/number.cjs +1 -1
- package/dist/cjs/formatters/number.cjs.map +1 -1
- package/dist/cjs/formatters/percentage.cjs +1 -1
- package/dist/cjs/formatters/percentage.cjs.map +1 -1
- package/dist/cjs/formatters/relativeTime.cjs +1 -1
- package/dist/cjs/formatters/relativeTime.cjs.map +1 -1
- package/dist/cjs/formatters/units.cjs +1 -1
- package/dist/cjs/formatters/units.cjs.map +1 -1
- package/dist/cjs/getContent-DrqM8pqO.cjs +2 -0
- package/dist/cjs/getContent-DrqM8pqO.cjs.map +1 -0
- package/dist/cjs/getStorageAttributes.cjs +1 -1
- package/dist/cjs/getStorageAttributes.cjs.map +1 -1
- package/dist/cjs/html-CZ1N-VL0.cjs +2 -0
- package/dist/cjs/html-CZ1N-VL0.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +1 -1
- package/dist/cjs/interpreter/getContent/deepTransform.cjs.map +1 -1
- package/dist/cjs/interpreter/getContent/getContent.cjs +1 -2
- package/dist/cjs/interpreter/getContent/index.cjs +1 -1
- package/dist/cjs/interpreter/getContent/plugins.cjs +1 -2
- package/dist/cjs/interpreter/getDictionary.cjs +1 -2
- package/dist/cjs/interpreter/getIntlayer.cjs +1 -2
- package/dist/cjs/interpreter/getNesting.cjs +1 -2
- package/dist/cjs/interpreter/index.cjs +1 -1
- package/dist/cjs/localization/getBrowserLocale.cjs +1 -1
- package/dist/cjs/localization/getBrowserLocale.cjs.map +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs +1 -1
- package/dist/cjs/localization/getHTMLTextDir.cjs.map +1 -1
- package/dist/cjs/localization/getLocale.cjs +1 -1
- package/dist/cjs/localization/getLocale.cjs.map +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs +1 -1
- package/dist/cjs/localization/getLocaleFromPath.cjs.map +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs +1 -1
- package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs +1 -1
- package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs +1 -1
- package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
- package/dist/cjs/localization/getPrefix.cjs +1 -1
- package/dist/cjs/localization/getPrefix.cjs.map +1 -1
- package/dist/cjs/localization/localeMapper.cjs +1 -1
- package/dist/cjs/localization/localeMapper.cjs.map +1 -1
- package/dist/cjs/localization/localeResolver.cjs +1 -1
- package/dist/cjs/localization/localeResolver.cjs.map +1 -1
- package/dist/cjs/localization/validatePrefix.cjs +1 -1
- package/dist/cjs/localization/validatePrefix.cjs.map +1 -1
- package/dist/cjs/messageFormat/ICU.cjs +1 -1
- package/dist/cjs/messageFormat/ICU.cjs.map +1 -1
- package/dist/cjs/messageFormat/i18next.cjs +1 -1
- package/dist/cjs/messageFormat/i18next.cjs.map +1 -1
- package/dist/cjs/messageFormat/vue-i18n.cjs +1 -1
- package/dist/cjs/messageFormat/vue-i18n.cjs.map +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs +1 -1
- package/dist/cjs/transpiler/condition/condition.cjs.map +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs.map +1 -1
- package/dist/cjs/transpiler/file/file.cjs +1 -1
- package/dist/cjs/transpiler/file/file.cjs.map +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs.map +1 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -2
- package/dist/cjs/transpiler/html/html.cjs +1 -2
- package/dist/cjs/transpiler/html/index.cjs +1 -1
- package/dist/cjs/transpiler/index.cjs +1 -1
- package/dist/cjs/transpiler/insertion/insertion.cjs +1 -1
- package/dist/cjs/transpiler/insertion/insertion.cjs.map +1 -1
- package/dist/cjs/transpiler/markdown/markdown.cjs +1 -1
- package/dist/cjs/transpiler/markdown/markdown.cjs.map +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs.map +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs.map +1 -1
- package/dist/cjs/utils/intl.cjs +1 -1
- package/dist/cjs/utils/intl.cjs.map +1 -1
- package/dist/cjs/utils/localeStorage.cjs +1 -1
- package/dist/cjs/utils/localeStorage.cjs.map +1 -1
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +1 -1
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -1
- package/dist/esm/formatters/list.mjs.map +1 -1
- package/dist/esm/getContent-DKqtIZGL.mjs +2 -0
- package/dist/esm/getContent-DKqtIZGL.mjs.map +1 -0
- package/dist/esm/html-3bo80xzx.mjs +2 -0
- package/dist/esm/html-3bo80xzx.mjs.map +1 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/interpreter/getContent/getContent.mjs +1 -2
- package/dist/esm/interpreter/getContent/index.mjs +1 -1
- package/dist/esm/interpreter/getContent/plugins.mjs +1 -2
- package/dist/esm/interpreter/getDictionary.mjs +1 -2
- package/dist/esm/interpreter/getIntlayer.mjs +1 -2
- package/dist/esm/interpreter/getNesting.mjs +1 -2
- package/dist/esm/interpreter/index.mjs +1 -1
- package/dist/esm/localization/getBrowserLocale.mjs +1 -1
- package/dist/esm/localization/getBrowserLocale.mjs.map +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs +1 -1
- package/dist/esm/localization/getHTMLTextDir.mjs.map +1 -1
- package/dist/esm/localization/localeMapper.mjs.map +1 -1
- package/dist/esm/messageFormat/ICU.mjs +1 -1
- package/dist/esm/messageFormat/ICU.mjs.map +1 -1
- package/dist/esm/messageFormat/i18next.mjs +1 -1
- package/dist/esm/messageFormat/i18next.mjs.map +1 -1
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -2
- package/dist/esm/transpiler/html/html.mjs +1 -2
- package/dist/esm/transpiler/html/index.mjs +1 -1
- package/dist/esm/transpiler/index.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs.map +1 -1
- package/dist/esm/utils/intl.mjs +1 -1
- package/dist/esm/utils/intl.mjs.map +1 -1
- package/dist/types/ICU-tA3ZHN5U.d.ts +11 -0
- package/dist/types/ICU-tA3ZHN5U.d.ts.map +1 -0
- package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts +5 -0
- package/dist/types/checkIsURLAbsolute-CTf3JFU6.d.ts.map +1 -0
- package/dist/types/compact-IHXcM4pT.d.ts +20 -0
- package/dist/types/compact-IHXcM4pT.d.ts.map +1 -0
- package/dist/types/compiler-DFiAsUdH.d.ts +9 -0
- package/dist/types/compiler-DFiAsUdH.d.ts.map +1 -0
- package/dist/types/condition-BDUtoh_1.d.ts +28 -0
- package/dist/types/condition-BDUtoh_1.d.ts.map +1 -0
- package/dist/types/constants-CI_D82B1.d.ts +177 -0
- package/dist/types/constants-CI_D82B1.d.ts.map +1 -0
- package/dist/types/currency-PbMCnHep.d.ts +20 -0
- package/dist/types/currency-PbMCnHep.d.ts.map +1 -0
- package/dist/types/date-C-PI8KqU.d.ts +20 -0
- package/dist/types/date-C-PI8KqU.d.ts.map +1 -0
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +2 -50
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +2 -42
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +2 -34
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +2 -18
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +2 -10
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +2 -19
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +2 -32
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +2 -8
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +2 -43
- package/dist/types/deepTransformPlugins/index.d.ts +10 -10
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +2 -25
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +2 -9
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +2 -9
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +2 -7
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +2 -7
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +2 -8
- package/dist/types/dictionaryManipulator/index.d.ts +12 -12
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +2 -7
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +2 -9
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +2 -15
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +2 -8
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +2 -7
- package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts +8 -0
- package/dist/types/editDictionaryByKeyPath-BYIHcsyf.d.ts.map +1 -0
- package/dist/types/enumeration-CtuvB5Zz.d.ts +40 -0
- package/dist/types/enumeration-CtuvB5Zz.d.ts.map +1 -0
- package/dist/types/file-C3q8xvQb.d.ts +28 -0
- package/dist/types/file-C3q8xvQb.d.ts.map +1 -0
- package/dist/types/formatters/compact.d.ts +2 -20
- package/dist/types/formatters/currency.d.ts +2 -20
- package/dist/types/formatters/date.d.ts +2 -20
- package/dist/types/formatters/index.d.ts +10 -10
- package/dist/types/formatters/list.d.ts +2 -24
- package/dist/types/formatters/number.d.ts +2 -16
- package/dist/types/formatters/percentage.d.ts +2 -16
- package/dist/types/formatters/relativeTime.d.ts +2 -11
- package/dist/types/formatters/units.d.ts +2 -16
- package/dist/types/gender-Dd39Ijmf.d.ts +29 -0
- package/dist/types/gender-Dd39Ijmf.d.ts.map +1 -0
- package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts +35 -0
- package/dist/types/getBrowserLocale-RD_Mwv1t.d.ts.map +1 -0
- package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts +9 -0
- package/dist/types/getContentNodeByKeyPath-B0Tdi5mj.d.ts.map +1 -0
- package/dist/types/getCookie-DPOvVv_h.d.ts +11 -0
- package/dist/types/getCookie-DPOvVv_h.d.ts.map +1 -0
- package/dist/types/getDefaultNode-DQNsje2D.d.ts +9 -0
- package/dist/types/getDefaultNode-DQNsje2D.d.ts.map +1 -0
- package/dist/types/getEmptyNode-DW27TTBj.d.ts +7 -0
- package/dist/types/getEmptyNode-DW27TTBj.d.ts.map +1 -0
- package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts +50 -0
- package/dist/types/getFilterMissingTranslationsContent-CDNQqoy1.d.ts.map +1 -0
- package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts +42 -0
- package/dist/types/getFilterTranslationsOnlyContent-D2YgBkHn.d.ts.map +1 -0
- package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts +34 -0
- package/dist/types/getFilteredLocalesContent-D0GP-uEg.d.ts.map +1 -0
- package/dist/types/getHTML-CP6OXtdo.d.ts +32 -0
- package/dist/types/getHTML-CP6OXtdo.d.ts.map +1 -0
- package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts +21 -0
- package/dist/types/getHTMLTextDir-4Zh8J3x7.d.ts.map +1 -0
- package/dist/types/getInsertionValues-Cu9IdbuE.d.ts +5 -0
- package/dist/types/getInsertionValues-Cu9IdbuE.d.ts.map +1 -0
- package/dist/types/getLocale-B9dECUM_.d.ts +11 -0
- package/dist/types/getLocale-B9dECUM_.d.ts.map +1 -0
- package/dist/types/getLocaleFromPath-621W32QA.d.ts +26 -0
- package/dist/types/getLocaleFromPath-621W32QA.d.ts.map +1 -0
- package/dist/types/getLocaleLang-Bcan1gS4.d.ts +20 -0
- package/dist/types/getLocaleLang-Bcan1gS4.d.ts.map +1 -0
- package/dist/types/getLocaleName-CfRAD9Hc.d.ts +7 -0
- package/dist/types/getLocaleName-CfRAD9Hc.d.ts.map +1 -0
- package/dist/types/getLocalizedContent-DOncZd-0.d.ts +18 -0
- package/dist/types/getLocalizedContent-DOncZd-0.d.ts.map +1 -0
- package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts +49 -0
- package/dist/types/getLocalizedUrl-BbqeA3-W.d.ts.map +1 -0
- package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts +5 -0
- package/dist/types/getMarkdownMetadata-Bf1S1NQ0.d.ts.map +1 -0
- package/dist/types/getMaskContent-BwLFqp7v.d.ts +10 -0
- package/dist/types/getMaskContent-BwLFqp7v.d.ts.map +1 -0
- package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts +19 -0
- package/dist/types/getMissingLocalesContent-BYffYcdx.d.ts.map +1 -0
- package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts +32 -0
- package/dist/types/getMultilingualDictionary-DO3i1MFs.d.ts.map +1 -0
- package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts +47 -0
- package/dist/types/getMultilingualUrls-CUxYYfA4.d.ts.map +1 -0
- package/dist/types/getNodeChildren-OT7Liqke.d.ts +7 -0
- package/dist/types/getNodeChildren-OT7Liqke.d.ts.map +1 -0
- package/dist/types/getNodeType-Cp765I26.d.ts +8 -0
- package/dist/types/getNodeType-Cp765I26.d.ts.map +1 -0
- package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts +31 -0
- package/dist/types/getPathWithoutLocale-B_aIR7O0.d.ts.map +1 -0
- package/dist/types/getPrefix-X9XKkrZD.d.ts +68 -0
- package/dist/types/getPrefix-X9XKkrZD.d.ts.map +1 -0
- package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts +8 -0
- package/dist/types/getReplacedValuesContent-BvL25pdt.d.ts.map +1 -0
- package/dist/types/getSplittedContent-YD4JDMfB.d.ts +43 -0
- package/dist/types/getSplittedContent-YD4JDMfB.d.ts.map +1 -0
- package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts +29 -0
- package/dist/types/getStorageAttributes-CIO2xWqQ.d.ts.map +1 -0
- package/dist/types/getStorageAttributes.d.ts +2 -29
- package/dist/types/getTranslation-BG2Wg-af.d.ts +30 -0
- package/dist/types/getTranslation-BG2Wg-af.d.ts.map +1 -0
- package/dist/types/html-Dn6KrpJ3.d.ts +25 -0
- package/dist/types/html-Dn6KrpJ3.d.ts.map +1 -0
- package/dist/types/htmlTags-YxTtVUx6.d.ts +115 -0
- package/dist/types/htmlTags-YxTtVUx6.d.ts.map +1 -0
- package/dist/types/i18next-qY0AixrB.d.ts +9 -0
- package/dist/types/i18next-qY0AixrB.d.ts.map +1 -0
- package/dist/types/index-1CTsSKEn.d.ts +1 -0
- package/dist/types/index-B8xF2zGo.d.ts +1 -0
- package/dist/types/index-BcsOTSQF.d.ts +1 -0
- package/dist/types/index-BnEeKNKW.d.ts +322 -0
- package/dist/types/index-BnEeKNKW.d.ts.map +1 -0
- package/dist/types/index-Cf8zm5QQ.d.ts +1 -0
- package/dist/types/index-CfvILin8.d.ts +1 -0
- package/dist/types/index-DK_kKFOF.d.ts +1 -0
- package/dist/types/index-DeJa0xZp.d.ts +1 -0
- package/dist/types/index-Vlqtiwjx.d.ts +1 -0
- package/dist/types/index.d.ts +80 -88
- package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts +25 -0
- package/dist/types/insertContentInDictionary-DZ3UzG4K.d.ts.map +1 -0
- package/dist/types/insertion-M5fwK-29.d.ts +23 -0
- package/dist/types/insertion-M5fwK-29.d.ts.map +1 -0
- package/dist/types/interpreter/getCondition.d.ts +2 -22
- package/dist/types/interpreter/getContent/deepTransform.d.ts +2 -12
- package/dist/types/interpreter/getContent/getContent.d.ts +2 -16
- package/dist/types/interpreter/getContent/index.d.ts +1 -3
- package/dist/types/interpreter/getContent/plugins.d.ts +2 -151
- package/dist/types/interpreter/getDictionary.d.ts +2 -17
- package/dist/types/interpreter/getEnumeration.d.ts +2 -58
- package/dist/types/interpreter/getGender.d.ts +1 -1
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getHTML.d.ts +2 -32
- package/dist/types/interpreter/getInsertion.d.ts +1 -1
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +2 -8
- package/dist/types/interpreter/getNesting.d.ts +2 -27
- package/dist/types/interpreter/getTranslation.d.ts +2 -30
- package/dist/types/interpreter/index.d.ts +4 -11
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +2 -25
- package/dist/types/intl-B2Ap8I5x.d.ts +33 -0
- package/dist/types/intl-B2Ap8I5x.d.ts.map +1 -0
- package/dist/types/isSameKeyPath-CkH8NdJh.d.ts +7 -0
- package/dist/types/isSameKeyPath-CkH8NdJh.d.ts.map +1 -0
- package/dist/types/isValidReactElement-BsoJ01oP.d.ts +12 -0
- package/dist/types/isValidReactElement-BsoJ01oP.d.ts.map +1 -0
- package/dist/types/list-BdjJM2Gx.d.ts +30 -0
- package/dist/types/list-BdjJM2Gx.d.ts.map +1 -0
- package/dist/types/localeDetector-BWNCQRiZ.d.ts +18 -0
- package/dist/types/localeDetector-BWNCQRiZ.d.ts.map +1 -0
- package/dist/types/localeMapper-DoAnasqf.d.ts +92 -0
- package/dist/types/localeMapper-DoAnasqf.d.ts.map +1 -0
- package/dist/types/localeResolver-bb7AWQNX.d.ts +12 -0
- package/dist/types/localeResolver-bb7AWQNX.d.ts.map +1 -0
- package/dist/types/localeStorage-CZHwY0u3.d.ts +108 -0
- package/dist/types/localeStorage-CZHwY0u3.d.ts.map +1 -0
- package/dist/types/localization/getBrowserLocale.d.ts +2 -35
- package/dist/types/localization/getHTMLTextDir.d.ts +2 -21
- package/dist/types/localization/getLocale.d.ts +2 -11
- package/dist/types/localization/getLocaleFromPath.d.ts +2 -26
- package/dist/types/localization/getLocaleLang.d.ts +2 -20
- package/dist/types/localization/getLocaleName.d.ts +2 -7
- package/dist/types/localization/getLocalizedUrl.d.ts +2 -49
- package/dist/types/localization/getMultilingualUrls.d.ts +2 -47
- package/dist/types/localization/getPathWithoutLocale.d.ts +2 -31
- package/dist/types/localization/getPrefix.d.ts +2 -68
- package/dist/types/localization/index.d.ts +16 -16
- package/dist/types/localization/localeDetector.d.ts +2 -18
- package/dist/types/localization/localeMapper.d.ts +2 -92
- package/dist/types/localization/localeResolver.d.ts +2 -12
- package/dist/types/localization/rewriteUtils.d.ts +2 -34
- package/dist/types/localization/validatePrefix.d.ts +2 -38
- package/dist/types/markdown/compiler.d.ts +2 -9
- package/dist/types/markdown/constants.d.ts +2 -177
- package/dist/types/markdown/index.d.ts +10 -10
- package/dist/types/markdown/parser.d.ts +2 -16
- package/dist/types/markdown/renderer.d.ts +2 -22
- package/dist/types/markdown/types.d.ts +2 -333
- package/dist/types/markdown/utils.d.ts +2 -140
- package/dist/types/markdown-MzfikrI1.d.ts +26 -0
- package/dist/types/markdown-MzfikrI1.d.ts.map +1 -0
- package/dist/types/mergeDictionaries-D6WUMQN5.d.ts +7 -0
- package/dist/types/mergeDictionaries-D6WUMQN5.d.ts.map +1 -0
- package/dist/types/messageFormat/ICU.d.ts +2 -11
- package/dist/types/messageFormat/i18next.d.ts +2 -9
- package/dist/types/messageFormat/index.d.ts +3 -3
- package/dist/types/messageFormat/vue-i18n.d.ts +2 -9
- package/dist/types/normalizeDictionary-coviIGTW.d.ts +9 -0
- package/dist/types/normalizeDictionary-coviIGTW.d.ts.map +1 -0
- package/dist/types/number-C8izkCmU.d.ts +16 -0
- package/dist/types/number-C8izkCmU.d.ts.map +1 -0
- package/dist/types/orderDictionaries-SSCMY6qG.d.ts +15 -0
- package/dist/types/orderDictionaries-SSCMY6qG.d.ts.map +1 -0
- package/dist/types/parseYaml-D5gxutvA.d.ts +5 -0
- package/dist/types/parseYaml-D5gxutvA.d.ts.map +1 -0
- package/dist/types/parser-BVwR6Tjw.d.ts +16 -0
- package/dist/types/parser-BVwR6Tjw.d.ts.map +1 -0
- package/dist/types/percentage-BqsvW0Zw.d.ts +16 -0
- package/dist/types/percentage-BqsvW0Zw.d.ts.map +1 -0
- package/dist/types/relativeTime-mJaYEq7H.d.ts +11 -0
- package/dist/types/relativeTime-mJaYEq7H.d.ts.map +1 -0
- package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts +8 -0
- package/dist/types/removeContentNodeByKeyPath-CotCOOsD.d.ts.map +1 -0
- package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts +8 -0
- package/dist/types/renameContentNodeByKeyPath-BuyH5gOr.d.ts.map +1 -0
- package/dist/types/renderer-C06x2Orf.d.ts +22 -0
- package/dist/types/renderer-C06x2Orf.d.ts.map +1 -0
- package/dist/types/rewriteUtils-Bd82NiGR.d.ts +34 -0
- package/dist/types/rewriteUtils-Bd82NiGR.d.ts.map +1 -0
- package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts +25 -0
- package/dist/types/splitAndJoinInsertion-bkuLa7o2.d.ts.map +1 -0
- package/dist/types/translation-CiC-Avxc.d.ts +33 -0
- package/dist/types/translation-CiC-Avxc.d.ts.map +1 -0
- package/dist/types/transpiler/condition/condition.d.ts +2 -28
- package/dist/types/transpiler/condition/index.d.ts +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +2 -40
- package/dist/types/transpiler/enumeration/index.d.ts +1 -1
- package/dist/types/transpiler/file/file.d.ts +2 -28
- package/dist/types/transpiler/file/fileBrowser.d.ts +1 -1
- package/dist/types/transpiler/file/index.d.ts +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +2 -29
- package/dist/types/transpiler/gender/index.d.ts +1 -1
- package/dist/types/transpiler/html/html.d.ts +2 -25
- package/dist/types/transpiler/html/htmlTags.d.ts +2 -115
- package/dist/types/transpiler/html/index.d.ts +3 -3
- package/dist/types/transpiler/html/validateHTML.d.ts +2 -21
- package/dist/types/transpiler/index.d.ts +15 -15
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +2 -5
- package/dist/types/transpiler/insertion/index.d.ts +2 -2
- package/dist/types/transpiler/insertion/insertion.d.ts +2 -23
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +2 -5
- package/dist/types/transpiler/markdown/index.d.ts +4 -4
- package/dist/types/transpiler/markdown/markdown.d.ts +2 -26
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +3 -18
- package/dist/types/transpiler/nesting/index.d.ts +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +2 -49
- package/dist/types/transpiler/translation/index.d.ts +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +2 -33
- package/dist/types/types-C2Om0aEM.d.ts +333 -0
- package/dist/types/types-C2Om0aEM.d.ts.map +1 -0
- package/dist/types/units-CouGqa8j.d.ts +16 -0
- package/dist/types/units-CouGqa8j.d.ts.map +1 -0
- package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts +7 -0
- package/dist/types/updateNodeChildren-B5Tu1UBZ.d.ts.map +1 -0
- package/dist/types/utils/checkIsURLAbsolute.d.ts +2 -5
- package/dist/types/utils/getCookie.d.ts +2 -11
- package/dist/types/utils/index.d.ts +8 -8
- package/dist/types/utils/intl.d.ts +2 -33
- package/dist/types/utils/isSameKeyPath.d.ts +2 -7
- package/dist/types/utils/isValidReactElement.d.ts +2 -12
- package/dist/types/utils/localeStorage.d.ts +2 -108
- package/dist/types/utils/parseYaml.d.ts +2 -5
- package/dist/types/utils-Dcmgh_80.d.ts +140 -0
- package/dist/types/utils-Dcmgh_80.d.ts.map +1 -0
- package/dist/types/validateHTML-U7UKTtFd.d.ts +21 -0
- package/dist/types/validateHTML-U7UKTtFd.d.ts.map +1 -0
- package/dist/types/validateMarkdown-BUaTDDIu.d.ts +18 -0
- package/dist/types/validateMarkdown-BUaTDDIu.d.ts.map +1 -0
- package/dist/types/validatePrefix-Dtmg7QLq.d.ts +38 -0
- package/dist/types/validatePrefix-Dtmg7QLq.d.ts.map +1 -0
- package/dist/types/vue-i18n-JtUB7N_m.d.ts +9 -0
- package/dist/types/vue-i18n-JtUB7N_m.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/cjs/interpreter/getContent/getContent.cjs.map +0 -1
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +0 -1
- package/dist/cjs/interpreter/getDictionary.cjs.map +0 -1
- package/dist/cjs/interpreter/getIntlayer.cjs.map +0 -1
- package/dist/cjs/interpreter/getNesting.cjs.map +0 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs.map +0 -1
- package/dist/cjs/transpiler/html/html.cjs.map +0 -1
- package/dist/esm/interpreter/getContent/getContent.mjs.map +0 -1
- package/dist/esm/interpreter/getContent/plugins.mjs.map +0 -1
- package/dist/esm/interpreter/getDictionary.mjs.map +0 -1
- package/dist/esm/interpreter/getIntlayer.mjs.map +0 -1
- package/dist/esm/interpreter/getNesting.mjs.map +0 -1
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs.map +0 -1
- package/dist/esm/transpiler/html/html.mjs.map +0 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +0 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +0 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +0 -1
- package/dist/types/formatters/compact.d.ts.map +0 -1
- package/dist/types/formatters/currency.d.ts.map +0 -1
- package/dist/types/formatters/date.d.ts.map +0 -1
- package/dist/types/formatters/list.d.ts.map +0 -1
- package/dist/types/formatters/number.d.ts.map +0 -1
- package/dist/types/formatters/percentage.d.ts.map +0 -1
- package/dist/types/formatters/relativeTime.d.ts.map +0 -1
- package/dist/types/formatters/units.d.ts.map +0 -1
- package/dist/types/getStorageAttributes.d.ts.map +0 -1
- package/dist/types/interpreter/getCondition.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/getContent.d.ts.map +0 -1
- package/dist/types/interpreter/getContent/plugins.d.ts.map +0 -1
- package/dist/types/interpreter/getDictionary.d.ts.map +0 -1
- package/dist/types/interpreter/getEnumeration.d.ts.map +0 -1
- package/dist/types/interpreter/getHTML.d.ts.map +0 -1
- package/dist/types/interpreter/getIntlayer.d.ts.map +0 -1
- package/dist/types/interpreter/getNesting.d.ts.map +0 -1
- package/dist/types/interpreter/getTranslation.d.ts.map +0 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +0 -1
- package/dist/types/localization/getBrowserLocale.d.ts.map +0 -1
- package/dist/types/localization/getHTMLTextDir.d.ts.map +0 -1
- package/dist/types/localization/getLocale.d.ts.map +0 -1
- package/dist/types/localization/getLocaleFromPath.d.ts.map +0 -1
- package/dist/types/localization/getLocaleLang.d.ts.map +0 -1
- package/dist/types/localization/getLocaleName.d.ts.map +0 -1
- package/dist/types/localization/getLocalizedUrl.d.ts.map +0 -1
- package/dist/types/localization/getMultilingualUrls.d.ts.map +0 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +0 -1
- package/dist/types/localization/getPrefix.d.ts.map +0 -1
- package/dist/types/localization/localeDetector.d.ts.map +0 -1
- package/dist/types/localization/localeMapper.d.ts.map +0 -1
- package/dist/types/localization/localeResolver.d.ts.map +0 -1
- package/dist/types/localization/rewriteUtils.d.ts.map +0 -1
- package/dist/types/localization/validatePrefix.d.ts.map +0 -1
- package/dist/types/markdown/compiler.d.ts.map +0 -1
- package/dist/types/markdown/constants.d.ts.map +0 -1
- package/dist/types/markdown/parser.d.ts.map +0 -1
- package/dist/types/markdown/renderer.d.ts.map +0 -1
- package/dist/types/markdown/types.d.ts.map +0 -1
- package/dist/types/markdown/utils.d.ts.map +0 -1
- package/dist/types/messageFormat/ICU.d.ts.map +0 -1
- package/dist/types/messageFormat/i18next.d.ts.map +0 -1
- package/dist/types/messageFormat/vue-i18n.d.ts.map +0 -1
- package/dist/types/transpiler/condition/condition.d.ts.map +0 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +0 -1
- package/dist/types/transpiler/file/file.d.ts.map +0 -1
- package/dist/types/transpiler/gender/gender.d.ts.map +0 -1
- package/dist/types/transpiler/html/html.d.ts.map +0 -1
- package/dist/types/transpiler/html/htmlTags.d.ts.map +0 -1
- package/dist/types/transpiler/html/validateHTML.d.ts.map +0 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +0 -1
- package/dist/types/transpiler/insertion/insertion.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/markdown.d.ts.map +0 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +0 -1
- package/dist/types/transpiler/nesting/nesting.d.ts.map +0 -1
- package/dist/types/transpiler/translation/translation.d.ts.map +0 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +0 -1
- package/dist/types/utils/getCookie.d.ts.map +0 -1
- package/dist/types/utils/intl.d.ts.map +0 -1
- package/dist/types/utils/isSameKeyPath.d.ts.map +0 -1
- package/dist/types/utils/isValidReactElement.d.ts.map +0 -1
- package/dist/types/utils/localeStorage.d.ts.map +0 -1
- package/dist/types/utils/parseYaml.d.ts.map +0 -1
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/localization/getLocaleLang.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Returns the language code of the given locale for locales including the country code.
|
|
6
|
-
*
|
|
7
|
-
* Example:
|
|
8
|
-
*
|
|
9
|
-
* getLocaleLang('en-US') // 'en'
|
|
10
|
-
* getLocaleLang('en') // 'en'
|
|
11
|
-
* getLocaleLang('fr-CA') // 'fr'
|
|
12
|
-
* getLocaleLang('fr') // 'fr'
|
|
13
|
-
*
|
|
14
|
-
* @param locale The locale to get the language code for.
|
|
15
|
-
* @returns The language code of the given locale.
|
|
16
|
-
*/
|
|
17
|
-
declare const getLocaleLang: (locale?: LocalesValues) => string;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { getLocaleLang };
|
|
20
|
-
//# sourceMappingURL=getLocaleLang.d.ts.map
|
|
1
|
+
import { t as getLocaleLang } from "../getLocaleLang-Bcan1gS4.js";
|
|
2
|
+
export { getLocaleLang };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/localization/getLocaleName.d.ts
|
|
4
|
-
declare const getLocaleName: (displayLocale: LocalesValues, targetLocale?: LocalesValues) => string;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getLocaleName };
|
|
7
|
-
//# sourceMappingURL=getLocaleName.d.ts.map
|
|
1
|
+
import { t as getLocaleName } from "../getLocaleName-CfRAD9Hc.js";
|
|
2
|
+
export { getLocaleName };
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/localization/getLocalizedUrl.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Generate URL by prefixing the given URL with the referenced locale or adding search parameters
|
|
7
|
-
* based on the routing mode. Handles both absolute and relative URLs appropriately.
|
|
8
|
-
*
|
|
9
|
-
* This function gets the locales, default locale, and routing mode from the configuration if not provided.
|
|
10
|
-
*
|
|
11
|
-
* Example:
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* // prefix-no-default mode
|
|
15
|
-
* getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-no-default' });
|
|
16
|
-
* // Returns '/fr/about' for the French locale
|
|
17
|
-
* // Returns '/about' for the English locale (default)
|
|
18
|
-
*
|
|
19
|
-
* // prefix-all mode
|
|
20
|
-
* getLocalizedUrl('/about', 'en', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-all' });
|
|
21
|
-
* // Returns '/en/about' for the English locale
|
|
22
|
-
* // Returns '/fr/about' for the French locale
|
|
23
|
-
*
|
|
24
|
-
* // search-params mode
|
|
25
|
-
* getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'search-params' });
|
|
26
|
-
* // Returns '/about?locale=fr' for the French locale
|
|
27
|
-
*
|
|
28
|
-
* // no-prefix mode
|
|
29
|
-
* getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'no-prefix' });
|
|
30
|
-
* // Returns '/about' for any locale
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @param url - The original URL string to be processed.
|
|
34
|
-
* @param currentLocale - The current locale.
|
|
35
|
-
* @param options - Configuration options
|
|
36
|
-
* @param options.locales - Optional array of supported locales. Defaults to configured locales.
|
|
37
|
-
* @param options.defaultLocale - The default locale. Defaults to configured default locale.
|
|
38
|
-
* @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
|
|
39
|
-
* @returns The localized URL for the current locale.
|
|
40
|
-
*/
|
|
41
|
-
declare const getLocalizedUrl: (url: string, currentLocale?: LocalesValues, options?: {
|
|
42
|
-
locales?: LocalesValues[];
|
|
43
|
-
defaultLocale?: LocalesValues;
|
|
44
|
-
mode?: RoutingConfig["mode"];
|
|
45
|
-
rewrite?: RoutingConfig["rewrite"];
|
|
46
|
-
}) => string;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { getLocalizedUrl };
|
|
49
|
-
//# sourceMappingURL=getLocalizedUrl.d.ts.map
|
|
1
|
+
import { t as getLocalizedUrl } from "../getLocalizedUrl-BbqeA3-W.js";
|
|
2
|
+
export { getLocalizedUrl };
|
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/localization/getMultilingualUrls.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Generates multilingual URLs by prefixing the given URL with each supported locale
|
|
7
|
-
* or adding search parameters based on the routing mode.
|
|
8
|
-
* Handles both absolute and relative URLs appropriately.
|
|
9
|
-
*
|
|
10
|
-
* This function gets the locales, default locale, and routing mode from the configuration if not provided.
|
|
11
|
-
*
|
|
12
|
-
* Example:
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* // prefix-no-default mode
|
|
16
|
-
* getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-no-default' })
|
|
17
|
-
* // Returns { en: '/dashboard', fr: '/fr/dashboard' }
|
|
18
|
-
*
|
|
19
|
-
* // prefix-all mode
|
|
20
|
-
* getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-all' })
|
|
21
|
-
* // Returns { en: '/en/dashboard', fr: '/fr/dashboard' }
|
|
22
|
-
*
|
|
23
|
-
* // search-params mode
|
|
24
|
-
* getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'search-params' })
|
|
25
|
-
* // Returns { en: '/dashboard?locale=en', fr: '/dashboard?locale=fr' }
|
|
26
|
-
*
|
|
27
|
-
* // no-prefix mode
|
|
28
|
-
* getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'no-prefix' })
|
|
29
|
-
* // Returns { en: '/dashboard', fr: '/dashboard' }
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @param url - The original URL string to be processed.
|
|
33
|
-
* @param options - Configuration options
|
|
34
|
-
* @param options.locales - Optional array of supported locales. Defaults to configured locales.
|
|
35
|
-
* @param options.defaultLocale - The default locale. Defaults to configured default locale.
|
|
36
|
-
* @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
|
|
37
|
-
* @returns An object mapping each locale to its corresponding multilingual URL.
|
|
38
|
-
*/
|
|
39
|
-
declare const getMultilingualUrls: (url: string, options?: {
|
|
40
|
-
locales?: LocalesValues[];
|
|
41
|
-
defaultLocale?: LocalesValues;
|
|
42
|
-
mode?: RoutingConfig["mode"];
|
|
43
|
-
rewrite?: RoutingConfig["rewrite"];
|
|
44
|
-
}) => StrictModeLocaleMap<string>;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { getMultilingualUrls };
|
|
47
|
-
//# sourceMappingURL=getMultilingualUrls.d.ts.map
|
|
1
|
+
import { t as getMultilingualUrls } from "../getMultilingualUrls-CUxYYfA4.js";
|
|
2
|
+
export { getMultilingualUrls };
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/localization/getPathWithoutLocale.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Removes the locale segment from the given URL or pathname if present.
|
|
6
|
-
* Also removes locale from search parameters if present.
|
|
7
|
-
*
|
|
8
|
-
* This function get the locales from the configuration if not provided.
|
|
9
|
-
*
|
|
10
|
-
* Example:
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* getPathWithoutLocale('/en/dashboard') // Returns '/dashboard'
|
|
14
|
-
* getPathWithoutLocale('/fr/dashboard') // Returns '/dashboard'
|
|
15
|
-
* getPathWithoutLocale('/dashboard') // Returns '/dashboard'
|
|
16
|
-
* getPathWithoutLocale('dashboard') // Returns 'dashboard'
|
|
17
|
-
* getPathWithoutLocale('/dashboard?locale=fr') // Returns '/dashboard'
|
|
18
|
-
* getPathWithoutLocale('https://example.com/en/dashboard') // Returns 'https://example.com/dashboard'
|
|
19
|
-
* getPathWithoutLocale('https://example.com/fr/dashboard') // Returns 'https://example.com/dashboard'
|
|
20
|
-
* getPathWithoutLocale('https://example.com/dashboard') // Returns 'https://example.com/dashboard'
|
|
21
|
-
* getPathWithoutLocale('https://example.com/dashboard?locale=fr') // Returns 'https://example.com/dashboard'
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @param inputUrl - The complete URL string or pathname to process.
|
|
25
|
-
* @param locales - Optional array of supported locales. Defaults to `localesDefault`.
|
|
26
|
-
* @returns The URL string or pathname without the locale segment or locale search parameter.
|
|
27
|
-
*/
|
|
28
|
-
declare const getPathWithoutLocale: (inputUrl: string, locales?: LocalesValues[]) => string;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { getPathWithoutLocale };
|
|
31
|
-
//# sourceMappingURL=getPathWithoutLocale.d.ts.map
|
|
1
|
+
import { t as getPathWithoutLocale } from "../getPathWithoutLocale-B_aIR7O0.js";
|
|
2
|
+
export { getPathWithoutLocale };
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { RoutingConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/localization/getPrefix.d.ts
|
|
6
|
-
type GetPrefixOptions = {
|
|
7
|
-
defaultLocale?: LocalesValues;
|
|
8
|
-
mode?: RoutingConfig['mode'];
|
|
9
|
-
};
|
|
10
|
-
type GetPrefixResult = {
|
|
11
|
-
/**
|
|
12
|
-
* The complete base URL path with leading and trailing slashes.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // https://example.com/fr/about -> '/fr'
|
|
16
|
-
* // https://example.com/about -> ''
|
|
17
|
-
*/
|
|
18
|
-
prefix: string;
|
|
19
|
-
/**
|
|
20
|
-
* The locale identifier without slashes.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // https://example.com/fr/about -> 'fr'
|
|
24
|
-
* // https://example.com/about -> undefined
|
|
25
|
-
*/
|
|
26
|
-
localePrefix: Locale | undefined;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Determines the URL prefix for a given locale based on the routing mode configuration.
|
|
30
|
-
*
|
|
31
|
-
* Example:
|
|
32
|
-
*
|
|
33
|
-
* ```ts
|
|
34
|
-
* // prefix-no-default mode with default locale
|
|
35
|
-
* getPrefix('en', { defaultLocale: 'en', mode: 'prefix-no-default' })
|
|
36
|
-
* // Returns { prefix: '', localePrefix: undefined }
|
|
37
|
-
*
|
|
38
|
-
* // prefix-no-default mode with non-default locale
|
|
39
|
-
* getPrefix('fr', { defaultLocale: 'en', mode: 'prefix-no-default' })
|
|
40
|
-
* // Returns { prefix: '/fr', localePrefix: 'fr' }
|
|
41
|
-
*
|
|
42
|
-
* // prefix-all mode
|
|
43
|
-
* getPrefix('en', { defaultLocale: 'en', mode: 'prefix-all' })
|
|
44
|
-
* // Returns { prefix: '/en', localePrefix: locale }
|
|
45
|
-
*
|
|
46
|
-
* // search-params mode
|
|
47
|
-
* getPrefix('en', { defaultLocale: 'en', mode: 'search-params' })
|
|
48
|
-
* // Returns { prefix: '', localePrefix: undefined }
|
|
49
|
-
*
|
|
50
|
-
* // no-prefix mode
|
|
51
|
-
* getPrefix('en', { defaultLocale: 'en', mode: 'no-prefix' })
|
|
52
|
-
* // Returns { prefix: '', localePrefix: undefined }
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @param locale - The locale to check for prefix. If not provided, uses configured default locale.
|
|
56
|
-
* @param options - Configuration options
|
|
57
|
-
* @param options.defaultLocale - The default locale. Defaults to configured default locale.
|
|
58
|
-
* @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
|
|
59
|
-
* @returns An object containing pathPrefix, prefix, and localePrefix for the given locale.
|
|
60
|
-
*/
|
|
61
|
-
declare const getPrefix: (locale: LocalesValues | undefined, options?: {
|
|
62
|
-
defaultLocale?: LocalesValues;
|
|
63
|
-
locales?: LocalesValues[];
|
|
64
|
-
mode?: RoutingConfig["mode"];
|
|
65
|
-
}) => GetPrefixResult;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { GetPrefixOptions, GetPrefixResult, getPrefix };
|
|
68
|
-
//# sourceMappingURL=getPrefix.d.ts.map
|
|
1
|
+
import { n as GetPrefixResult, r as getPrefix, t as GetPrefixOptions } from "../getPrefix-X9XKkrZD.js";
|
|
2
|
+
export { GetPrefixOptions, GetPrefixResult, getPrefix };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getBrowserLocale, localeStorageOptions } from "
|
|
3
|
-
import { getHTMLTextDir } from "
|
|
4
|
-
import { getLocale } from "
|
|
5
|
-
import { getLocaleFromPath } from "
|
|
6
|
-
import { getLocaleLang } from "
|
|
7
|
-
import { getLocaleName } from "
|
|
8
|
-
import { getLocalizedUrl } from "
|
|
9
|
-
import { getMultilingualUrls } from "
|
|
10
|
-
import { getPathWithoutLocale } from "
|
|
11
|
-
import {
|
|
12
|
-
import { localeDetector } from "
|
|
13
|
-
import { localeFlatMap, localeMap
|
|
14
|
-
import { localeResolver } from "
|
|
15
|
-
import {
|
|
16
|
-
import { validatePrefix } from "
|
|
1
|
+
import { n as getStorageAttributes, t as ProcessedStorageAttributes } from "../getStorageAttributes-CIO2xWqQ.js";
|
|
2
|
+
import { n as getBrowserLocale, r as localeStorageOptions } from "../getBrowserLocale-RD_Mwv1t.js";
|
|
3
|
+
import { t as getHTMLTextDir } from "../getHTMLTextDir-4Zh8J3x7.js";
|
|
4
|
+
import { n as getLocale } from "../getLocale-B9dECUM_.js";
|
|
5
|
+
import { t as getLocaleFromPath } from "../getLocaleFromPath-621W32QA.js";
|
|
6
|
+
import { t as getLocaleLang } from "../getLocaleLang-Bcan1gS4.js";
|
|
7
|
+
import { t as getLocaleName } from "../getLocaleName-CfRAD9Hc.js";
|
|
8
|
+
import { t as getLocalizedUrl } from "../getLocalizedUrl-BbqeA3-W.js";
|
|
9
|
+
import { t as getMultilingualUrls } from "../getMultilingualUrls-CUxYYfA4.js";
|
|
10
|
+
import { t as getPathWithoutLocale } from "../getPathWithoutLocale-B_aIR7O0.js";
|
|
11
|
+
import { n as GetPrefixResult, r as getPrefix, t as GetPrefixOptions } from "../getPrefix-X9XKkrZD.js";
|
|
12
|
+
import { n as localeDetector } from "../localeDetector-BWNCQRiZ.js";
|
|
13
|
+
import { i as localeRecord, n as localeFlatMap, r as localeMap } from "../localeMapper-DoAnasqf.js";
|
|
14
|
+
import { t as localeResolver } from "../localeResolver-bb7AWQNX.js";
|
|
15
|
+
import { a as getRewritePath, i as getLocalizedPath, n as getCanonicalPath, o as getRewriteRules, r as getInternalPath, t as LocalizedPathResult } from "../rewriteUtils-Bd82NiGR.js";
|
|
16
|
+
import { n as validatePrefix } from "../validatePrefix-Dtmg7QLq.js";
|
|
17
17
|
export { type GetPrefixOptions, type GetPrefixResult, type LocalizedPathResult, ProcessedStorageAttributes, getBrowserLocale, getCanonicalPath, getHTMLTextDir, getInternalPath, getLocale, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedPath, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, getRewritePath, getRewriteRules, getStorageAttributes, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, validatePrefix };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/localization/localeDetector.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Derives the list of preferred languages based on the Accept-Language header
|
|
6
|
-
* and an optional list of available languages.
|
|
7
|
-
*/
|
|
8
|
-
declare const getPreferredLanguages: (acceptHeader: string | undefined, availableLanguages?: string[]) => string[];
|
|
9
|
-
/**
|
|
10
|
-
* Detects the locale from the request headers.
|
|
11
|
-
*
|
|
12
|
-
* Headers are provided by the browser/client and can be used to determine the user's preferred language.
|
|
13
|
-
* This function intersects the user's `Accept-Language` header with the application's available locales.
|
|
14
|
-
*/
|
|
15
|
-
declare const localeDetector: (headers: Record<string, string | undefined>, availableLocales?: Locale[], defaultLocale?: Locale) => Locale;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getPreferredLanguages, localeDetector };
|
|
18
|
-
//# sourceMappingURL=localeDetector.d.ts.map
|
|
1
|
+
import { n as localeDetector, t as getPreferredLanguages } from "../localeDetector-BWNCQRiZ.js";
|
|
2
|
+
export { getPreferredLanguages, localeDetector };
|
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/localization/localeMapper.d.ts
|
|
5
|
-
type LocaleData = {
|
|
6
|
-
locale: Locale;
|
|
7
|
-
defaultLocale: Locale;
|
|
8
|
-
isDefault: boolean;
|
|
9
|
-
locales: Locale[];
|
|
10
|
-
urlPrefix: string;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Map the locale data to an array of objects
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const routes = localeMap((localizedData) =>
|
|
18
|
-
* ({
|
|
19
|
-
* path: localizedData.urlPrefix,
|
|
20
|
-
* name: localizedData.locale,
|
|
21
|
-
* isDefault: localizedData.isDefault,
|
|
22
|
-
* locales: localizedData.locales,
|
|
23
|
-
* defaultLocale: localizedData.defaultLocale,
|
|
24
|
-
* }),
|
|
25
|
-
* );
|
|
26
|
-
*
|
|
27
|
-
* // Result
|
|
28
|
-
* [
|
|
29
|
-
* { path: '/', name: 'en', isDefault: true, locales: ['en'], defaultLocale: 'en', urlPrefix: '' },
|
|
30
|
-
* { path: '/fr', name: 'fr', isDefault: false, locales: ['fr'], defaultLocale: 'en', urlPrefix: '/fr' },
|
|
31
|
-
* { path: '/es', name: 'es', isDefault: false, locales: ['es'], defaultLocale: 'en', urlPrefix: '/es' },
|
|
32
|
-
* ]
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @param mapper - The mapper function that returns an object
|
|
36
|
-
* @returns An array of objects
|
|
37
|
-
*/
|
|
38
|
-
declare const localeMap: <T>(mapper: (locale: LocaleData) => T, locales?: LocalesValues[], defaultLocale?: LocalesValues, mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params") => T[];
|
|
39
|
-
/**
|
|
40
|
-
* Flatten the locale map into a single array of objects
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const routes = localeMap((localizedData) =>
|
|
45
|
-
* [{
|
|
46
|
-
* path: localizedData.urlPrefix,
|
|
47
|
-
* name: localizedData.locale,
|
|
48
|
-
* isDefault: localizedData.isDefault,
|
|
49
|
-
* locales: localizedData.locales,
|
|
50
|
-
* defaultLocale: localizedData.defaultLocale,
|
|
51
|
-
* }],
|
|
52
|
-
* );
|
|
53
|
-
*
|
|
54
|
-
* // Result
|
|
55
|
-
* [
|
|
56
|
-
* path: '/', name: 'en', isDefault: true, locales: ['en'], defaultLocale: 'en', urlPrefix: '' ,
|
|
57
|
-
* path: '/fr', name: 'fr', isDefault: false, locales: ['fr'], defaultLocale: 'en', urlPrefix: '/fr' ,
|
|
58
|
-
* path: '/es', name: 'es', isDefault: false, locales: ['es'], defaultLocale: 'en', urlPrefix: '/es' ,
|
|
59
|
-
* ]
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* @param mapper - The mapper function that returns an array of objects
|
|
63
|
-
* @returns An array of objects
|
|
64
|
-
*/
|
|
65
|
-
declare const localeFlatMap: <T>(mapper: (locale: LocaleData) => T[], locales?: LocalesValues[], defaultLocale?: LocalesValues, mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params") => T[];
|
|
66
|
-
/**
|
|
67
|
-
* Creates a record object mapping locales to values transformed by the mapper function
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* const translations = localeRecord(({ locale }) =>
|
|
72
|
-
* require(`./translations/${locale}.json`)
|
|
73
|
-
* );
|
|
74
|
-
*
|
|
75
|
-
* // Result
|
|
76
|
-
*
|
|
77
|
-
* en: ... , // Content of translations/en.json
|
|
78
|
-
* fr: ... , // Content of translations/fr.json
|
|
79
|
-
* es: ...
|
|
80
|
-
*
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* @param mapper - Function that takes locale data and returns a value for that locale
|
|
84
|
-
* @param locales - Array of locale codes to map over (defaults to configured locales)
|
|
85
|
-
* @param defaultLocale - The default locale (defaults to configured default)
|
|
86
|
-
* @param mode - URL routing mode for locale handling (defaults to configured value)
|
|
87
|
-
* @returns Record mapping locale codes to mapped values
|
|
88
|
-
*/
|
|
89
|
-
declare const localeRecord: <T>(mapper: (locale: LocaleData) => T, locales?: LocalesValues[], defaultLocale?: LocalesValues, mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params") => Record<LocalesValues, T>;
|
|
90
|
-
//#endregion
|
|
91
|
-
export { LocaleData, localeFlatMap, localeMap, localeRecord };
|
|
92
|
-
//# sourceMappingURL=localeMapper.d.ts.map
|
|
1
|
+
import { i as localeRecord, n as localeFlatMap, r as localeMap, t as LocaleData } from "../localeMapper-DoAnasqf.js";
|
|
2
|
+
export { LocaleData, localeFlatMap, localeMap, localeRecord };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/localization/localeResolver.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the most specific locale from a user-provided list,
|
|
7
|
-
* or falls back to the default locale if no match is found.
|
|
8
|
-
*/
|
|
9
|
-
declare const localeResolver: (selectedLocale: LocalesValues | LocalesValues[], locales?: LocalesValues[], defaultLocale?: LocalesValues) => Locale;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { localeResolver };
|
|
12
|
-
//# sourceMappingURL=localeResolver.d.ts.map
|
|
1
|
+
import { t as localeResolver } from "../localeResolver-bb7AWQNX.js";
|
|
2
|
+
export { localeResolver };
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { RewriteObject, RewriteRules, RoutingConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/localization/rewriteUtils.d.ts
|
|
6
|
-
type LocalizedPathResult = {
|
|
7
|
-
path: string;
|
|
8
|
-
isRewritten: boolean;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Normalizes legacy Record format or extracts specialized rules from RewriteObject.
|
|
12
|
-
*/
|
|
13
|
-
declare const getRewriteRules: (rewrite: RoutingConfig["rewrite"], context?: keyof RewriteObject) => RewriteRules | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Given a localized URL (e.g., "/produits/123"), finds the canonical internal path (e.g., "/products/123").
|
|
16
|
-
* If locale is provided, only check for that locale. Otherwise, check for all locales.
|
|
17
|
-
*/
|
|
18
|
-
declare const getCanonicalPath: (localizedPath: string, locale?: Locale, rewriteRules?: RewriteRules) => string;
|
|
19
|
-
/**
|
|
20
|
-
* Given a canonical path (e.g., "/products/123"), finds the localized URL pattern (e.g., "/produits/123").
|
|
21
|
-
*/
|
|
22
|
-
declare const getLocalizedPath: (canonicalPath: string, locale: LocalesValues, rewriteRules?: RewriteRules) => LocalizedPathResult;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the internal path for a given canonical path and locale.
|
|
25
|
-
* Ensures the locale prefix is present exactly once.
|
|
26
|
-
*/
|
|
27
|
-
declare const getInternalPath: (canonicalPath: string, locale: Locale) => string;
|
|
28
|
-
/**
|
|
29
|
-
* Given a current pathname and locale, returns the pretty localized path if a rewrite rule exists and the path is not already localized.
|
|
30
|
-
*/
|
|
31
|
-
declare const getRewritePath: (pathname: string, locale: Locale, rewrite?: RoutingConfig["rewrite"]) => string | undefined;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { LocalizedPathResult, getCanonicalPath, getInternalPath, getLocalizedPath, getRewritePath, getRewriteRules };
|
|
34
|
-
//# sourceMappingURL=rewriteUtils.d.ts.map
|
|
1
|
+
import { a as getRewritePath, i as getLocalizedPath, n as getCanonicalPath, o as getRewriteRules, r as getInternalPath, t as LocalizedPathResult } from "../rewriteUtils-Bd82NiGR.js";
|
|
2
|
+
export { LocalizedPathResult, getCanonicalPath, getInternalPath, getLocalizedPath, getRewritePath, getRewriteRules };
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/localization/validatePrefix.d.ts
|
|
5
|
-
type ValidatePrefixResult = {
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
localePrefix: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Checks whether a given locale is valid based on the configured locales.
|
|
11
|
-
*
|
|
12
|
-
* @param locale - The locale value to validate. Can be `undefined` or `null`.
|
|
13
|
-
* @param options - Optional configuration to override default settings.
|
|
14
|
-
* @param options.locales - Array of valid locales. Defaults to the configured internationalization locales.
|
|
15
|
-
* @param options.defaultLocale - The default locale to use as fallback. Defaults to the configured default locale.
|
|
16
|
-
* @param options.mode - The routing mode (`'prefix'`, `'prefix-all'`, or `'no-prefix'`). Defaults to the configured routing mode.
|
|
17
|
-
* @returns An object containing the validation result and the locale prefix.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* // Check if 'en' is a valid locale
|
|
21
|
-
* const { isValid, localePrefix } = validatePrefix('en');
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Check with custom options
|
|
25
|
-
* const { isValid, localePrefix } = validatePrefix('fr', {
|
|
26
|
-
* locales: ['en', 'fr', 'es'],
|
|
27
|
-
* defaultLocale: 'en',
|
|
28
|
-
* mode: 'prefix-all',
|
|
29
|
-
* });
|
|
30
|
-
*/
|
|
31
|
-
declare const validatePrefix: (locale: LocalesValues | undefined | null, options?: {
|
|
32
|
-
locales?: LocalesValues[];
|
|
33
|
-
defaultLocale?: LocalesValues;
|
|
34
|
-
mode?: typeof configuration.routing.mode;
|
|
35
|
-
}) => ValidatePrefixResult;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { ValidatePrefixResult, validatePrefix };
|
|
38
|
-
//# sourceMappingURL=validatePrefix.d.ts.map
|
|
1
|
+
import { n as validatePrefix, t as ValidatePrefixResult } from "../validatePrefix-Dtmg7QLq.js";
|
|
2
|
+
export { ValidatePrefixResult, validatePrefix };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/compiler.d.ts
|
|
4
|
-
declare const compile: (markdown: string, ctx: MarkdownContext<any>, options?: MarkdownOptions) => unknown;
|
|
5
|
-
declare const createCompiler: (ctx: MarkdownContext<any>) => (markdown: string, options?: MarkdownOptions) => unknown;
|
|
6
|
-
declare const compileWithOptions: (markdown: string, runtime: MarkdownRuntime, options?: CompileOptions<any>) => unknown;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { compile, compileWithOptions, createCompiler };
|
|
9
|
-
//# sourceMappingURL=compiler.d.ts.map
|
|
1
|
+
import { n as compileWithOptions, r as createCompiler, t as compile } from "../compiler-DFiAsUdH.js";
|
|
2
|
+
export { compile, compileWithOptions, createCompiler };
|