@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,28 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/file/file.d.ts
|
|
4
|
-
type FileContentConstructor<T extends Record<string, any> = {}> = TypedNodeModel<NodeType.File, string, T>;
|
|
5
|
-
type FileContent = FileContentConstructor<{
|
|
6
|
-
content: string;
|
|
7
|
-
fixedPath?: string;
|
|
8
|
-
}>;
|
|
9
|
-
declare const fileContent: (path: string, callerDir: string, baseDir: string) => FileContent;
|
|
10
|
-
/**
|
|
11
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
12
|
-
*
|
|
13
|
-
* Allow identify the usage of an external resource.
|
|
14
|
-
*
|
|
15
|
-
* Usage:
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* file('/path/to/file.md') // absolute path
|
|
19
|
-
*
|
|
20
|
-
* // or
|
|
21
|
-
*
|
|
22
|
-
* file('path/to/file.md') // relative path
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare const file: (path: string) => FileContent;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { FileContent, FileContentConstructor, file, fileContent };
|
|
28
|
-
//# sourceMappingURL=file.d.ts.map
|
|
1
|
+
import { i as fileContent, n as FileContentConstructor, r as file, t as FileContent } from "../../file-C3q8xvQb.js";
|
|
2
|
+
export { FileContent, FileContentConstructor, file, fileContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as fileContent, n as FileContentConstructor, r as file, t as FileContent } from "../../file-C3q8xvQb.js";
|
|
2
2
|
export { FileContent, FileContentConstructor, file, fileContent };
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/gender/gender.d.ts
|
|
4
|
-
type Gender = 'male' | 'female' | 'fallback';
|
|
5
|
-
type GenderContentStates<Content> = Record<`${Gender}`, Content> & {
|
|
6
|
-
fallback?: Content;
|
|
7
|
-
};
|
|
8
|
-
type GenderContent<Content = unknown> = TypedNodeModel<NodeType.Gender, GenderContentStates<Content>>;
|
|
9
|
-
/**
|
|
10
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
11
|
-
*
|
|
12
|
-
* Allow to pick a content based on a gender.
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* gender({
|
|
18
|
-
* 'true': 'The gender is validated',
|
|
19
|
-
* 'false': 'The gender is not validated',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* The last key provided will be used as the fallback value.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
declare const gender: <Content>(content?: GenderContentStates<Content>) => TypedNodeModel<NodeType.Gender, GenderContentStates<Content>, {}>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { Gender, GenderContent, GenderContentStates, gender };
|
|
29
|
-
//# sourceMappingURL=gender.d.ts.map
|
|
1
|
+
import { i as gender, n as GenderContent, r as GenderContentStates, t as Gender } from "../../gender-Dd39Ijmf.js";
|
|
2
|
+
export { Gender, GenderContent, GenderContentStates, gender };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as gender, n as GenderContent, r as GenderContentStates, t as Gender } from "../../gender-Dd39Ijmf.js";
|
|
2
2
|
export { Gender, GenderContent, GenderContentStates, gender };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/html/html.d.ts
|
|
4
|
-
type PropsType = 'number' | 'string' | 'node';
|
|
5
|
-
type ComponentName = string;
|
|
6
|
-
type HTMLContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<NodeType.HTML, Content, T>;
|
|
7
|
-
type HTMLContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = HTMLContentConstructor<Content, {
|
|
8
|
-
tags: string[] | Components;
|
|
9
|
-
}>;
|
|
10
|
-
/**
|
|
11
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
12
|
-
*
|
|
13
|
-
* Allow to parse HTML/JSX-like strings and replace tags with components during interpretation.
|
|
14
|
-
*
|
|
15
|
-
* Usage:
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* html('Hello <b>World</b>')
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
declare const html: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => HTMLContent<Content, Components>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { HTMLContent, HTMLContentConstructor, html };
|
|
25
|
-
//# sourceMappingURL=html.d.ts.map
|
|
1
|
+
import { n as HTMLContentConstructor, r as html, t as HTMLContent } from "../../html-Dn6KrpJ3.js";
|
|
2
|
+
export { HTMLContent, HTMLContentConstructor, html };
|
|
@@ -1,115 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* List of standard HTML tags to provide as default components.
|
|
4
|
-
* These allow users to use standard HTML tags in their html() content
|
|
5
|
-
* without having to pass them explicitly.
|
|
6
|
-
*
|
|
7
|
-
* Used by framework-specific plugins (react-intlayer, vue-intlayer, etc.)
|
|
8
|
-
* to create default HTML tag components.
|
|
9
|
-
*/
|
|
10
|
-
declare const HTML_TAGS: readonly ["html", "head", "body", "main", "header", "footer", "nav", "aside", "article", "section", "div", "span", "h1", "h2", "h3", "h4", "h5", "h6", "p", "a", "strong", "b", "em", "i", "u", "s", "del", "ins", "mark", "small", "sub", "sup", "code", "pre", "blockquote", "q", "cite", "abbr", "address", "time", "kbd", "samp", "var", "ul", "ol", "li", "dl", "dt", "dd", "table", "thead", "tbody", "tfoot", "tr", "th", "td", "caption", "colgroup", "col", "form", "input", "textarea", "button", "select", "option", "optgroup", "label", "fieldset", "legend", "datalist", "output", "progress", "meter", "img", "video", "audio", "source", "track", "picture", "figure", "figcaption", "iframe", "embed", "object", "canvas", "svg", "details", "summary", "dialog", "br", "hr", "wbr", "ruby", "rt", "rp", "bdi", "bdo", "data", "template", "slot"];
|
|
11
|
-
type HTMLTagsType = {
|
|
12
|
-
html: HTMLHtmlElement;
|
|
13
|
-
head: HTMLHeadElement;
|
|
14
|
-
body: HTMLBodyElement;
|
|
15
|
-
main: HTMLElement;
|
|
16
|
-
header: HTMLElement;
|
|
17
|
-
footer: HTMLElement;
|
|
18
|
-
nav: HTMLElement;
|
|
19
|
-
aside: HTMLElement;
|
|
20
|
-
article: HTMLElement;
|
|
21
|
-
section: HTMLElement;
|
|
22
|
-
div: HTMLDivElement;
|
|
23
|
-
span: HTMLSpanElement;
|
|
24
|
-
h1: HTMLHeadingElement;
|
|
25
|
-
h2: HTMLHeadingElement;
|
|
26
|
-
h3: HTMLHeadingElement;
|
|
27
|
-
h4: HTMLHeadingElement;
|
|
28
|
-
h5: HTMLHeadingElement;
|
|
29
|
-
h6: HTMLHeadingElement;
|
|
30
|
-
p: HTMLParagraphElement;
|
|
31
|
-
a: HTMLAnchorElement;
|
|
32
|
-
strong: HTMLElement;
|
|
33
|
-
b: HTMLElement;
|
|
34
|
-
em: HTMLElement;
|
|
35
|
-
i: HTMLElement;
|
|
36
|
-
u: HTMLElement;
|
|
37
|
-
s: HTMLElement;
|
|
38
|
-
del: HTMLModElement;
|
|
39
|
-
ins: HTMLModElement;
|
|
40
|
-
mark: HTMLElement;
|
|
41
|
-
small: HTMLElement;
|
|
42
|
-
sub: HTMLElement;
|
|
43
|
-
sup: HTMLElement;
|
|
44
|
-
code: HTMLElement;
|
|
45
|
-
pre: HTMLPreElement;
|
|
46
|
-
blockquote: HTMLQuoteElement;
|
|
47
|
-
q: HTMLQuoteElement;
|
|
48
|
-
cite: HTMLElement;
|
|
49
|
-
abbr: HTMLElement;
|
|
50
|
-
address: HTMLElement;
|
|
51
|
-
time: HTMLTimeElement;
|
|
52
|
-
kbd: HTMLElement;
|
|
53
|
-
samp: HTMLElement;
|
|
54
|
-
var: HTMLElement;
|
|
55
|
-
ul: HTMLUListElement;
|
|
56
|
-
ol: HTMLOListElement;
|
|
57
|
-
li: HTMLLIElement;
|
|
58
|
-
dl: HTMLDListElement;
|
|
59
|
-
dt: HTMLElement;
|
|
60
|
-
dd: HTMLElement;
|
|
61
|
-
table: HTMLTableElement;
|
|
62
|
-
thead: HTMLTableSectionElement;
|
|
63
|
-
tbody: HTMLTableSectionElement;
|
|
64
|
-
tfoot: HTMLTableSectionElement;
|
|
65
|
-
tr: HTMLTableRowElement;
|
|
66
|
-
th: HTMLTableCellElement;
|
|
67
|
-
td: HTMLTableCellElement;
|
|
68
|
-
caption: HTMLTableCaptionElement;
|
|
69
|
-
colgroup: HTMLTableColElement;
|
|
70
|
-
col: HTMLTableColElement;
|
|
71
|
-
form: HTMLFormElement;
|
|
72
|
-
input: HTMLInputElement;
|
|
73
|
-
textarea: HTMLTextAreaElement;
|
|
74
|
-
button: HTMLButtonElement;
|
|
75
|
-
select: HTMLSelectElement;
|
|
76
|
-
option: HTMLOptionElement;
|
|
77
|
-
optgroup: HTMLOptGroupElement;
|
|
78
|
-
label: HTMLLabelElement;
|
|
79
|
-
fieldset: HTMLFieldSetElement;
|
|
80
|
-
legend: HTMLLegendElement;
|
|
81
|
-
datalist: HTMLDataListElement;
|
|
82
|
-
output: HTMLOutputElement;
|
|
83
|
-
progress: HTMLProgressElement;
|
|
84
|
-
meter: HTMLMeterElement;
|
|
85
|
-
img: HTMLImageElement;
|
|
86
|
-
video: HTMLVideoElement;
|
|
87
|
-
audio: HTMLAudioElement;
|
|
88
|
-
source: HTMLSourceElement;
|
|
89
|
-
track: HTMLTrackElement;
|
|
90
|
-
picture: HTMLPictureElement;
|
|
91
|
-
figure: HTMLElement;
|
|
92
|
-
figcaption: HTMLElement;
|
|
93
|
-
iframe: HTMLIFrameElement;
|
|
94
|
-
embed: HTMLEmbedElement;
|
|
95
|
-
object: HTMLObjectElement;
|
|
96
|
-
canvas: HTMLCanvasElement;
|
|
97
|
-
svg: SVGSVGElement;
|
|
98
|
-
details: HTMLDetailsElement;
|
|
99
|
-
summary: HTMLElement;
|
|
100
|
-
dialog: HTMLDialogElement;
|
|
101
|
-
br: HTMLBRElement;
|
|
102
|
-
hr: HTMLHRElement;
|
|
103
|
-
wbr: HTMLElement;
|
|
104
|
-
ruby: HTMLElement;
|
|
105
|
-
rt: HTMLElement;
|
|
106
|
-
rp: HTMLElement;
|
|
107
|
-
bdi: HTMLElement;
|
|
108
|
-
bdo: HTMLElement;
|
|
109
|
-
data: HTMLDataElement;
|
|
110
|
-
template: HTMLTemplateElement;
|
|
111
|
-
slot: HTMLSlotElement;
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
114
|
-
export { HTMLTagsType, HTML_TAGS };
|
|
115
|
-
//# sourceMappingURL=htmlTags.d.ts.map
|
|
1
|
+
import { n as HTML_TAGS, t as HTMLTagsType } from "../../htmlTags-YxTtVUx6.js";
|
|
2
|
+
export { HTMLTagsType, HTML_TAGS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as HTMLContentConstructor, r as html, t as HTMLContent } from "../../html-Dn6KrpJ3.js";
|
|
2
|
+
import { n as HTML_TAGS, t as HTMLTagsType } from "../../htmlTags-YxTtVUx6.js";
|
|
3
|
+
import { i as validateHTML, n as HTMLValidationResult, r as VOID_ELEMENTS, t as HTMLValidationIssue } from "../../validateHTML-U7UKTtFd.js";
|
|
4
4
|
export { HTMLContent, HTMLContentConstructor, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_TAGS, VOID_ELEMENTS, html, validateHTML };
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type HTMLValidationIssue = {
|
|
4
|
-
type: 'error' | 'warning';
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
type HTMLValidationResult = {
|
|
8
|
-
valid: boolean;
|
|
9
|
-
issues: HTMLValidationIssue[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Validates that HTML tags in `content` are properly opened, nested, and closed.
|
|
13
|
-
* Returns structured issues instead of logging to the console.
|
|
14
|
-
*
|
|
15
|
-
* False-positive exclusions:
|
|
16
|
-
* - Tags whose attribute string starts with `://` are URL autolinks (e.g. `<https://…>`).
|
|
17
|
-
*/
|
|
18
|
-
declare const validateHTML: (content: string) => HTMLValidationResult;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { HTMLValidationIssue, HTMLValidationResult, VOID_ELEMENTS, validateHTML };
|
|
21
|
-
//# sourceMappingURL=validateHTML.d.ts.map
|
|
1
|
+
import { i as validateHTML, n as HTMLValidationResult, r as VOID_ELEMENTS, t as HTMLValidationIssue } from "../../validateHTML-U7UKTtFd.js";
|
|
2
|
+
export { HTMLValidationIssue, HTMLValidationResult, VOID_ELEMENTS, validateHTML };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { getInsertionValues } from "
|
|
9
|
-
import {
|
|
10
|
-
import { getMarkdownMetadata } from "
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
export { ConditionContent, ConditionContentStates, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, FileContent, FileContentConstructor, Gender, GenderContent, GenderContentStates, HTMLContent, HTMLContentConstructor, HTMLTagsType, HTMLValidationIssue, HTMLValidationResult, HTML_TAGS, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor,
|
|
1
|
+
import { n as ConditionContentStates, r as condition, t as ConditionContent } from "../condition-BDUtoh_1.js";
|
|
2
|
+
import { i as enumeration, n as EnumerationContent, r as EnumerationContentState, t as EnterFormat } from "../enumeration-CtuvB5Zz.js";
|
|
3
|
+
import { i as fileContent, n as FileContentConstructor, r as file, t as FileContent } from "../file-C3q8xvQb.js";
|
|
4
|
+
import { i as gender, n as GenderContent, r as GenderContentStates, t as Gender } from "../gender-Dd39Ijmf.js";
|
|
5
|
+
import { n as HTMLContentConstructor, r as html, t as HTMLContent } from "../html-Dn6KrpJ3.js";
|
|
6
|
+
import { n as HTML_TAGS, t as HTMLTagsType } from "../htmlTags-YxTtVUx6.js";
|
|
7
|
+
import { i as validateHTML, n as HTMLValidationResult, r as VOID_ELEMENTS, t as HTMLValidationIssue } from "../validateHTML-U7UKTtFd.js";
|
|
8
|
+
import { t as getInsertionValues } from "../getInsertionValues-Cu9IdbuE.js";
|
|
9
|
+
import { n as InsertionContentConstructor, r as insertion, t as InsertionContent } from "../insertion-M5fwK-29.js";
|
|
10
|
+
import { t as getMarkdownMetadata } from "../getMarkdownMetadata-Bf1S1NQ0.js";
|
|
11
|
+
import { n as MarkdownContentConstructor, r as markdown, t as MarkdownContent } from "../markdown-MzfikrI1.js";
|
|
12
|
+
import { n as validateMarkdown, t as MarkdownValidationResult } from "../validateMarkdown-BUaTDDIu.js";
|
|
13
|
+
import { F as NestedContentState, I as ValidDotPathsFor, L as nesting, N as DotPath, P as NestedContent } from "../index-BnEeKNKW.js";
|
|
14
|
+
import { n as translation, t as TranslationContent } from "../translation-CiC-Avxc.js";
|
|
15
|
+
export { ConditionContent, ConditionContentStates, DotPath, EnterFormat, EnumerationContent, EnumerationContentState, FileContent, FileContentConstructor, Gender, GenderContent, GenderContentStates, HTMLContent, HTMLContentConstructor, HTMLTagsType, HTMLValidationIssue, HTMLValidationIssue as MarkdownValidationIssue, HTMLValidationResult, HTML_TAGS, InsertionContent, InsertionContentConstructor, MarkdownContent, MarkdownContentConstructor, MarkdownValidationResult, NestedContent, NestedContentState, TranslationContent, VOID_ELEMENTS, ValidDotPathsFor, condition as cond, enumeration as enu, file, fileContent, gender, getInsertionValues, getMarkdownMetadata, html, insertion as insert, markdown as md, nesting as nest, translation as t, validateHTML, validateMarkdown };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#endregion
|
|
4
|
-
export { getInsertionValues };
|
|
5
|
-
//# sourceMappingURL=getInsertionValues.d.ts.map
|
|
1
|
+
import { t as getInsertionValues } from "../../getInsertionValues-Cu9IdbuE.js";
|
|
2
|
+
export { getInsertionValues };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { getInsertionValues } from "
|
|
2
|
-
import {
|
|
1
|
+
import { t as getInsertionValues } from "../../getInsertionValues-Cu9IdbuE.js";
|
|
2
|
+
import { n as InsertionContentConstructor, r as insertion, t as InsertionContent } from "../../insertion-M5fwK-29.js";
|
|
3
3
|
export { InsertionContent, InsertionContentConstructor, getInsertionValues, insertion as insert };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/insertion/insertion.d.ts
|
|
4
|
-
type InsertionContentConstructor<Content = unknown, T extends Record<string, any> = {}> = TypedNodeModel<NodeType.Insertion, Content, T>;
|
|
5
|
-
type InsertionContent<Content = unknown> = InsertionContentConstructor<Content, {
|
|
6
|
-
fields: string[];
|
|
7
|
-
}>;
|
|
8
|
-
/**
|
|
9
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
10
|
-
*
|
|
11
|
-
* Allow to identify insertions inside a content.
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* insertion('Hi, my name is {{name}} and I am {{age}} years old.')
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
declare const insertion: <Content = unknown>(content: Content) => InsertionContent<Content>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { InsertionContent, InsertionContentConstructor, insertion as insert };
|
|
23
|
-
//# sourceMappingURL=insertion.d.ts.map
|
|
1
|
+
import { n as InsertionContentConstructor, r as insertion, t as InsertionContent } from "../../insertion-M5fwK-29.js";
|
|
2
|
+
export { InsertionContent, InsertionContentConstructor, insertion as insert };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#endregion
|
|
4
|
-
export { getMarkdownMetadata };
|
|
5
|
-
//# sourceMappingURL=getMarkdownMetadata.d.ts.map
|
|
1
|
+
import { t as getMarkdownMetadata } from "../../getMarkdownMetadata-Bf1S1NQ0.js";
|
|
2
|
+
export { getMarkdownMetadata };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTMLValidationIssue } from "
|
|
2
|
-
import { getMarkdownMetadata } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as HTMLValidationIssue } from "../../validateHTML-U7UKTtFd.js";
|
|
2
|
+
import { t as getMarkdownMetadata } from "../../getMarkdownMetadata-Bf1S1NQ0.js";
|
|
3
|
+
import { n as MarkdownContentConstructor, r as markdown, t as MarkdownContent } from "../../markdown-MzfikrI1.js";
|
|
4
|
+
import { n as validateMarkdown, t as MarkdownValidationResult } from "../../validateMarkdown-BUaTDDIu.js";
|
|
5
5
|
export { MarkdownContent, MarkdownContentConstructor, HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, getMarkdownMetadata, markdown as md, validateMarkdown };
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/transpiler/markdown/markdown.d.ts
|
|
4
|
-
type PropsType = 'number' | 'string' | 'node';
|
|
5
|
-
type ComponentName = string;
|
|
6
|
-
type MarkdownContentConstructor<T extends Record<string, any> = {}, Content = unknown> = TypedNodeModel<NodeType.Markdown, Content, T>;
|
|
7
|
-
type MarkdownContent<Content = unknown, Components extends Record<ComponentName, PropsType> = Record<ComponentName, PropsType>> = MarkdownContentConstructor<{
|
|
8
|
-
metadata?: Record<string, any>;
|
|
9
|
-
tags?: string[] | Components;
|
|
10
|
-
}, Content>;
|
|
11
|
-
/**
|
|
12
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
13
|
-
*
|
|
14
|
-
* Allow to pick a content based on a quantity.
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
*
|
|
18
|
-
* ```ts
|
|
19
|
-
* markdown('## Hello world!');
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
declare const markdown: <Components extends Record<string, any> = Record<string, any>, Content = unknown>(content: Content, components?: Components) => MarkdownContent<Content, Components>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { MarkdownContent, MarkdownContentConstructor, markdown as md };
|
|
26
|
-
//# sourceMappingURL=markdown.d.ts.map
|
|
1
|
+
import { n as MarkdownContentConstructor, r as markdown, t as MarkdownContent } from "../../markdown-MzfikrI1.js";
|
|
2
|
+
export { MarkdownContent, MarkdownContentConstructor, markdown as md };
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import { HTMLValidationIssue } from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type MarkdownValidationResult = {
|
|
5
|
-
valid: boolean;
|
|
6
|
-
issues: HTMLValidationIssue[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Validates markdown content for structural correctness:
|
|
10
|
-
* - All fenced code blocks are properly closed
|
|
11
|
-
* - HTML tags are properly nested and closed
|
|
12
|
-
*
|
|
13
|
-
* HTML inside code blocks is excluded from HTML validation.
|
|
14
|
-
*/
|
|
15
|
-
declare const validateMarkdown: (content: string) => MarkdownValidationResult;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, validateMarkdown };
|
|
18
|
-
//# sourceMappingURL=validateMarkdown.d.ts.map
|
|
1
|
+
import { t as HTMLValidationIssue } from "../../validateHTML-U7UKTtFd.js";
|
|
2
|
+
import { n as validateMarkdown, t as MarkdownValidationResult } from "../../validateMarkdown-BUaTDDIu.js";
|
|
3
|
+
export { HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, validateMarkdown };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as NestedContentState, I as ValidDotPathsFor, L as nesting, N as DotPath, P as NestedContent } from "../../index-BnEeKNKW.js";
|
|
2
2
|
export { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nesting as nest };
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { NodeType, TypedNodeModel } from "@intlayer/types/nodeType";
|
|
4
|
-
|
|
5
|
-
//#region src/transpiler/nesting/nesting.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Recursively builds dot-notation strings for all valid paths in T.
|
|
8
|
-
* Example:
|
|
9
|
-
* type X = { a: { b: { c: string }}, d: number };
|
|
10
|
-
* DotPath<X> = "a" | "a.b" | "a.b.c" | "d"
|
|
11
|
-
*/
|
|
12
|
-
type DotPath<T> = T extends object ? { [K in keyof T & (string | number)]: T[K] extends object ? // Either just K, or K + '.' + deeper path
|
|
13
|
-
`${K}` | `${K}.${DotPath<T[K]>}` : `${K}` }[keyof T & (string | number)] : never;
|
|
14
|
-
type DeepReplace<T, From, To> = T extends From ? To : T extends object ? { [K in keyof T]: DeepReplace<T[K], From, To> } : T;
|
|
15
|
-
/** Build all valid dot-notation strings for a dictionary entry. */
|
|
16
|
-
type ValidDotPathsFor<K extends DictionaryKeys> = DotPath<DeepReplace<DeepTransformContent<DictionaryRegistryContent<K>>, {
|
|
17
|
-
type: any;
|
|
18
|
-
props: any;
|
|
19
|
-
key: any;
|
|
20
|
-
}, string>>;
|
|
21
|
-
type NestedContentState<K extends DictionaryKeys> = {
|
|
22
|
-
dictionaryKey: K;
|
|
23
|
-
/**
|
|
24
|
-
* Path must match existing keys in DictionaryRegistryContent<K>.
|
|
25
|
-
* Can be either:
|
|
26
|
-
* - "dot.dot.dot" format
|
|
27
|
-
*/
|
|
28
|
-
path?: ValidDotPathsFor<K>;
|
|
29
|
-
};
|
|
30
|
-
type NestedContent<K extends DictionaryKeys = never> = TypedNodeModel<NodeType.Nested, NestedContentState<K>>;
|
|
31
|
-
/**
|
|
32
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
33
|
-
*
|
|
34
|
-
* Allow to extract the content of another dictionary and nest it in the current dictionary.
|
|
35
|
-
*
|
|
36
|
-
* Usage:
|
|
37
|
-
*
|
|
38
|
-
* ```ts
|
|
39
|
-
* nest("dictionaryKey");
|
|
40
|
-
* nest("dictionaryKey", "path.to.content");
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* The order of the keys will define the priority of the content.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
declare const nesting: <K extends DictionaryKeys>(dictionaryKey: K, path?: ValidDotPathsFor<K>) => NestedContent<K>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nesting as nest };
|
|
49
|
-
//# sourceMappingURL=nesting.d.ts.map
|
|
1
|
+
import { F as NestedContentState, I as ValidDotPathsFor, L as nesting, N as DotPath, P as NestedContent } from "../../index-BnEeKNKW.js";
|
|
2
|
+
export { DotPath, NestedContent, NestedContentState, ValidDotPathsFor, nesting as nest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as translation, t as TranslationContent } from "../../translation-CiC-Avxc.js";
|
|
2
2
|
export { TranslationContent, translation as t };
|
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/transpiler/translation/translation.d.ts
|
|
5
|
-
type TranslationContent<Content = unknown, RecordContent extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>> = TypedNodeModel<NodeType.Translation, RecordContent>;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* Function intended to be used to build intlayer dictionaries.
|
|
9
|
-
*
|
|
10
|
-
* Get the content of a translation based on the locale.
|
|
11
|
-
*
|
|
12
|
-
* Usage:
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* translation<string>({
|
|
16
|
-
* "en": "Hello",
|
|
17
|
-
* "fr": "Bonjour",
|
|
18
|
-
* // ... any other available locale
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* Using TypeScript:
|
|
23
|
-
* - this function require each locale to be defined if defined in the project configuration.
|
|
24
|
-
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
25
|
-
*/
|
|
26
|
-
declare const translation: <Content = unknown, ContentRecord extends StrictModeLocaleMap<Content> = StrictModeLocaleMap<Content>>(content: ContentRecord) => TypedNodeModel<NodeType.Translation, ContentRecord, {
|
|
27
|
-
nodeType: "translation" | NodeType.Translation;
|
|
28
|
-
} & {
|
|
29
|
-
translation: ContentRecord;
|
|
30
|
-
}>;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { TranslationContent, translation as t };
|
|
33
|
-
//# sourceMappingURL=translation.d.ts.map
|
|
1
|
+
import { n as translation, t as TranslationContent } from "../../translation-CiC-Avxc.js";
|
|
2
|
+
export { TranslationContent, translation as t };
|