@intlayer/core 9.7.0 → 9.7.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 +1 -2
- package/dist/cjs/deepTransformPlugins/getEditedContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getFilterMissingTranslationsContent.cjs +5 -6
- package/dist/cjs/deepTransformPlugins/getFilterTranslationsOnlyContent.cjs +4 -5
- package/dist/cjs/deepTransformPlugins/getFilteredLocalesContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getLocalizedContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getMaskContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getMissingLocalesContent.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getMultilingualDictionary.cjs +3 -4
- package/dist/cjs/deepTransformPlugins/getReplacedValuesContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/getSplittedContent.cjs +2 -3
- package/dist/cjs/deepTransformPlugins/index.cjs +11 -11
- package/dist/cjs/deepTransformPlugins/insertContentInDictionary.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs +7 -4
- package/dist/cjs/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -1
- package/dist/cjs/dictionaryManipulator/getDefaultNode.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getEmptyNode.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getNestedDictionaryReferences.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/getNodeChildren.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/getNodeType.cjs +3 -4
- package/dist/cjs/dictionaryManipulator/index.cjs +31 -21
- package/dist/cjs/dictionaryManipulator/mergeDictionaries.cjs +3 -4
- package/dist/cjs/dictionaryManipulator/mergeQualifiedDictionaries.cjs +4 -5
- package/dist/cjs/dictionaryManipulator/normalizeDictionary.cjs +4 -5
- package/dist/cjs/dictionaryManipulator/orderDictionaries.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/plainDynamicLoader.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/preloadedDynamicLoader.cjs +7 -3
- package/dist/cjs/dictionaryManipulator/qualifiedDictionary.cjs +1 -2
- package/dist/cjs/dictionaryManipulator/qualifiedDictionaryDeclaration.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/qualifiedDynamicLoader.cjs +8 -4
- package/dist/cjs/dictionaryManipulator/removeContentNodeByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/renameContentNodeByKeyPath.cjs +2 -3
- package/dist/cjs/dictionaryManipulator/updateNodeChildren.cjs +2 -3
- package/dist/cjs/formatters/compact.cjs +2 -3
- package/dist/cjs/formatters/currency.cjs +2 -3
- package/dist/cjs/formatters/date.cjs +2 -3
- package/dist/cjs/formatters/index.cjs +9 -9
- package/dist/cjs/formatters/list.cjs +2 -3
- package/dist/cjs/formatters/number.cjs +2 -3
- package/dist/cjs/formatters/percentage.cjs +2 -3
- package/dist/cjs/formatters/relativeTime.cjs +2 -3
- package/dist/cjs/formatters/units.cjs +2 -3
- package/dist/cjs/index.cjs +129 -119
- package/dist/cjs/interpreter/dictionaryTransformCache.cjs +1 -2
- package/dist/cjs/interpreter/getCondition.cjs +1 -2
- package/dist/cjs/interpreter/getContent/deepTransform.cjs +2 -3
- package/dist/cjs/interpreter/getContent/getContent.cjs +3 -4
- package/dist/cjs/interpreter/getContent/index.cjs +3 -3
- package/dist/cjs/interpreter/getContent/plugins.cjs +17 -16
- package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
- package/dist/cjs/interpreter/getDictionary.cjs +5 -6
- package/dist/cjs/interpreter/getDictionaryAsync.cjs +7 -8
- package/dist/cjs/interpreter/getEnumeration.cjs +1 -2
- package/dist/cjs/interpreter/getGender.cjs +1 -2
- package/dist/cjs/interpreter/getHTML.cjs +1 -2
- package/dist/cjs/interpreter/getInsertion.cjs +1 -2
- package/dist/cjs/interpreter/getIntlayer.cjs +2 -3
- package/dist/cjs/interpreter/getIntlayerAsync.cjs +3 -4
- package/dist/cjs/interpreter/getNesting.cjs +2 -3
- package/dist/cjs/interpreter/getNesting.optimized.cjs +2 -3
- package/dist/cjs/interpreter/getPlural.cjs +2 -3
- package/dist/cjs/interpreter/getSelect.cjs +1 -2
- package/dist/cjs/interpreter/getTranslation.cjs +1 -2
- package/dist/cjs/interpreter/index.cjs +20 -20
- package/dist/cjs/interpreter/interpolableNode.cjs +3 -4
- package/dist/cjs/interpreter/resolveInterpreterLocale.cjs +2 -3
- package/dist/cjs/interpreter/splitAndJoinInsertion.cjs +1 -2
- package/dist/cjs/localization/comparePaths.cjs +3 -4
- package/dist/cjs/localization/domainUtils.cjs +1 -2
- package/dist/cjs/localization/generateSitemap.cjs +4 -5
- package/dist/cjs/localization/getBrowserLocale.cjs +3 -4
- package/dist/cjs/localization/getCanonicalPath.cjs +2 -3
- package/dist/cjs/localization/getHTMLTextDir.cjs +1 -2
- package/dist/cjs/localization/getLocale.cjs +4 -5
- package/dist/cjs/localization/getLocaleFromPath.cjs +3 -4
- package/dist/cjs/localization/getLocaleFromRequest.cjs +5 -6
- package/dist/cjs/localization/getLocaleLang.cjs +1 -2
- package/dist/cjs/localization/getLocaleName.cjs +2 -3
- package/dist/cjs/localization/getLocalizedPath.cjs +6 -7
- package/dist/cjs/localization/getLocalizedUrl.cjs +5 -6
- package/dist/cjs/localization/getMultilingualUrls.cjs +3 -4
- package/dist/cjs/localization/getPathWithoutLocale.cjs +2 -3
- package/dist/cjs/localization/getPrefix.cjs +2 -3
- package/dist/cjs/localization/index.cjs +24 -24
- package/dist/cjs/localization/localeDetector.cjs +2 -3
- package/dist/cjs/localization/localeMapper.cjs +2 -3
- package/dist/cjs/localization/localeResolver.cjs +1 -2
- package/dist/cjs/localization/proxyMode.cjs +2 -3
- package/dist/cjs/localization/resolveBrowserLocale.cjs +5 -6
- package/dist/cjs/localization/rewriteMatch.cjs +1 -2
- package/dist/cjs/localization/rewriteUtils.cjs +3 -4
- package/dist/cjs/localization/validatePrefix.cjs +2 -3
- package/dist/cjs/markdown/compiler.cjs +6 -7
- package/dist/cjs/markdown/constants.cjs +1 -2
- package/dist/cjs/markdown/elementScanner.cjs +1 -2
- package/dist/cjs/markdown/index.cjs +8 -8
- package/dist/cjs/markdown/parser.cjs +3 -4
- package/dist/cjs/markdown/renderer.cjs +1 -2
- package/dist/cjs/markdown/utils.cjs +2 -3
- package/dist/cjs/messageFormat/ICU.cjs +9 -10
- package/dist/cjs/messageFormat/i18next.cjs +9 -10
- package/dist/cjs/messageFormat/index.cjs +6 -6
- package/dist/cjs/messageFormat/navigatePath.cjs +1 -2
- package/dist/cjs/messageFormat/po.cjs +8 -9
- package/dist/cjs/messageFormat/resolveMessage.cjs +9 -10
- package/dist/cjs/messageFormat/verify-icu-format.cjs +5 -6
- package/dist/cjs/messageFormat/vue-i18n.cjs +5 -6
- package/dist/cjs/transpiler/condition/condition.cjs +1 -2
- package/dist/cjs/transpiler/condition/index.cjs +1 -1
- package/dist/cjs/transpiler/enumeration/enumeration.cjs +1 -2
- package/dist/cjs/transpiler/enumeration/index.cjs +1 -1
- package/dist/cjs/transpiler/file/file.cjs +1 -2
- package/dist/cjs/transpiler/file/fileBrowser.cjs +1 -2
- package/dist/cjs/transpiler/file/index.cjs +1 -1
- package/dist/cjs/transpiler/gender/gender.cjs +1 -2
- package/dist/cjs/transpiler/gender/index.cjs +1 -1
- package/dist/cjs/transpiler/html/getHTMLCustomComponents.cjs +1 -2
- package/dist/cjs/transpiler/html/html.cjs +3 -4
- package/dist/cjs/transpiler/html/htmlTags.cjs +1 -2
- package/dist/cjs/transpiler/html/index.cjs +3 -3
- package/dist/cjs/transpiler/html/validateHTML.cjs +1 -2
- package/dist/cjs/transpiler/index.cjs +15 -15
- package/dist/cjs/transpiler/insertion/getInsertionValues.cjs +1 -2
- package/dist/cjs/transpiler/insertion/index.cjs +2 -2
- package/dist/cjs/transpiler/insertion/insertion.cjs +2 -3
- package/dist/cjs/transpiler/markdown/getMarkdownMetadata.cjs +2 -3
- package/dist/cjs/transpiler/markdown/index.cjs +3 -3
- package/dist/cjs/transpiler/markdown/markdown.cjs +5 -6
- package/dist/cjs/transpiler/markdown/validateMarkdown.cjs +2 -3
- package/dist/cjs/transpiler/nesting/index.cjs +1 -1
- package/dist/cjs/transpiler/nesting/nesting.cjs +1 -2
- package/dist/cjs/transpiler/plural/index.cjs +1 -1
- package/dist/cjs/transpiler/plural/plural.cjs +1 -2
- package/dist/cjs/transpiler/select/index.cjs +1 -1
- package/dist/cjs/transpiler/select/select.cjs +1 -2
- package/dist/cjs/transpiler/translation/index.cjs +1 -1
- package/dist/cjs/transpiler/translation/translation.cjs +1 -2
- package/dist/cjs/utils/checkIsURLAbsolute.cjs +1 -2
- package/dist/cjs/utils/cookieExpiry.cjs +1 -2
- package/dist/cjs/utils/getCookie.cjs +1 -2
- package/dist/cjs/utils/index.cjs +9 -9
- package/dist/cjs/utils/intl.cjs +2 -3
- package/dist/cjs/utils/intlayerNodePrototype.cjs +1 -2
- package/dist/cjs/utils/isSameKeyPath.cjs +1 -2
- package/dist/cjs/utils/isValidReactElement.cjs +1 -2
- package/dist/cjs/utils/localeStorage.cjs +3 -4
- package/dist/cjs/utils/parseYaml.cjs +1 -2
- package/dist/cjs/utils/stringifyYaml.cjs +1 -2
- package/dist/esm/deepTransformPlugins/getEditedContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getFilterMissingTranslationsContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getFilterTranslationsOnlyContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +2 -3
- package/dist/esm/deepTransformPlugins/getMaskContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getMissingLocalesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getReplacedValuesContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/getSplittedContent.mjs +1 -2
- package/dist/esm/deepTransformPlugins/insertContentInDictionary.mjs +1 -2
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +6 -3
- package/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -1
- package/dist/esm/dictionaryManipulator/getDefaultNode.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getEmptyNode.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNestedDictionaryReferences.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNodeChildren.mjs +1 -2
- package/dist/esm/dictionaryManipulator/getNodeType.mjs +1 -2
- package/dist/esm/dictionaryManipulator/index.mjs +6 -6
- package/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +1 -2
- package/dist/esm/dictionaryManipulator/mergeQualifiedDictionaries.mjs +2 -3
- package/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +2 -3
- package/dist/esm/dictionaryManipulator/orderDictionaries.mjs +1 -2
- package/dist/esm/dictionaryManipulator/plainDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/preloadedDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDictionary.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDictionaryDeclaration.mjs +1 -2
- package/dist/esm/dictionaryManipulator/qualifiedDynamicLoader.mjs +1 -2
- package/dist/esm/dictionaryManipulator/removeContentNodeByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +1 -2
- package/dist/esm/dictionaryManipulator/updateNodeChildren.mjs +1 -2
- package/dist/esm/formatters/compact.mjs +1 -2
- package/dist/esm/formatters/currency.mjs +1 -2
- package/dist/esm/formatters/date.mjs +1 -2
- package/dist/esm/formatters/list.mjs +1 -2
- package/dist/esm/formatters/number.mjs +1 -2
- package/dist/esm/formatters/percentage.mjs +1 -2
- package/dist/esm/formatters/relativeTime.mjs +1 -2
- package/dist/esm/formatters/units.mjs +1 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/interpreter/dictionaryTransformCache.mjs +1 -2
- package/dist/esm/interpreter/getCondition.mjs +1 -2
- package/dist/esm/interpreter/getContent/deepTransform.mjs +1 -2
- 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 +6 -5
- package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
- package/dist/esm/interpreter/getDictionary.mjs +3 -4
- package/dist/esm/interpreter/getDictionaryAsync.mjs +5 -6
- package/dist/esm/interpreter/getEnumeration.mjs +1 -2
- package/dist/esm/interpreter/getGender.mjs +1 -2
- package/dist/esm/interpreter/getHTML.mjs +1 -2
- package/dist/esm/interpreter/getInsertion.mjs +1 -2
- package/dist/esm/interpreter/getIntlayer.mjs +1 -2
- package/dist/esm/interpreter/getIntlayerAsync.mjs +2 -3
- package/dist/esm/interpreter/getNesting.mjs +1 -2
- package/dist/esm/interpreter/getNesting.optimized.mjs +1 -2
- package/dist/esm/interpreter/getPlural.mjs +1 -2
- package/dist/esm/interpreter/getSelect.mjs +1 -2
- package/dist/esm/interpreter/getTranslation.mjs +1 -2
- package/dist/esm/interpreter/index.mjs +7 -7
- package/dist/esm/interpreter/interpolableNode.mjs +1 -2
- package/dist/esm/interpreter/resolveInterpreterLocale.mjs +1 -2
- package/dist/esm/interpreter/splitAndJoinInsertion.mjs +1 -2
- package/dist/esm/localization/comparePaths.mjs +1 -2
- package/dist/esm/localization/domainUtils.mjs +1 -2
- package/dist/esm/localization/generateSitemap.mjs +2 -3
- package/dist/esm/localization/getBrowserLocale.mjs +1 -2
- package/dist/esm/localization/getCanonicalPath.mjs +1 -2
- package/dist/esm/localization/getHTMLTextDir.mjs +1 -2
- package/dist/esm/localization/getLocale.mjs +2 -3
- package/dist/esm/localization/getLocaleFromPath.mjs +1 -2
- package/dist/esm/localization/getLocaleFromRequest.mjs +2 -3
- package/dist/esm/localization/getLocaleLang.mjs +1 -2
- package/dist/esm/localization/getLocaleName.mjs +1 -2
- package/dist/esm/localization/getLocalizedPath.mjs +3 -4
- package/dist/esm/localization/getLocalizedUrl.mjs +2 -3
- package/dist/esm/localization/getMultilingualUrls.mjs +2 -3
- package/dist/esm/localization/getPathWithoutLocale.mjs +1 -2
- package/dist/esm/localization/getPrefix.mjs +1 -2
- package/dist/esm/localization/index.mjs +10 -10
- package/dist/esm/localization/localeDetector.mjs +1 -2
- package/dist/esm/localization/localeMapper.mjs +1 -2
- package/dist/esm/localization/localeResolver.mjs +1 -2
- package/dist/esm/localization/proxyMode.mjs +1 -2
- package/dist/esm/localization/resolveBrowserLocale.mjs +2 -3
- package/dist/esm/localization/rewriteMatch.mjs +1 -2
- package/dist/esm/localization/rewriteUtils.mjs +2 -3
- package/dist/esm/localization/validatePrefix.mjs +1 -2
- package/dist/esm/markdown/compiler.mjs +2 -3
- package/dist/esm/markdown/constants.mjs +1 -2
- package/dist/esm/markdown/elementScanner.mjs +1 -2
- package/dist/esm/markdown/index.mjs +2 -2
- package/dist/esm/markdown/parser.mjs +1 -2
- package/dist/esm/markdown/renderer.mjs +1 -2
- package/dist/esm/markdown/utils.mjs +1 -2
- package/dist/esm/messageFormat/ICU.mjs +1 -2
- package/dist/esm/messageFormat/i18next.mjs +1 -2
- package/dist/esm/messageFormat/index.mjs +1 -1
- package/dist/esm/messageFormat/navigatePath.mjs +1 -2
- package/dist/esm/messageFormat/po.mjs +1 -2
- package/dist/esm/messageFormat/resolveMessage.mjs +2 -3
- package/dist/esm/messageFormat/verify-icu-format.mjs +1 -2
- package/dist/esm/messageFormat/vue-i18n.mjs +1 -2
- package/dist/esm/transpiler/condition/condition.mjs +1 -2
- package/dist/esm/transpiler/enumeration/enumeration.mjs +1 -2
- package/dist/esm/transpiler/file/file.mjs +1 -2
- package/dist/esm/transpiler/file/fileBrowser.mjs +1 -2
- package/dist/esm/transpiler/gender/gender.mjs +1 -2
- package/dist/esm/transpiler/html/getHTMLCustomComponents.mjs +1 -2
- package/dist/esm/transpiler/html/html.mjs +1 -2
- package/dist/esm/transpiler/html/htmlTags.mjs +1 -2
- package/dist/esm/transpiler/html/index.mjs +1 -1
- package/dist/esm/transpiler/html/validateHTML.mjs +1 -2
- package/dist/esm/transpiler/index.mjs +1 -1
- package/dist/esm/transpiler/insertion/getInsertionValues.mjs +1 -2
- package/dist/esm/transpiler/insertion/insertion.mjs +1 -2
- package/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs +1 -2
- package/dist/esm/transpiler/markdown/index.mjs +1 -1
- package/dist/esm/transpiler/markdown/markdown.mjs +1 -2
- package/dist/esm/transpiler/markdown/validateMarkdown.mjs +1 -2
- package/dist/esm/transpiler/nesting/nesting.mjs +1 -2
- package/dist/esm/transpiler/plural/plural.mjs +1 -2
- package/dist/esm/transpiler/select/select.mjs +1 -2
- package/dist/esm/transpiler/translation/translation.mjs +1 -2
- package/dist/esm/utils/checkIsURLAbsolute.mjs +1 -2
- package/dist/esm/utils/cookieExpiry.mjs +1 -2
- package/dist/esm/utils/getCookie.mjs +1 -2
- package/dist/esm/utils/index.mjs +4 -4
- package/dist/esm/utils/intl.mjs +1 -2
- package/dist/esm/utils/intlayerNodePrototype.mjs +1 -2
- package/dist/esm/utils/isSameKeyPath.mjs +1 -2
- package/dist/esm/utils/isValidReactElement.mjs +1 -2
- package/dist/esm/utils/localeStorage.mjs +1 -2
- package/dist/esm/utils/parseYaml.mjs +1 -2
- package/dist/esm/utils/stringifyYaml.mjs +1 -2
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getEditedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getLocalizedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMaskContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMissingLocalesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getMultilingualDictionary.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts +0 -2
- package/dist/types/deepTransformPlugins/getReplacedValuesContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts +1 -2
- package/dist/types/deepTransformPlugins/getSplittedContent.d.ts.map +1 -1
- package/dist/types/deepTransformPlugins/index.d.ts +1 -1
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts +0 -2
- package/dist/types/deepTransformPlugins/insertContentInDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNestedDictionaryReferences.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/getNodeType.d.ts +0 -2
- package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/index.d.ts +2 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/mergeDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/mergeQualifiedDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts +0 -2
- package/dist/types/dictionaryManipulator/normalizeDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +0 -2
- package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/preloadedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDictionaryDeclaration.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
- package/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts +0 -2
- package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts +0 -2
- package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
- package/dist/types/formatters/compact.d.ts +0 -2
- package/dist/types/formatters/compact.d.ts.map +1 -1
- package/dist/types/formatters/currency.d.ts +0 -2
- package/dist/types/formatters/currency.d.ts.map +1 -1
- package/dist/types/formatters/date.d.ts +0 -2
- package/dist/types/formatters/date.d.ts.map +1 -1
- package/dist/types/formatters/index.d.ts +1 -1
- package/dist/types/formatters/list.d.ts +0 -2
- package/dist/types/formatters/list.d.ts.map +1 -1
- package/dist/types/formatters/number.d.ts +0 -2
- package/dist/types/formatters/number.d.ts.map +1 -1
- package/dist/types/formatters/percentage.d.ts +0 -2
- package/dist/types/formatters/percentage.d.ts.map +1 -1
- package/dist/types/formatters/relativeTime.d.ts +1 -2
- package/dist/types/formatters/relativeTime.d.ts.map +1 -1
- package/dist/types/formatters/units.d.ts +0 -2
- package/dist/types/formatters/units.d.ts.map +1 -1
- package/dist/types/index.d.ts +8 -8
- package/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -2
- package/dist/types/interpreter/dictionaryTransformCache.d.ts.map +1 -1
- package/dist/types/interpreter/getCondition.d.ts +0 -2
- package/dist/types/interpreter/getCondition.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/deepTransform.d.ts +0 -2
- package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/getContent.d.ts +0 -2
- package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
- package/dist/types/interpreter/getContent/index.d.ts +1 -1
- package/dist/types/interpreter/getContent/plugins.d.ts +8 -5
- package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionary.d.ts +0 -2
- package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
- package/dist/types/interpreter/getDictionaryAsync.d.ts +1 -3
- package/dist/types/interpreter/getDictionaryAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getEnumeration.d.ts +0 -2
- package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
- package/dist/types/interpreter/getGender.d.ts +1 -2
- package/dist/types/interpreter/getGender.d.ts.map +1 -1
- package/dist/types/interpreter/getHTML.d.ts +1 -2
- package/dist/types/interpreter/getHTML.d.ts.map +1 -1
- package/dist/types/interpreter/getInsertion.d.ts +0 -2
- package/dist/types/interpreter/getInsertion.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayer.d.ts +0 -2
- package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
- package/dist/types/interpreter/getIntlayerAsync.d.ts +0 -2
- package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.d.ts +0 -2
- package/dist/types/interpreter/getNesting.d.ts.map +1 -1
- package/dist/types/interpreter/getNesting.optimized.d.ts +2 -4
- package/dist/types/interpreter/getNesting.optimized.d.ts.map +1 -1
- package/dist/types/interpreter/getPlural.d.ts +0 -2
- package/dist/types/interpreter/getPlural.d.ts.map +1 -1
- package/dist/types/interpreter/getSelect.d.ts +0 -2
- package/dist/types/interpreter/getSelect.d.ts.map +1 -1
- package/dist/types/interpreter/getTranslation.d.ts +0 -2
- package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
- package/dist/types/interpreter/index.d.ts +3 -3
- package/dist/types/interpreter/interpolableNode.d.ts +0 -2
- package/dist/types/interpreter/interpolableNode.d.ts.map +1 -1
- package/dist/types/interpreter/resolveInterpreterLocale.d.ts +0 -2
- package/dist/types/interpreter/resolveInterpreterLocale.d.ts.map +1 -1
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts +0 -2
- package/dist/types/interpreter/splitAndJoinInsertion.d.ts.map +1 -1
- package/dist/types/localization/comparePaths.d.ts +0 -2
- package/dist/types/localization/comparePaths.d.ts.map +1 -1
- package/dist/types/localization/domainUtils.d.ts +0 -2
- package/dist/types/localization/domainUtils.d.ts.map +1 -1
- package/dist/types/localization/generateSitemap.d.ts +0 -2
- package/dist/types/localization/generateSitemap.d.ts.map +1 -1
- package/dist/types/localization/getBrowserLocale.d.ts +1 -2
- package/dist/types/localization/getBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/getCanonicalPath.d.ts +0 -2
- package/dist/types/localization/getCanonicalPath.d.ts.map +1 -1
- package/dist/types/localization/getHTMLTextDir.d.ts +1 -2
- package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
- package/dist/types/localization/getLocale.d.ts +0 -2
- package/dist/types/localization/getLocale.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromPath.d.ts +0 -2
- package/dist/types/localization/getLocaleFromPath.d.ts.map +1 -1
- package/dist/types/localization/getLocaleFromRequest.d.ts +0 -2
- package/dist/types/localization/getLocaleFromRequest.d.ts.map +1 -1
- package/dist/types/localization/getLocaleLang.d.ts +0 -2
- package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
- package/dist/types/localization/getLocaleName.d.ts +0 -2
- package/dist/types/localization/getLocaleName.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedPath.d.ts +0 -2
- package/dist/types/localization/getLocalizedPath.d.ts.map +1 -1
- package/dist/types/localization/getLocalizedUrl.d.ts +0 -2
- package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
- package/dist/types/localization/getMultilingualUrls.d.ts +0 -2
- package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
- package/dist/types/localization/getPathWithoutLocale.d.ts +0 -2
- package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
- package/dist/types/localization/getPrefix.d.ts +0 -2
- package/dist/types/localization/getPrefix.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +1 -1
- package/dist/types/localization/localeDetector.d.ts +0 -2
- package/dist/types/localization/localeDetector.d.ts.map +1 -1
- package/dist/types/localization/localeMapper.d.ts +0 -2
- package/dist/types/localization/localeMapper.d.ts.map +1 -1
- package/dist/types/localization/localeResolver.d.ts +0 -2
- package/dist/types/localization/localeResolver.d.ts.map +1 -1
- package/dist/types/localization/proxyMode.d.ts +0 -2
- package/dist/types/localization/proxyMode.d.ts.map +1 -1
- package/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
- package/dist/types/localization/resolveBrowserLocale.d.ts.map +1 -1
- package/dist/types/localization/rewriteMatch.d.ts +0 -2
- package/dist/types/localization/rewriteMatch.d.ts.map +1 -1
- package/dist/types/localization/rewriteUtils.d.ts +1 -2
- package/dist/types/localization/rewriteUtils.d.ts.map +1 -1
- package/dist/types/localization/validatePrefix.d.ts +0 -2
- package/dist/types/localization/validatePrefix.d.ts.map +1 -1
- package/dist/types/markdown/compiler.d.ts +2 -3
- package/dist/types/markdown/compiler.d.ts.map +1 -1
- package/dist/types/markdown/constants.d.ts +0 -2
- package/dist/types/markdown/constants.d.ts.map +1 -1
- package/dist/types/markdown/elementScanner.d.ts +0 -2
- package/dist/types/markdown/elementScanner.d.ts.map +1 -1
- package/dist/types/markdown/index.d.ts +2 -2
- package/dist/types/markdown/parser.d.ts +0 -2
- package/dist/types/markdown/parser.d.ts.map +1 -1
- package/dist/types/markdown/renderer.d.ts +0 -2
- package/dist/types/markdown/renderer.d.ts.map +1 -1
- package/dist/types/markdown/types.d.ts +0 -2
- package/dist/types/markdown/types.d.ts.map +1 -1
- package/dist/types/markdown/utils.d.ts +1 -2
- package/dist/types/markdown/utils.d.ts.map +1 -1
- package/dist/types/messageFormat/ICU.d.ts +0 -2
- package/dist/types/messageFormat/ICU.d.ts.map +1 -1
- package/dist/types/messageFormat/i18next.d.ts +0 -2
- package/dist/types/messageFormat/i18next.d.ts.map +1 -1
- package/dist/types/messageFormat/navigatePath.d.ts +0 -2
- package/dist/types/messageFormat/navigatePath.d.ts.map +1 -1
- package/dist/types/messageFormat/po.d.ts +0 -2
- package/dist/types/messageFormat/po.d.ts.map +1 -1
- package/dist/types/messageFormat/resolveMessage.d.ts +0 -2
- package/dist/types/messageFormat/resolveMessage.d.ts.map +1 -1
- package/dist/types/messageFormat/vue-i18n.d.ts +0 -2
- package/dist/types/messageFormat/vue-i18n.d.ts.map +1 -1
- package/dist/types/transpiler/condition/condition.d.ts +0 -2
- package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
- package/dist/types/transpiler/enumeration/enumeration.d.ts +0 -2
- package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
- package/dist/types/transpiler/file/file.d.ts +0 -2
- package/dist/types/transpiler/file/file.d.ts.map +1 -1
- package/dist/types/transpiler/file/fileBrowser.d.ts +0 -2
- package/dist/types/transpiler/file/fileBrowser.d.ts.map +1 -1
- package/dist/types/transpiler/gender/gender.d.ts +0 -2
- package/dist/types/transpiler/gender/gender.d.ts.map +1 -1
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts +0 -2
- package/dist/types/transpiler/html/getHTMLCustomComponents.d.ts.map +1 -1
- package/dist/types/transpiler/html/html.d.ts +1 -2
- package/dist/types/transpiler/html/html.d.ts.map +1 -1
- package/dist/types/transpiler/html/htmlTags.d.ts +0 -2
- package/dist/types/transpiler/html/htmlTags.d.ts.map +1 -1
- package/dist/types/transpiler/html/validateHTML.d.ts +0 -2
- package/dist/types/transpiler/html/validateHTML.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts +0 -2
- package/dist/types/transpiler/insertion/getInsertionValues.d.ts.map +1 -1
- package/dist/types/transpiler/insertion/insertion.d.ts +0 -2
- package/dist/types/transpiler/insertion/insertion.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts +0 -2
- package/dist/types/transpiler/markdown/getMarkdownMetadata.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/markdown.d.ts +0 -2
- package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts +0 -2
- package/dist/types/transpiler/markdown/validateMarkdown.d.ts.map +1 -1
- package/dist/types/transpiler/nesting/nesting.d.ts +0 -2
- package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
- package/dist/types/transpiler/plural/plural.d.ts +0 -2
- package/dist/types/transpiler/plural/plural.d.ts.map +1 -1
- package/dist/types/transpiler/select/select.d.ts +0 -2
- package/dist/types/transpiler/select/select.d.ts.map +1 -1
- package/dist/types/transpiler/translation/translation.d.ts +0 -2
- package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
- package/dist/types/utils/checkIsURLAbsolute.d.ts +0 -2
- package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
- package/dist/types/utils/cookieExpiry.d.ts +0 -2
- package/dist/types/utils/cookieExpiry.d.ts.map +1 -1
- package/dist/types/utils/getCookie.d.ts +0 -2
- package/dist/types/utils/getCookie.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/intl.d.ts +0 -2
- package/dist/types/utils/intl.d.ts.map +1 -1
- package/dist/types/utils/intlayerNodePrototype.d.ts +0 -2
- package/dist/types/utils/intlayerNodePrototype.d.ts.map +1 -1
- package/dist/types/utils/isSameKeyPath.d.ts +0 -2
- package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
- package/dist/types/utils/isValidReactElement.d.ts +0 -2
- package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
- package/dist/types/utils/localeStorage.d.ts +0 -2
- package/dist/types/utils/localeStorage.d.ts.map +1 -1
- package/dist/types/utils/parseYaml.d.ts +0 -2
- package/dist/types/utils/parseYaml.d.ts.map +1 -1
- package/dist/types/utils/stringifyYaml.d.ts +0 -2
- package/dist/types/utils/stringifyYaml.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -2,7 +2,7 @@ import { getHTMLCustomComponents } from "./getHTMLCustomComponents.mjs";
|
|
|
2
2
|
import { validateHTML } from "./validateHTML.mjs";
|
|
3
3
|
import { HTML, formatNodeType } from "@intlayer/types/nodeType";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/transpiler/html/html.ts
|
|
6
6
|
/**
|
|
7
7
|
* Function intended to be used to build intlayer dictionaries.
|
|
8
8
|
*
|
|
@@ -37,6 +37,5 @@ const html = (content, components) => {
|
|
|
37
37
|
return formatNodeType(HTML, content, { tags: getComponents() });
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { html };
|
|
42
41
|
//# sourceMappingURL=html.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/transpiler/html/htmlTags.ts
|
|
2
2
|
/**
|
|
3
3
|
* List of standard HTML tags to provide as default components.
|
|
4
4
|
* These allow users to use standard HTML tags in their html() content
|
|
@@ -110,6 +110,5 @@ const HTML_TAGS = [
|
|
|
110
110
|
"slot"
|
|
111
111
|
];
|
|
112
112
|
|
|
113
|
-
//#endregion
|
|
114
113
|
export { HTML_TAGS };
|
|
115
114
|
//# sourceMappingURL=htmlTags.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VOID_HTML_ELEMENTS, validateHTML } from "./validateHTML.mjs";
|
|
2
1
|
import { html } from "./html.mjs";
|
|
3
2
|
import { HTML_TAGS } from "./htmlTags.mjs";
|
|
3
|
+
import { VOID_HTML_ELEMENTS, validateHTML } from "./validateHTML.mjs";
|
|
4
4
|
|
|
5
5
|
export { HTML_TAGS, VOID_HTML_ELEMENTS, html, validateHTML };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/transpiler/html/validateHTML.ts
|
|
2
2
|
const VOID_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
3
3
|
"area",
|
|
4
4
|
"base",
|
|
@@ -59,6 +59,5 @@ const validateHTML = (content) => {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
//#endregion
|
|
63
62
|
export { VOID_HTML_ELEMENTS, validateHTML };
|
|
64
63
|
//# sourceMappingURL=validateHTML.mjs.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_PLURAL_VARIABLE, plural } from "./plural/plural.mjs";
|
|
1
2
|
import { cond as condition } from "./condition/condition.mjs";
|
|
2
3
|
import { enu as enumeration } from "./enumeration/enumeration.mjs";
|
|
3
4
|
import { gender } from "./gender/gender.mjs";
|
|
@@ -10,7 +11,6 @@ import { getMarkdownMetadata } from "./markdown/getMarkdownMetadata.mjs";
|
|
|
10
11
|
import { validateMarkdown } from "./markdown/validateMarkdown.mjs";
|
|
11
12
|
import { md as markdown } from "./markdown/markdown.mjs";
|
|
12
13
|
import { nest as nesting } from "./nesting/nesting.mjs";
|
|
13
|
-
import { DEFAULT_PLURAL_VARIABLE, plural } from "./plural/plural.mjs";
|
|
14
14
|
import { select } from "./select/select.mjs";
|
|
15
15
|
import { t as translation } from "./translation/translation.mjs";
|
|
16
16
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// src/transpiler/insertion/getInsertionValues.ts
|
|
2
2
|
const getInsertionValues = (content) => {
|
|
3
3
|
const matches = [...content.matchAll(/{{\s*(.*?)\s*}}/g)];
|
|
4
4
|
if (matches.length === 0) return [];
|
|
5
5
|
return [...new Set(matches.map((match) => match[1].trim()))].filter(Boolean);
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
//#endregion
|
|
9
8
|
export { getInsertionValues };
|
|
10
9
|
//# sourceMappingURL=getInsertionValues.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getInsertionValues } from "./getInsertionValues.mjs";
|
|
2
2
|
import { INSERTION, formatNodeType } from "@intlayer/types/nodeType";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/transpiler/insertion/insertion.ts
|
|
5
5
|
/**
|
|
6
6
|
* Function intended to be used to build intlayer dictionaries.
|
|
7
7
|
*
|
|
@@ -30,6 +30,5 @@ const insertion = (content) => {
|
|
|
30
30
|
return formatNodeType(INSERTION, content, { fields: getInsertions() });
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
//#endregion
|
|
34
33
|
export { insertion as insert };
|
|
35
34
|
//# sourceMappingURL=insertion.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseYaml } from "../../utils/parseYaml.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/markdown/getMarkdownMetadata.ts
|
|
4
4
|
/**
|
|
5
5
|
* Extracts the raw content between the leading `---` delimiters.
|
|
6
6
|
*
|
|
@@ -38,6 +38,5 @@ const getMarkdownMetadata = (markdown) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { getMarkdownMetadata };
|
|
43
42
|
//# sourceMappingURL=getMarkdownMetadata.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMarkdownMetadata } from "./getMarkdownMetadata.mjs";
|
|
2
|
-
import { validateMarkdown } from "./validateMarkdown.mjs";
|
|
3
2
|
import { md as markdown } from "./markdown.mjs";
|
|
3
|
+
import { validateMarkdown } from "./validateMarkdown.mjs";
|
|
4
4
|
|
|
5
5
|
export { getMarkdownMetadata, markdown as md, validateMarkdown };
|
|
@@ -4,7 +4,7 @@ import { getMarkdownMetadata } from "./getMarkdownMetadata.mjs";
|
|
|
4
4
|
import { validateMarkdown } from "./validateMarkdown.mjs";
|
|
5
5
|
import { MARKDOWN, formatNodeType } from "@intlayer/types/nodeType";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/transpiler/markdown/markdown.ts
|
|
8
8
|
const awaitContent = async (content) => {
|
|
9
9
|
if (typeof content === "string" || typeof content === "object") return content;
|
|
10
10
|
if (typeof content === "function") return content();
|
|
@@ -57,6 +57,5 @@ const markdown = (content, components) => {
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
//#endregion
|
|
61
60
|
export { markdown as md };
|
|
62
61
|
//# sourceMappingURL=markdown.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { validateHTML } from "../html/validateHTML.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/markdown/validateMarkdown.ts
|
|
4
4
|
/**
|
|
5
5
|
* Strips fenced code blocks and inline code from markdown content so that
|
|
6
6
|
* HTML-like syntax inside code is not mistakenly validated.
|
|
@@ -70,6 +70,5 @@ const validateMarkdown = (content) => {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
//#endregion
|
|
74
73
|
export { validateMarkdown };
|
|
75
74
|
//# sourceMappingURL=validateMarkdown.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NESTED, formatNodeType } from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/nesting/nesting.ts
|
|
4
4
|
/**
|
|
5
5
|
* Function intended to be used to build intlayer dictionaries.
|
|
6
6
|
*
|
|
@@ -21,6 +21,5 @@ const nesting = (dictionaryKey, path) => formatNodeType(NESTED, {
|
|
|
21
21
|
path
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
//#endregion
|
|
25
24
|
export { nesting as nest };
|
|
26
25
|
//# sourceMappingURL=nesting.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PLURAL, formatNodeType } from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/plural/plural.ts
|
|
4
4
|
/** Name of the value a plural selects on when no `variable` is declared. */
|
|
5
5
|
const DEFAULT_PLURAL_VARIABLE = "count";
|
|
6
6
|
/**
|
|
@@ -44,6 +44,5 @@ const DEFAULT_PLURAL_VARIABLE = "count";
|
|
|
44
44
|
*/
|
|
45
45
|
const plural = (content, options) => formatNodeType(PLURAL, content, options?.variable ? { variable: options.variable } : void 0);
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { DEFAULT_PLURAL_VARIABLE, plural };
|
|
49
48
|
//# sourceMappingURL=plural.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SELECT, formatNodeType } from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/select/select.ts
|
|
4
4
|
/**
|
|
5
5
|
* Function intended to be used to build intlayer dictionaries.
|
|
6
6
|
*
|
|
@@ -36,6 +36,5 @@ import { SELECT, formatNodeType } from "@intlayer/types/nodeType";
|
|
|
36
36
|
*/
|
|
37
37
|
const select = (content, variable) => formatNodeType(SELECT, content, { variable });
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { select };
|
|
41
40
|
//# sourceMappingURL=select.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TRANSLATION, formatNodeType } from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/transpiler/translation/translation.ts
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* Function intended to be used to build intlayer dictionaries.
|
|
@@ -23,6 +23,5 @@ import { TRANSLATION, formatNodeType } from "@intlayer/types/nodeType";
|
|
|
23
23
|
*/
|
|
24
24
|
const translation = (content) => formatNodeType(TRANSLATION, content);
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { translation as t };
|
|
28
27
|
//# sourceMappingURL=translation.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/cookieExpiry.ts
|
|
2
2
|
/**
|
|
3
3
|
* Resolves a normalized cookie `expires` value to an absolute timestamp
|
|
4
4
|
* (epoch ms). The value is produced by the config-build merge step, so it is
|
|
@@ -40,6 +40,5 @@ const buildCookieString = (name, value, attributes) => {
|
|
|
40
40
|
return parts.join("; ");
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
//#endregion
|
|
44
43
|
export { buildCookieString, resolveExpiresToTimestamp };
|
|
45
44
|
//# sourceMappingURL=cookieExpiry.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/getCookie.ts
|
|
2
2
|
/**
|
|
3
3
|
* Retrieves a cookie by name from a cookie string or document.cookie
|
|
4
4
|
* @param name - The name of the cookie to retrieve
|
|
@@ -26,6 +26,5 @@ const getCookie = (name, cookieString) => {
|
|
|
26
26
|
} catch {}
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { getCookie };
|
|
31
30
|
//# sourceMappingURL=getCookie.mjs.map
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.mjs";
|
|
1
2
|
import { getCookie } from "./getCookie.mjs";
|
|
2
|
-
import { LocaleStorage, LocaleStorageClient, LocaleStorageServer, getCachedLocaleFromStorageClient, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, localeStorageOptions, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer } from "./localeStorage.mjs";
|
|
3
3
|
import { CachedIntl, bindIntl, getCachedIntl } from "./intl.mjs";
|
|
4
|
-
import { parseYaml } from "./parseYaml.mjs";
|
|
5
|
-
import { isValidElement } from "./isValidReactElement.mjs";
|
|
6
|
-
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.mjs";
|
|
7
4
|
import { getIntlayerNodePrototype } from "./intlayerNodePrototype.mjs";
|
|
8
5
|
import { isSameKeyPath } from "./isSameKeyPath.mjs";
|
|
6
|
+
import { isValidElement } from "./isValidReactElement.mjs";
|
|
7
|
+
import { LocaleStorage, LocaleStorageClient, LocaleStorageServer, getCachedLocaleFromStorageClient, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, localeStorageOptions, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer } from "./localeStorage.mjs";
|
|
8
|
+
import { parseYaml } from "./parseYaml.mjs";
|
|
9
9
|
import { stringifyYaml } from "./stringifyYaml.mjs";
|
|
10
10
|
|
|
11
11
|
export { CachedIntl, CachedIntl as Intl, LocaleStorage, LocaleStorageClient, LocaleStorageServer, bindIntl, checkIsURLAbsolute, getCachedIntl, getCachedLocaleFromStorageClient, getCookie, getIntlayerNodePrototype, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, isSameKeyPath, isValidElement, localeStorageOptions, parseYaml, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer, stringifyYaml };
|
package/dist/esm/utils/intl.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveInterpreterLocale } from "../interpreter/resolveInterpreterLocale.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/intl.ts
|
|
4
4
|
const MAX_CACHE_SIZE = 50;
|
|
5
5
|
const cache = /* @__PURE__ */ new Map();
|
|
6
6
|
const alreadyWarnedConstructors = /* @__PURE__ */ new Set();
|
|
@@ -148,6 +148,5 @@ const CachedIntl = {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
//#endregion
|
|
152
151
|
export { CachedIntl, CachedIntl as Intl, bindIntl, getCachedIntl };
|
|
153
152
|
//# sourceMappingURL=intl.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/intlayerNodePrototype.ts
|
|
2
2
|
/**
|
|
3
3
|
* Built prototypes, per base prototype, then per value type (`'string'`…) or,
|
|
4
4
|
* for objects, per value prototype.
|
|
@@ -60,6 +60,5 @@ const getIntlayerNodePrototype = (value, basePrototype = Object.prototype) => {
|
|
|
60
60
|
return prototype;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
//#endregion
|
|
64
63
|
export { getIntlayerNodePrototype };
|
|
65
64
|
//# sourceMappingURL=intlayerNodePrototype.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/isSameKeyPath.ts
|
|
2
2
|
const isSameKeyPath = (keyPath1, keyPath2) => keyPath1.every((element, index) => keyPath2[index] && keyPath2[index].key === element.key && keyPath2[index].type === element.type);
|
|
3
3
|
|
|
4
|
-
//#endregion
|
|
5
4
|
export { isSameKeyPath };
|
|
6
5
|
//# sourceMappingURL=isSameKeyPath.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/isValidReactElement.ts
|
|
2
2
|
/**
|
|
3
3
|
* Verifies the object is a ReactElement.
|
|
4
4
|
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
@@ -8,6 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const isValidElement = (object) => typeof object === "object" && typeof object?.key !== "undefined" && typeof object?.props !== "undefined";
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
export { isValidElement };
|
|
13
12
|
//# sourceMappingURL=isValidReactElement.mjs.map
|
|
@@ -2,7 +2,7 @@ import { buildCookieString, resolveExpiresToTimestamp } from "./cookieExpiry.mjs
|
|
|
2
2
|
import { getCookie } from "./getCookie.mjs";
|
|
3
3
|
import { internationalization, routing } from "@intlayer/config/built";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/localeStorage.ts
|
|
6
6
|
/**
|
|
7
7
|
* True when cookie storage is explicitly disabled at build time.
|
|
8
8
|
*/
|
|
@@ -286,6 +286,5 @@ const LocaleStorage = (options) => ({
|
|
|
286
286
|
setLocale: (locale) => setLocaleInStorage(locale, options)
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
//#endregion
|
|
290
289
|
export { LocaleStorage, LocaleStorageClient, LocaleStorageServer, getCachedLocaleFromStorageClient, getLocaleFromStorage, getLocaleFromStorageClient, getLocaleFromStorageServer, localeStorageOptions, setLocaleInStorage, setLocaleInStorageClient, setLocaleInStorageServer };
|
|
291
290
|
//# sourceMappingURL=localeStorage.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/parseYaml.ts
|
|
2
2
|
const PRESERVED_LITERALS = /* @__PURE__ */ new Set([
|
|
3
3
|
"true",
|
|
4
4
|
"false",
|
|
@@ -253,6 +253,5 @@ const parseYaml = (input) => {
|
|
|
253
253
|
return value;
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
//#endregion
|
|
257
256
|
export { parseYaml };
|
|
258
257
|
//# sourceMappingURL=parseYaml.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/stringifyYaml.ts
|
|
2
2
|
const NEEDS_QUOTING = /[\n\r\t#:{}[\],&*?|<>=!%@`'"\\]|^[-?!]|\s$|^\s|^[>|]|^[.]{2,}/;
|
|
3
3
|
const PRESERVED_LITERALS = /* @__PURE__ */ new Set([
|
|
4
4
|
"true",
|
|
@@ -52,6 +52,5 @@ const serializeValue = (value, indent) => {
|
|
|
52
52
|
};
|
|
53
53
|
const stringifyYaml = (value) => `${serializeValue(value, "")}\n`;
|
|
54
54
|
|
|
55
|
-
//#endregion
|
|
56
55
|
export { stringifyYaml };
|
|
57
56
|
//# sourceMappingURL=stringifyYaml.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/deepTransformPlugins/getEditedContent.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Returns the partial content holding only the `translation` nodes whose
|
|
6
5
|
* source (`defaultLocale`) value was added or changed between `previousContent`
|
|
@@ -27,5 +26,4 @@ export declare const getEditedContent: (previousContent: ContentNode | undefined
|
|
|
27
26
|
* @param defaultLocale - The source locale to diff against.
|
|
28
27
|
*/
|
|
29
28
|
export declare const getEditedDictionary: (previousDictionary: Dictionary | undefined, newDictionary: Dictionary, defaultLocale: LocalesValues) => Dictionary;
|
|
30
|
-
//#endregion
|
|
31
29
|
//# sourceMappingURL=getEditedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEditedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getEditedContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getEditedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getEditedContent.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBA2Ka,mBAAgB,iBACV,yBAAuB,YAC5B,aAAW,eACR,kBACd;;;;;;;;;qBAeU,sBAAmB,oBACV,wBAAsB,eAC3B,YAAU,eACV,kBACd"}
|
|
@@ -2,7 +2,6 @@ import { NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
|
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
//#region src/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts
|
|
6
5
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
7
6
|
export declare const filterMissingTranslationsOnlyPlugin: (localeToCheck: LocalesValues) => Plugins;
|
|
8
7
|
/**
|
|
@@ -47,5 +46,4 @@ export declare const getFilterMissingTranslationsDictionary: (dictionary: Dictio
|
|
|
47
46
|
schema?: import("@intlayer/types").SchemaKeys;
|
|
48
47
|
content: any;
|
|
49
48
|
};
|
|
50
|
-
//#endregion
|
|
51
49
|
//# sourceMappingURL=getFilterMissingTranslationsContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"mappings":";;;;;qBAoMa,sCAAmC,eAC/B,kBACd;;;;;;;;;;;;;;;qBA6LU,sCACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,eACQ,GAAC,WACL;qBAoBA,yCAAsC,YACrC,YAAU,eACP"}
|
|
@@ -2,7 +2,6 @@ import { DeepTransformContent, NodeProps, Plugins } from "../interpreter/getCont
|
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
//#region src/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts
|
|
6
5
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
7
6
|
export declare const filterTranslationsOnlyPlugin: (locale: LocalesValues, fallback?: LocalesValues) => Plugins;
|
|
8
7
|
/**
|
|
@@ -39,5 +38,4 @@ export declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionar
|
|
|
39
38
|
schema?: import("@intlayer/types").SchemaKeys;
|
|
40
39
|
content: any;
|
|
41
40
|
};
|
|
42
|
-
//#endregion
|
|
43
41
|
//# sourceMappingURL=getFilterTranslationsOnlyContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"mappings":";;;;;qBAqCa,+BAA4B,QAC/B,eAAa,WACV,kBACV;;;;;;;qBAoFU,mCACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,QACC,GAAC,WAEE,WAAS,WACT,kBAUL,qBAAqB;qBAGhB,sCAAmC,YAClC,YAAU,SACd,eAAa,WAEV"}
|
|
@@ -2,7 +2,6 @@ import { NodeProps } from "../interpreter/getContent/plugins.js";
|
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
//#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
|
|
6
5
|
export declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesValues | LocalesValues[], nodeProps: NodeProps) => any;
|
|
7
6
|
export declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
|
|
8
7
|
$schema?: "https://intlayer.org/schema.json";
|
|
@@ -31,5 +30,4 @@ export declare const getFilteredLocalesDictionary: (dictionary: Dictionary, loca
|
|
|
31
30
|
schema?: import("@intlayer/types").SchemaKeys;
|
|
32
31
|
content: any;
|
|
33
32
|
};
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=getFilteredLocalesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"mappings":";;;;qBAuCa,4BAAyB,MAC9B,aAAW,SACR,gBAAgB,iBAAe,WAC7B;qBAwBA,+BAA4B,YAC3B,YAAU,QACd,gBAAgB"}
|
|
@@ -2,7 +2,6 @@ import { DeepTransformContent, NodeProps } from "../interpreter/getContent/plugi
|
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
-
//#region src/deepTransformPlugins/getLocalizedContent.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Transforms a node in a single pass, applying each plugin as needed.
|
|
8
7
|
* In comparison to `getContent`, this function will only apply the translation plugin.
|
|
@@ -13,5 +12,4 @@ import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentat
|
|
|
13
12
|
*/
|
|
14
13
|
export declare const getLocalizedContent: <T extends ContentNode, L extends LocalesValues = DeclaredLocales>(node: T, locale: L, nodeProps: NodeProps, fallback?: LocalesValues) => DeepTransformContent<T>;
|
|
15
14
|
export declare const getPerLocaleDictionary: <T extends Dictionary, L extends LocalesValues>(dictionary: T, locale: L, fallback?: LocalesValues) => Dictionary;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=getLocalizedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getLocalizedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getLocalizedContent.ts"],"mappings":";;;;;;;;;;;;qBAqBa,sBACX,UAAU,aACV,UAAU,gBAAgB,iBAAe,MAEnC,GAAC,QACC,GAAC,WACE,WAAS,WACT,kBAUL,qBAAqB;qBAGhB,yBACX,UAAU,YACV,UAAU,eAAa,YAEX,GAAC,QACL,GAAC,WACE,kBACV"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Plugins } from "../interpreter/getContent/plugins.js";
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/deepTransformPlugins/getMaskContent.d.ts
|
|
5
4
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
6
5
|
export declare const buildMaskPlugin: Plugins;
|
|
7
6
|
export declare const getMaskContent: (source: Dictionary) => any;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=getMaskContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMaskContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMaskContent.ts"],"mappings":";;;;qBAYa,iBAAiB;qBAMjB,iBAAc,QAAY"}
|
|
@@ -3,7 +3,6 @@ import "../interpreter/index.js";
|
|
|
3
3
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
import { Locale } from "@intlayer/types/allLocales";
|
|
6
|
-
//#region src/deepTransformPlugins/getMissingLocalesContent.d.ts
|
|
7
6
|
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
8
7
|
export declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLocale: (locale: Locale) => void) => Plugins;
|
|
9
8
|
/**
|
|
@@ -14,5 +13,4 @@ export declare const checkMissingLocalesPlugin: (locales: Locale[], onMissingLoc
|
|
|
14
13
|
*/
|
|
15
14
|
export declare const getMissingLocalesContent: <T extends ContentNode>(node: T, locales: LocalesValues[], nodeProps: NodeProps) => Locale[];
|
|
16
15
|
export declare const getMissingLocalesContentFromDictionary: (dictionary: Dictionary, locales?: LocalesValues[]) => Locale[];
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=getMissingLocalesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMissingLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMissingLocalesContent.ts"],"mappings":";;;;;;qBAiGa,4BAAyB,SAC3B,UAAQ,kBACC,QAAQ,oBACzB;;;;;;;qBAuGU,2BAA4B,UAAU,aAAW,MACtD,GAAC,SACE,iBAAe,WAEb,cACV;qBAuBU,yCAAsC,YACrC,YAAU,UACb,oBAAe"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
-
//#region src/deepTransformPlugins/getMultilingualDictionary.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Transform a per-locale dictionary into a multilingual dictionary.
|
|
5
4
|
*
|
|
@@ -26,5 +25,4 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
27
|
export declare const getMultilingualDictionary: (dictionary: Dictionary) => Dictionary;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=getMultilingualDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMultilingualDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMultilingualDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getMultilingualDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCa,4BAAyB,YACxB,eACX"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { NodeProps } from "../interpreter/getContent/plugins.js";
|
|
2
2
|
import "../interpreter/index.js";
|
|
3
3
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/deepTransformPlugins/getReplacedValuesContent.d.ts
|
|
5
4
|
export declare const getReplacedValuesContent: (node: ContentNode, value: string | number | boolean, nodeProps: NodeProps) => any;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=getReplacedValuesContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getReplacedValuesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getReplacedValuesContent.ts"],"mappings":";;;qBA8Da,2BAAwB,MAC7B,aAAW,kCACe,WACrB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/deepTransformPlugins/getSplittedContent.d.ts
|
|
4
3
|
type SplittedContentOutput<T = ContentNode> = Record<DeclaredLocales, T> & {
|
|
5
4
|
common: T;
|
|
6
5
|
};
|
|
@@ -37,5 +36,5 @@ export declare const getSplittedContent: (content: ContentNode) => SplittedConte
|
|
|
37
36
|
* @returns An object mapping "common" and each locale to their corresponding content subtrees.
|
|
38
37
|
*/
|
|
39
38
|
export declare const getSplittedDictionaryContent: (dictionary: Dictionary) => SplittedContentOutput<Dictionary['content']>;
|
|
40
|
-
|
|
39
|
+
export {};
|
|
41
40
|
//# sourceMappingURL=getSplittedContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplittedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getSplittedContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSplittedContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getSplittedContent.ts"],"mappings":";;KAIK,sBAAsB,IAAI,eAAe,OAAO,iBAAiB;EACpE,QAAQ;;qBAsKG,qBAAkB,SACpB,gBACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDU,+BAA4B,YAC3B,eACX,sBAAsB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEditedContent, getEditedDictionary } from "./getEditedContent.js";
|
|
2
|
+
import { getFilteredLocalesContent, getFilteredLocalesDictionary } from "./getFilteredLocalesContent.js";
|
|
2
3
|
import { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary } from "./getFilterMissingTranslationsContent.js";
|
|
3
4
|
import { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary } from "./getFilterTranslationsOnlyContent.js";
|
|
4
|
-
import { getFilteredLocalesContent, getFilteredLocalesDictionary } from "./getFilteredLocalesContent.js";
|
|
5
5
|
import { getLocalizedContent, getPerLocaleDictionary } from "./getLocalizedContent.js";
|
|
6
6
|
import { buildMaskPlugin, getMaskContent } from "./getMaskContent.js";
|
|
7
7
|
import { checkMissingLocalesPlugin, getMissingLocalesContent, getMissingLocalesContentFromDictionary } from "./getMissingLocalesContent.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
|
-
//#region src/deepTransformPlugins/insertContentInDictionary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Insert content into a dictionary with deep merge support
|
|
6
5
|
* Handles translation blocks and nested structures
|
|
@@ -19,5 +18,4 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
|
19
18
|
* insertContentInDictionary(dictionary, { title: 'このページ' }, 'ja')
|
|
20
19
|
*/
|
|
21
20
|
export declare const insertContentInDictionary: (dictionary: Dictionary, content: Dictionary['content'], locale?: LocalesValues) => Dictionary;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=insertContentInDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertContentInDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/insertContentInDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"insertContentInDictionary.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/insertContentInDictionary.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAkQa,4BAAyB,YACxB,YAAU,SACb,uBAAqB,SACrB,kBACR"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
|
-
//#region src/dictionaryManipulator/editDictionaryByKeyPath.d.ts
|
|
4
3
|
export declare const editDictionaryByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], newValue: ContentNode) => ContentNode;
|
|
5
|
-
//#endregion
|
|
6
4
|
//# sourceMappingURL=editDictionaryByKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"editDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"mappings":";;qBAMa,0BAAuB,mBACf,aAAW,SACrB,WAAS,UACR,gBACT"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ContentNode } from "@intlayer/types/dictionary";
|
|
2
2
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
3
3
|
import { KeyPath } from "@intlayer/types/keyPath";
|
|
4
|
-
//#region src/dictionaryManipulator/getContentNodeByKeyPath.d.ts
|
|
5
4
|
export declare const getContentNodeByKeyPath: (dictionaryContent: ContentNode, keyPath: KeyPath[], fallbackLocale?: LocalesValues) => ContentNode;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=getContentNodeByKeyPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getContentNodeByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"mappings":";;;qBAKa,0BAAuB,mBACf,aAAW,SACrB,WAAS,iBACD,kBAChB"}
|