@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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l as DeepTransformContent, v as NodeProps, y as Plugins } from "./index-BnEeKNKW.js";
|
|
2
|
+
import * as _intlayer_types_dictionary0 from "@intlayer/types/dictionary";
|
|
3
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
+
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
+
|
|
6
|
+
//#region src/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts
|
|
7
|
+
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
+
declare const filterTranslationsOnlyPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
|
|
9
|
+
/**
|
|
10
|
+
* Return the content of a node with only the translation plugin.
|
|
11
|
+
*
|
|
12
|
+
* @param node The node to transform.
|
|
13
|
+
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
14
|
+
*/
|
|
15
|
+
declare const getFilterTranslationsOnlyContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
16
|
+
declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, locale?: LocalesValues, fallback?: LocalesValues) => {
|
|
17
|
+
content: any;
|
|
18
|
+
$schema?: "https://intlayer.org/schema.json";
|
|
19
|
+
id?: _intlayer_types_dictionary0.DictionaryId;
|
|
20
|
+
projectIds?: string[];
|
|
21
|
+
localId?: _intlayer_types_dictionary0.LocalDictionaryId;
|
|
22
|
+
localIds?: _intlayer_types_dictionary0.LocalDictionaryId[];
|
|
23
|
+
format?: _intlayer_types_dictionary0.DictionaryFormat;
|
|
24
|
+
key: _intlayer_types_dictionary0.DictionaryKey;
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
versions?: string[];
|
|
28
|
+
version?: string;
|
|
29
|
+
filePath?: string;
|
|
30
|
+
tags?: string[];
|
|
31
|
+
locale?: LocalesValues;
|
|
32
|
+
contentAutoTransformation?: _intlayer_types_dictionary0.ContentAutoTransformation;
|
|
33
|
+
fill?: _intlayer_types_dictionary0.Fill;
|
|
34
|
+
filled?: true;
|
|
35
|
+
priority?: number;
|
|
36
|
+
importMode?: _intlayer_types_dictionary0.ImportMode;
|
|
37
|
+
location?: _intlayer_types_dictionary0.DictionaryLocation;
|
|
38
|
+
schema: undefined;
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { getFilterTranslationsOnlyContent as n, getFilterTranslationsOnlyDictionary as r, filterTranslationsOnlyPlugin as t };
|
|
42
|
+
//# sourceMappingURL=getFilterTranslationsOnlyContent-D2YgBkHn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFilterTranslationsOnlyContent-D2YgBkHn.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":";;;;;;;cAqCa,4BAAA,GACX,MAAA,EAAQ,aAAA,EACR,QAAA,GAAW,aAAA,KACV,OAAA;;AAHH;;;;;cAuFa,gCAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,MAAA,EAAQ,CAAA,EACR,SAAA,EAAW,SAAA,EACX,QAAA,GAAW,aAAA,KAUL,oBAAA,CAAqB,CAAA;AAAA,cAGhB,mCAAA,GACX,UAAA,EAAY,UAAA,EACZ,MAAA,GAAQ,aAAA,EAER,QAAA,GAAW,aAAA;;;OAAa,2BAAA,CAAA,YAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { v as NodeProps } from "./index-BnEeKNKW.js";
|
|
2
|
+
import * as _intlayer_types_dictionary0 from "@intlayer/types/dictionary";
|
|
3
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
+
|
|
6
|
+
//#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
|
|
7
|
+
declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesValues | LocalesValues[], nodeProps: NodeProps) => any;
|
|
8
|
+
declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
|
|
9
|
+
content: any;
|
|
10
|
+
$schema?: "https://intlayer.org/schema.json";
|
|
11
|
+
id?: _intlayer_types_dictionary0.DictionaryId;
|
|
12
|
+
projectIds?: string[];
|
|
13
|
+
localId?: _intlayer_types_dictionary0.LocalDictionaryId;
|
|
14
|
+
localIds?: _intlayer_types_dictionary0.LocalDictionaryId[];
|
|
15
|
+
format?: _intlayer_types_dictionary0.DictionaryFormat;
|
|
16
|
+
key: _intlayer_types_dictionary0.DictionaryKey;
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
versions?: string[];
|
|
20
|
+
version?: string;
|
|
21
|
+
filePath?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
locale?: LocalesValues;
|
|
24
|
+
contentAutoTransformation?: _intlayer_types_dictionary0.ContentAutoTransformation;
|
|
25
|
+
fill?: _intlayer_types_dictionary0.Fill;
|
|
26
|
+
filled?: true;
|
|
27
|
+
priority?: number;
|
|
28
|
+
importMode?: _intlayer_types_dictionary0.ImportMode;
|
|
29
|
+
location?: _intlayer_types_dictionary0.DictionaryLocation;
|
|
30
|
+
schema: undefined;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { getFilteredLocalesDictionary as n, getFilteredLocalesContent as t };
|
|
34
|
+
//# sourceMappingURL=getFilteredLocalesContent-D0GP-uEg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFilteredLocalesContent-D0GP-uEg.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":";;;;;;cAmCa,yBAAA,GACX,IAAA,EAAM,WAAA,EACN,OAAA,EAAS,aAAA,GAAgB,aAAA,IACzB,SAAA,EAAW,SAAA;AAAA,cAwBA,4BAAA,GACX,UAAA,EAAY,UAAA,EACZ,MAAA,EAAQ,aAAA,GAAgB,aAAA;;;OAAa,2BAAA,CAAA,YAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/interpreter/getHTML.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Component function that receives properly typed props
|
|
4
|
+
* Props include:
|
|
5
|
+
* - children?: any[] - Array of child elements (ReactNode[], VNode[], etc.)
|
|
6
|
+
* - [key: string]: any - Any HTML attributes (className, style, href, etc.)
|
|
7
|
+
*/
|
|
8
|
+
type Component = (props: {
|
|
9
|
+
children?: any[];
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
/**
|
|
13
|
+
* Component object that delegates to another component
|
|
14
|
+
*/
|
|
15
|
+
type ComponentObject = {
|
|
16
|
+
tag: string;
|
|
17
|
+
props?: Record<string, any>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Components map:
|
|
21
|
+
* - Function components receive typed props
|
|
22
|
+
* - String components delegate to another tag
|
|
23
|
+
* - Object components delegate with additional props
|
|
24
|
+
*/
|
|
25
|
+
type Components = Record<string, Component | string | ComponentObject>;
|
|
26
|
+
/**
|
|
27
|
+
* Interprets a string containing HTML-like tags and replaces them with provided components or strings.
|
|
28
|
+
*/
|
|
29
|
+
declare const getHTML: (content: string, values: Components) => any;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { getHTML as t };
|
|
32
|
+
//# sourceMappingURL=getHTML-CP6OXtdo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHTML-CP6OXtdo.d.ts","names":[],"sources":["../../src/interpreter/getHTML.ts"],"mappings":";;;;;;;KAMK,SAAA,IAAa,KAAA;EAAS,QAAA;EAAA,CAAmB,GAAA;AAAA;AAAmB;;;AAAA,KAK5D,eAAA;EACH,GAAA;EACA,KAAA,GAAQ,MAAA;AAAA;;;AAAM;;;;KASX,UAAA,GAAa,MAAA,SAAe,SAAA,YAAqB,eAAA;;;;cA4HzC,OAAA,GAAW,OAAA,UAAiB,MAAA,EAAQ,UAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/localization/getHTMLTextDir.d.ts
|
|
4
|
+
type Dir = 'ltr' | 'rtl' | 'auto';
|
|
5
|
+
/**
|
|
6
|
+
* Returns the text direction of the given locale.
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
*
|
|
10
|
+
* getHTMLTextDir('en-US') // 'ltr'
|
|
11
|
+
* getHTMLTextDir('en') // 'ltr'
|
|
12
|
+
* getHTMLTextDir('fr-CA') // 'ltr'
|
|
13
|
+
* getHTMLTextDir('fr') // 'ltr'
|
|
14
|
+
*
|
|
15
|
+
* @param locale The locale to get the text direction for.
|
|
16
|
+
* @returns The text direction of the given locale.
|
|
17
|
+
*/
|
|
18
|
+
declare const getHTMLTextDir: (locale?: LocalesValues) => Dir;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { getHTMLTextDir as t };
|
|
21
|
+
//# sourceMappingURL=getHTMLTextDir-4Zh8J3x7.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHTMLTextDir-4Zh8J3x7.d.ts","names":[],"sources":["../../src/localization/getHTMLTextDir.ts"],"mappings":";;;KA0CK,GAAA;;AAFoE;;;;;AAiBzE;;;;;;;cAAa,cAAA,GAAkB,MAAA,GAAS,aAAA,KAAgB,GAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInsertionValues-Cu9IdbuE.d.ts","names":[],"sources":["../../src/transpiler/insertion/getInsertionValues.ts"],"mappings":";cAAa,kBAAA,GAAsB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
2
|
+
|
|
3
|
+
//#region src/localization/getLocale.d.ts
|
|
4
|
+
type RequestContext = {
|
|
5
|
+
getHeader?: (name: string) => string | null | undefined;
|
|
6
|
+
getCookie?: (name: string) => string | null | undefined;
|
|
7
|
+
};
|
|
8
|
+
declare const getLocale: (ctx?: RequestContext) => Promise<Locale>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getLocale as n, RequestContext as t };
|
|
11
|
+
//# sourceMappingURL=getLocale-B9dECUM_.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocale-B9dECUM_.d.ts","names":[],"sources":["../../src/localization/getLocale.ts"],"mappings":";;;KAOY,cAAA;EACV,SAAA,IAAa,IAAA;EACb,SAAA,IAAa,IAAA;AAAA;AAAA,cAGF,SAAA,GAAmB,GAAA,GAAK,cAAA,KAAsB,OAAA,CAAQ,MAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
+
import { RoutingConfig } from "@intlayer/types/config";
|
|
4
|
+
|
|
5
|
+
//#region src/localization/getLocaleFromPath.d.ts
|
|
6
|
+
type GetLocaleFromPathOptions = {
|
|
7
|
+
defaultLocale?: LocalesValues;
|
|
8
|
+
locales?: LocalesValues[];
|
|
9
|
+
mode?: RoutingConfig['mode'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Extracts the locale segment from the given URL or pathname based on the routing mode.
|
|
13
|
+
*
|
|
14
|
+
* Mode Behaviors:
|
|
15
|
+
* - 'prefix-no-default': Checks path prefiIf no prefix found, assumes default locale.
|
|
16
|
+
* - 'prefix-all': Checks path prefix.
|
|
17
|
+
* - 'search-params': Checks for 'locale' query parameter.
|
|
18
|
+
* - 'no-prefix': Returns undefined (or default if fallback is true).
|
|
19
|
+
*
|
|
20
|
+
* @param inputUrl - The complete URL string or pathname to process.
|
|
21
|
+
* @returns The detected locale, default locale (if fallback/implicit), or undefined.
|
|
22
|
+
*/
|
|
23
|
+
declare const getLocaleFromPath: (inputUrl?: string, options?: GetLocaleFromPathOptions) => Locale | undefined;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { getLocaleFromPath as t };
|
|
26
|
+
//# sourceMappingURL=getLocaleFromPath-621W32QA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocaleFromPath-621W32QA.d.ts","names":[],"sources":["../../src/localization/getLocaleFromPath.ts"],"mappings":";;;;;KAOK,wBAAA;EACH,aAAA,GAAgB,aAAA;EAChB,OAAA,GAAU,aAAA;EACV,IAAA,GAAO,aAAA;AAAA;;;;;;;;;;;;;cAeI,iBAAA,GACX,QAAA,WACA,OAAA,GAAU,wBAAA,KACT,MAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
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 as t };
|
|
20
|
+
//# sourceMappingURL=getLocaleLang-Bcan1gS4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocaleLang-Bcan1gS4.d.ts","names":[],"sources":["../../src/localization/getLocaleLang.ts"],"mappings":";;;;;AAeA;;;;;;;;;;;cAAa,aAAA,GAAiB,MAAA,GAAS,aAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
|
|
3
|
+
//#region src/localization/getLocaleName.d.ts
|
|
4
|
+
declare const getLocaleName: (displayLocale: LocalesValues, targetLocale?: LocalesValues) => string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { getLocaleName as t };
|
|
7
|
+
//# sourceMappingURL=getLocaleName-CfRAD9Hc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocaleName-CfRAD9Hc.d.ts","names":[],"sources":["../../src/localization/getLocaleName.ts"],"mappings":";;;cAGa,aAAA,GACX,aAAA,EAAe,aAAA,EACf,YAAA,GAAc,aAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { l as DeepTransformContent, v as NodeProps } from "./index-BnEeKNKW.js";
|
|
2
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
|
+
|
|
5
|
+
//#region src/deepTransformPlugins/getLocalizedContent.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Transforms a node in a single pass, applying each plugin as needed.
|
|
8
|
+
* In comparison to `getContent`, this function will only apply the translation plugin.
|
|
9
|
+
* It will not transform enumerations, insertions, or other content types.
|
|
10
|
+
*
|
|
11
|
+
* @param node The node to transform.
|
|
12
|
+
* @param locale The locale to use if your transformers need it (e.g. for translations).
|
|
13
|
+
*/
|
|
14
|
+
declare const getLocalizedContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
|
+
declare const getPerLocaleDictionary: <T extends Dictionary, L extends LocalesValues>(dictionary: T, locale: L, fallback?: LocalesValues) => Dictionary;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { getPerLocaleDictionary as n, getLocalizedContent as t };
|
|
18
|
+
//# sourceMappingURL=getLocalizedContent-DOncZd-0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocalizedContent-DOncZd-0.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":";;;;;;;AAkBA;;;;;;cAAa,mBAAA,aACD,WAAA,YACA,aAAA,GAAgB,eAAA,EAE1B,IAAA,EAAM,CAAA,EACN,MAAA,EAAQ,CAAA,EACR,SAAA,EAAW,SAAA,EACX,QAAA,GAAW,aAAA,KAUL,oBAAA,CAAqB,CAAA;AAAA,cAGhB,sBAAA,aACD,UAAA,YACA,aAAA,EAEV,UAAA,EAAY,CAAA,EACZ,MAAA,EAAQ,CAAA,EACR,QAAA,GAAW,aAAA,KACV,UAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { RoutingConfig } from "@intlayer/types/config";
|
|
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 as t };
|
|
49
|
+
//# sourceMappingURL=getLocalizedUrl-BbqeA3-W.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocalizedUrl-BbqeA3-W.d.ts","names":[],"sources":["../../src/localization/getLocalizedUrl.ts"],"mappings":";;;;;;AAkDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,eAAA,GACX,GAAA,UACA,aAAA,GAAe,aAAA,EAEf,OAAA;EACE,OAAA,GAAU,aAAA;EACV,aAAA,GAAgB,aAAA;EAChB,IAAA,GAAO,aAAA;EACP,OAAA,GAAU,aAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMarkdownMetadata-Bf1S1NQ0.d.ts","names":[],"sources":["../../src/transpiler/markdown/getMarkdownMetadata.ts"],"mappings":";cAEa,mBAAA,aAAiC,MAAA,eAC5C,QAAA,aACC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { y as Plugins } from "./index-BnEeKNKW.js";
|
|
2
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
|
|
4
|
+
//#region src/deepTransformPlugins/getMaskContent.d.ts
|
|
5
|
+
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
6
|
+
declare const buildMaskPlugin: Plugins;
|
|
7
|
+
declare const getMaskContent: (source: Dictionary) => any;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { getMaskContent as n, buildMaskPlugin as t };
|
|
10
|
+
//# sourceMappingURL=getMaskContent-BwLFqp7v.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaskContent-BwLFqp7v.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":";;;;;cAYa,eAAA,EAAiB,OAAA;AAAA,cAMjB,cAAA,GAAkB,MAAA,EAAQ,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { v as NodeProps, y as Plugins } from "./index-BnEeKNKW.js";
|
|
2
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
4
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
+
|
|
6
|
+
//#region src/deepTransformPlugins/getMissingLocalesContent.d.ts
|
|
7
|
+
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
|
+
declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLocale: (locale: Locale) => void) => Plugins;
|
|
9
|
+
/**
|
|
10
|
+
* Return the content of a node with only the translation plugin.
|
|
11
|
+
*
|
|
12
|
+
* @param node The node to transform.
|
|
13
|
+
* @param locales The locales to check for missing translations.
|
|
14
|
+
*/
|
|
15
|
+
declare const getMissingLocalesContent: <T extends ContentNode>(node: T, locales: LocalesValues[], nodeProps: NodeProps) => Locale[];
|
|
16
|
+
declare const getMissingLocalesContentFromDictionary: (dictionary: Dictionary, locales?: LocalesValues[]) => Locale[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { getMissingLocalesContent as n, getMissingLocalesContentFromDictionary as r, checkMissingLocalesPlugin as t };
|
|
19
|
+
//# sourceMappingURL=getMissingLocalesContent-BYffYcdx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMissingLocalesContent-BYffYcdx.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":";;;;;;;cAiGa,yBAAA,GACX,OAAA,EAAS,MAAA,IACT,eAAA,GAAkB,MAAA,EAAQ,MAAA,cACzB,OAAA;AAHH;;;;;;AAAA,cA0Ga,wBAAA,aAAsC,WAAA,EACjD,IAAA,EAAM,CAAA,EACN,OAAA,EAAS,aAAA,IACT,SAAA,EAAW,SAAA,KACV,MAAA;AAAA,cAkBU,sCAAA,GACX,UAAA,EAAY,UAAA,EACZ,OAAA,GAAS,aAAA,OAA8D,MAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
|
|
3
|
+
//#region src/deepTransformPlugins/getMultilingualDictionary.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Transform a per-locale dictionary into a multilingual dictionary.
|
|
6
|
+
*
|
|
7
|
+
* Example:
|
|
8
|
+
* ```json
|
|
9
|
+
* {
|
|
10
|
+
* "key": "about-page",
|
|
11
|
+
* "locale": "en",
|
|
12
|
+
* "content": {
|
|
13
|
+
* "myContent": "English content"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ```json
|
|
19
|
+
* {
|
|
20
|
+
* "key": "about-page",
|
|
21
|
+
* "content": {
|
|
22
|
+
* "myContent": t({
|
|
23
|
+
* "en": "English content",
|
|
24
|
+
* })
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const getMultilingualDictionary: (dictionary: Dictionary) => Dictionary;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { getMultilingualDictionary as t };
|
|
32
|
+
//# sourceMappingURL=getMultilingualDictionary-DO3i1MFs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMultilingualDictionary-DO3i1MFs.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":";;;;;AAmCA;;;;;;;;;;;;;;;;;;;;;;;cAAa,yBAAA,GACX,UAAA,EAAY,UAAA,KACX,UAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { RoutingConfig } from "@intlayer/types/config";
|
|
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 as t };
|
|
47
|
+
//# sourceMappingURL=getMultilingualUrls-CUxYYfA4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMultilingualUrls-CUxYYfA4.d.ts","names":[],"sources":["../../src/localization/getMultilingualUrls.ts"],"mappings":";;;;;;AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,mBAAA,GACX,GAAA,UACA,OAAA;EACE,OAAA,GAAU,aAAA;EACV,aAAA,GAAgB,aAAA;EAChB,IAAA,GAAO,aAAA;EACP,OAAA,GAAU,aAAA;AAAA,MAEX,mBAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
|
+
|
|
3
|
+
//#region src/dictionaryManipulator/getNodeChildren.d.ts
|
|
4
|
+
declare const getNodeChildren: (section: ContentNode) => ContentNode;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { getNodeChildren as t };
|
|
7
|
+
//# sourceMappingURL=getNodeChildren-OT7Liqke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNodeChildren-OT7Liqke.d.ts","names":[],"sources":["../../src/dictionaryManipulator/getNodeChildren.ts"],"mappings":";;;cAGa,eAAA,GAAmB,OAAA,EAAS,WAAA,KAAc,WAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
|
+
import { NodeType } from "@intlayer/types/nodeType";
|
|
3
|
+
|
|
4
|
+
//#region src/dictionaryManipulator/getNodeType.d.ts
|
|
5
|
+
declare const getNodeType: (content: ContentNode) => NodeType;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getNodeType as t };
|
|
8
|
+
//# sourceMappingURL=getNodeType-Cp765I26.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNodeType-Cp765I26.d.ts","names":[],"sources":["../../src/dictionaryManipulator/getNodeType.ts"],"mappings":";;;;cAuBa,WAAA,GAAe,OAAA,EAAS,WAAA,KAAc,QAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
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 as t };
|
|
31
|
+
//# sourceMappingURL=getPathWithoutLocale-B_aIR7O0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPathWithoutLocale-B_aIR7O0.d.ts","names":[],"sources":["../../src/localization/getPathWithoutLocale.ts"],"mappings":";;;;;AA6BA;;;;;;;;;;;;;;;;;;;;;;cAAa,oBAAA,GACX,QAAA,UACA,OAAA,GAAS,aAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
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 { GetPrefixResult as n, getPrefix as r, GetPrefixOptions as t };
|
|
68
|
+
//# sourceMappingURL=getPrefix-X9XKkrZD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrefix-X9XKkrZD.d.ts","names":[],"sources":["../../src/localization/getPrefix.ts"],"mappings":";;;;;KAMY,gBAAA;EACV,aAAA,GAAgB,aAAA;EAChB,IAAA,GAAO,aAAA;AAAA;AAAA,KAGG,eAAA;EAHU;;;;;;;EAWpB,MAAA;EARyB;;;;;;;EAgBzB,YAAA,EAAc,MAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoCH,SAAA,GACX,MAAA,EAAQ,aAAA,cACR,OAAA;EACE,aAAA,GAAgB,aAAA;EAChB,OAAA,GAAU,aAAA;EACV,IAAA,GAAO,aAAA;AAAA,MAER,eAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { v as NodeProps } from "./index-BnEeKNKW.js";
|
|
2
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
3
|
+
|
|
4
|
+
//#region src/deepTransformPlugins/getReplacedValuesContent.d.ts
|
|
5
|
+
declare const getReplacedValuesContent: (node: ContentNode, value: string | number | boolean, nodeProps: NodeProps) => any;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getReplacedValuesContent as t };
|
|
8
|
+
//# sourceMappingURL=getReplacedValuesContent-BvL25pdt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReplacedValuesContent-BvL25pdt.d.ts","names":[],"sources":["../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":";;;;cA8Da,wBAAA,GACX,IAAA,EAAM,WAAA,EACN,KAAA,6BACA,SAAA,EAAW,SAAA"}
|