@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,5 +24,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
|
-
//#endregion
|
|
28
27
|
exports.__toESM = __toESM;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/deepTransformPlugins/getEditedContent.ts
|
|
7
7
|
/** Whether `node` is a plain (non-array) object, i.e. a content branch. */
|
|
8
8
|
const isRecordNode = (node) => typeof node === "object" && node !== null && !Array.isArray(node);
|
|
9
9
|
/** Whether `node` is a typed node, whatever its `nodeType`. */
|
|
@@ -95,7 +95,6 @@ const getEditedDictionary = (previousDictionary, newDictionary, defaultLocale) =
|
|
|
95
95
|
content: getEditedContent(previousDictionary?.content, newDictionary.content, defaultLocale)
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
//#endregion
|
|
99
98
|
exports.getEditedContent = getEditedContent;
|
|
100
99
|
exports.getEditedDictionary = getEditedDictionary;
|
|
101
100
|
//# sourceMappingURL=getEditedContent.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_transpiler_translation_translation = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_interpreter_getTranslation = require("../interpreter/getTranslation.cjs");
|
|
4
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
5
|
+
const require_transpiler_translation_translation = require("../transpiler/translation/translation.cjs");
|
|
6
6
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
7
7
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
8
8
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/deepTransformPlugins/getFilterMissingTranslationsContent.ts
|
|
11
11
|
/**
|
|
12
12
|
* Helper function to check if a node or its children contain translation nodes
|
|
13
13
|
*/
|
|
@@ -206,7 +206,6 @@ const getFilterMissingTranslationsDictionary = (dictionary, localeToCheck) => ({
|
|
|
206
206
|
})
|
|
207
207
|
});
|
|
208
208
|
|
|
209
|
-
//#endregion
|
|
210
209
|
exports.filterMissingTranslationsOnlyPlugin = filterMissingTranslationsOnlyPlugin;
|
|
211
210
|
exports.getFilterMissingTranslationsContent = getFilterMissingTranslationsContent;
|
|
212
211
|
exports.getFilterMissingTranslationsDictionary = getFilterMissingTranslationsDictionary;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_interpreter_getTranslation = require("../interpreter/getTranslation.cjs");
|
|
4
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
5
5
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
6
6
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
7
7
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts
|
|
10
10
|
/**
|
|
11
11
|
* Helper function to check if a node or its children contain translation nodes
|
|
12
12
|
*/
|
|
@@ -88,7 +88,6 @@ const getFilterTranslationsOnlyDictionary = (dictionary, locale = _intlayer_conf
|
|
|
88
88
|
}, fallback)
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
exports.filterTranslationsOnlyPlugin = filterTranslationsOnlyPlugin;
|
|
93
92
|
exports.getFilterTranslationsOnlyContent = getFilterTranslationsOnlyContent;
|
|
94
93
|
exports.getFilterTranslationsOnlyDictionary = getFilterTranslationsOnlyDictionary;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_interpreter_getContent_deepTransform = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
4
4
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
5
5
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/deepTransformPlugins/getFilteredLocalesContent.ts
|
|
8
8
|
const filterTranslationsPlugin = (locales) => ({
|
|
9
9
|
id: "filter-translations-plugin",
|
|
10
10
|
canHandle: (node) => typeof node === "object" && node?.nodeType === _intlayer_types_nodeType.TRANSLATION,
|
|
@@ -41,7 +41,6 @@ const getFilteredLocalesDictionary = (dictionary, locale) => {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
exports.getFilteredLocalesContent = getFilteredLocalesContent;
|
|
46
45
|
exports.getFilteredLocalesDictionary = getFilteredLocalesDictionary;
|
|
47
46
|
//# sourceMappingURL=getFilteredLocalesContent.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_interpreter_getContent_plugins = require("../interpreter/getContent/plugins.cjs");
|
|
3
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/deepTransformPlugins/getLocalizedContent.ts
|
|
6
6
|
/**
|
|
7
7
|
* Transforms a node in a single pass, applying each plugin as needed.
|
|
8
8
|
* In comparison to `getContent`, this function will only apply the translation plugin.
|
|
@@ -28,7 +28,6 @@ const getPerLocaleDictionary = (dictionary, locale, fallback) => ({
|
|
|
28
28
|
}, fallback)
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
exports.getLocalizedContent = getLocalizedContent;
|
|
33
32
|
exports.getPerLocaleDictionary = getPerLocaleDictionary;
|
|
34
33
|
//# sourceMappingURL=getLocalizedContent.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_interpreter_getContent_deepTransform = require(
|
|
2
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/deepTransformPlugins/getMaskContent.ts
|
|
5
5
|
const passTypedNodePlugin = {
|
|
6
6
|
id: "pass-typed-node-plugin",
|
|
7
7
|
canHandle: (node) => typeof node === "object" && typeof node?.nodeType === "string",
|
|
@@ -22,7 +22,6 @@ const getMaskContent = (source) => ({
|
|
|
22
22
|
})
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
25
|
exports.buildMaskPlugin = buildMaskPlugin;
|
|
27
26
|
exports.getMaskContent = getMaskContent;
|
|
28
27
|
//# sourceMappingURL=getMaskContent.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_interpreter_getContent_deepTransform = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
4
4
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
5
5
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
6
6
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/deepTransformPlugins/getMissingLocalesContent.ts
|
|
9
9
|
/**
|
|
10
10
|
* Returns all key paths present in obj, INCLUDING those whose leaf value is null.
|
|
11
11
|
* Used for structural presence checks (a locale must have every key another locale has,
|
|
@@ -145,7 +145,6 @@ const getMissingLocalesContentFromDictionary = (dictionary, locales = _intlayer_
|
|
|
145
145
|
keyPath: []
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
//#endregion
|
|
149
148
|
exports.checkMissingLocalesPlugin = checkMissingLocalesPlugin;
|
|
150
149
|
exports.getMissingLocalesContent = getMissingLocalesContent;
|
|
151
150
|
exports.getMissingLocalesContentFromDictionary = getMissingLocalesContentFromDictionary;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_interpreter_getContent_deepTransform = require(
|
|
3
|
-
const require_transpiler_translation_translation = require(
|
|
2
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
3
|
+
const require_transpiler_translation_translation = require("../transpiler/translation/translation.cjs");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/deepTransformPlugins/getMultilingualDictionary.ts
|
|
6
6
|
/**
|
|
7
7
|
* Transform a per-locale dictionary into a multilingual dictionary.
|
|
8
8
|
*
|
|
@@ -83,6 +83,5 @@ const getMultilingualDictionary = (dictionary) => {
|
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
//#endregion
|
|
87
86
|
exports.getMultilingualDictionary = getMultilingualDictionary;
|
|
88
87
|
//# sourceMappingURL=getMultilingualDictionary.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_interpreter_getContent_deepTransform = require(
|
|
2
|
+
const require_interpreter_getContent_deepTransform = require("../interpreter/getContent/deepTransform.cjs");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/deepTransformPlugins/getReplacedValuesContent.ts
|
|
5
5
|
const replaceValuesPlugin = (value) => ({
|
|
6
6
|
id: "replace-values-plugin",
|
|
7
7
|
canHandle: (node) => typeof node === "string" || typeof node === "number" || typeof node === "boolean",
|
|
@@ -57,6 +57,5 @@ const getReplacedValuesContent = (node, value, nodeProps) => {
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
//#endregion
|
|
61
60
|
exports.getReplacedValuesContent = getReplacedValuesContent;
|
|
62
61
|
//# sourceMappingURL=getReplacedValuesContent.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/deepTransformPlugins/getSplittedContent.ts
|
|
7
7
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8
8
|
const hasNodeType = (value) => isObject(value) && typeof value.nodeType === "string";
|
|
9
9
|
const mergeValues = (a, b) => {
|
|
@@ -118,7 +118,6 @@ const getSplittedContent = (content) => {
|
|
|
118
118
|
*/
|
|
119
119
|
const getSplittedDictionaryContent = (dictionary) => getSplittedContent(dictionary.content);
|
|
120
120
|
|
|
121
|
-
//#endregion
|
|
122
121
|
exports.getSplittedContent = getSplittedContent;
|
|
123
122
|
exports.getSplittedDictionaryContent = getSplittedDictionaryContent;
|
|
124
123
|
//# sourceMappingURL=getSplittedContent.cjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_deepTransformPlugins_getEditedContent = require(
|
|
3
|
-
const require_deepTransformPlugins_getFilteredLocalesContent = require(
|
|
4
|
-
const require_deepTransformPlugins_getFilterMissingTranslationsContent = require(
|
|
5
|
-
const require_deepTransformPlugins_getFilterTranslationsOnlyContent = require(
|
|
6
|
-
const require_deepTransformPlugins_getLocalizedContent = require(
|
|
7
|
-
const require_deepTransformPlugins_getMaskContent = require(
|
|
8
|
-
const require_deepTransformPlugins_getMissingLocalesContent = require(
|
|
9
|
-
const require_deepTransformPlugins_getMultilingualDictionary = require(
|
|
10
|
-
const require_deepTransformPlugins_getReplacedValuesContent = require(
|
|
11
|
-
const require_deepTransformPlugins_getSplittedContent = require(
|
|
12
|
-
const require_deepTransformPlugins_insertContentInDictionary = require(
|
|
2
|
+
const require_deepTransformPlugins_getEditedContent = require("./getEditedContent.cjs");
|
|
3
|
+
const require_deepTransformPlugins_getFilteredLocalesContent = require("./getFilteredLocalesContent.cjs");
|
|
4
|
+
const require_deepTransformPlugins_getFilterMissingTranslationsContent = require("./getFilterMissingTranslationsContent.cjs");
|
|
5
|
+
const require_deepTransformPlugins_getFilterTranslationsOnlyContent = require("./getFilterTranslationsOnlyContent.cjs");
|
|
6
|
+
const require_deepTransformPlugins_getLocalizedContent = require("./getLocalizedContent.cjs");
|
|
7
|
+
const require_deepTransformPlugins_getMaskContent = require("./getMaskContent.cjs");
|
|
8
|
+
const require_deepTransformPlugins_getMissingLocalesContent = require("./getMissingLocalesContent.cjs");
|
|
9
|
+
const require_deepTransformPlugins_getMultilingualDictionary = require("./getMultilingualDictionary.cjs");
|
|
10
|
+
const require_deepTransformPlugins_getReplacedValuesContent = require("./getReplacedValuesContent.cjs");
|
|
11
|
+
const require_deepTransformPlugins_getSplittedContent = require("./getSplittedContent.cjs");
|
|
12
|
+
const require_deepTransformPlugins_insertContentInDictionary = require("./insertContentInDictionary.cjs");
|
|
13
13
|
|
|
14
14
|
exports.buildMaskPlugin = require_deepTransformPlugins_getMaskContent.buildMaskPlugin;
|
|
15
15
|
exports.checkMissingLocalesPlugin = require_deepTransformPlugins_getMissingLocalesContent.checkMissingLocalesPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/deepTransformPlugins/insertContentInDictionary.ts
|
|
7
7
|
/**
|
|
8
8
|
* Deep merge helper that handles translation blocks
|
|
9
9
|
* @param target - The target object (dictionary content)
|
|
@@ -112,6 +112,5 @@ const insertContentInDictionary = (dictionary, content, locale) => {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
//#endregion
|
|
116
115
|
exports.insertContentInDictionary = insertContentInDictionary;
|
|
117
116
|
//# sourceMappingURL=insertContentInDictionary.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/editDictionaryByKeyPath.ts
|
|
7
7
|
const editDictionaryByKeyPath = (dictionaryContent, keyPath, newValue) => {
|
|
8
8
|
let currentValue = dictionaryContent;
|
|
9
9
|
let parentValue = null;
|
|
@@ -62,6 +62,5 @@ const editDictionaryByKeyPath = (dictionaryContent, keyPath, newValue) => {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
//#endregion
|
|
66
65
|
exports.editDictionaryByKeyPath = editDictionaryByKeyPath;
|
|
67
66
|
//# sourceMappingURL=editDictionaryByKeyPath.cjs.map
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/getContentNodeByKeyPath.ts
|
|
7
7
|
const getContentNodeByKeyPath = (dictionaryContent, keyPath, fallbackLocale) => {
|
|
8
8
|
let currentValue = structuredClone(dictionaryContent);
|
|
9
9
|
for (const keyObj of keyPath) {
|
|
10
|
-
|
|
10
|
+
while (currentValue?.nodeType === _intlayer_types_nodeType.TRANSLATION && keyObj.type !== _intlayer_types_nodeType.TRANSLATION) {
|
|
11
|
+
const translations = currentValue[_intlayer_types_nodeType.TRANSLATION];
|
|
12
|
+
if (!translations) break;
|
|
13
|
+
currentValue = (fallbackLocale && translations[fallbackLocale]) ?? Object.values(translations)[0];
|
|
14
|
+
}
|
|
11
15
|
if (keyObj.type === _intlayer_types_nodeType.OBJECT || keyObj.type === _intlayer_types_nodeType.ARRAY) currentValue = currentValue?.[keyObj.key];
|
|
12
16
|
if (keyObj.type === _intlayer_types_nodeType.TRANSLATION || keyObj.type === _intlayer_types_nodeType.CONDITION || keyObj.type === _intlayer_types_nodeType.ENUMERATION || keyObj.type === _intlayer_types_nodeType.PLURAL || keyObj.type === _intlayer_types_nodeType.GENDER || keyObj.type === _intlayer_types_nodeType.SELECT) currentValue = currentValue?.[keyObj.type]?.[keyObj.key];
|
|
13
17
|
if (keyObj.type === _intlayer_types_nodeType.MARKDOWN || keyObj.type === _intlayer_types_nodeType.HTML || keyObj.type === _intlayer_types_nodeType.INSERTION || keyObj.type === _intlayer_types_nodeType.FILE) currentValue = currentValue?.[keyObj.type];
|
|
@@ -15,6 +19,5 @@ const getContentNodeByKeyPath = (dictionaryContent, keyPath, fallbackLocale) =>
|
|
|
15
19
|
return currentValue;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
|
-
//#endregion
|
|
19
22
|
exports.getContentNodeByKeyPath = getContentNodeByKeyPath;
|
|
20
23
|
//# sourceMappingURL=getContentNodeByKeyPath.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentNodeByKeyPath.cjs","names":["NodeTypes"],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"sourcesContent":["import type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport * as NodeTypes from '@intlayer/types/nodeType';\n\nexport const getContentNodeByKeyPath = (\n dictionaryContent: ContentNode,\n keyPath: KeyPath[],\n fallbackLocale?: LocalesValues\n): ContentNode => {\n let currentValue: any = structuredClone(dictionaryContent);\n\n for (const keyObj of keyPath) {\n // Auto-resolve translation nodes when
|
|
1
|
+
{"version":3,"file":"getContentNodeByKeyPath.cjs","names":["NodeTypes"],"sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"sourcesContent":["import type { ContentNode } from '@intlayer/types/dictionary';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport * as NodeTypes from '@intlayer/types/nodeType';\n\nexport const getContentNodeByKeyPath = (\n dictionaryContent: ContentNode,\n keyPath: KeyPath[],\n fallbackLocale?: LocalesValues\n): ContentNode => {\n let currentValue: any = structuredClone(dictionaryContent);\n\n for (const keyObj of keyPath) {\n // Auto-resolve translation nodes when the key does not target translation\n while (\n currentValue?.nodeType === NodeTypes.TRANSLATION &&\n keyObj.type !== NodeTypes.TRANSLATION\n ) {\n const translations = currentValue[NodeTypes.TRANSLATION];\n if (!translations) break;\n currentValue =\n (fallbackLocale && translations[fallbackLocale]) ??\n Object.values(translations)[0];\n }\n\n if (keyObj.type === NodeTypes.OBJECT || keyObj.type === NodeTypes.ARRAY) {\n currentValue = currentValue?.[keyObj.key];\n }\n\n if (\n keyObj.type === NodeTypes.TRANSLATION ||\n keyObj.type === NodeTypes.CONDITION ||\n keyObj.type === NodeTypes.ENUMERATION ||\n keyObj.type === NodeTypes.PLURAL ||\n keyObj.type === NodeTypes.GENDER ||\n keyObj.type === NodeTypes.SELECT\n ) {\n currentValue = currentValue?.[keyObj.type]?.[keyObj.key];\n }\n\n if (\n keyObj.type === NodeTypes.MARKDOWN ||\n keyObj.type === NodeTypes.HTML ||\n keyObj.type === NodeTypes.INSERTION ||\n keyObj.type === NodeTypes.FILE\n ) {\n currentValue = currentValue?.[keyObj.type];\n }\n }\n\n return currentValue as ContentNode;\n};\n"],"mappings":";;;;;;AAKA,MAAa,2BACX,mBACA,SACA,mBACgB;CAChB,IAAI,eAAoB,gBAAgB,iBAAiB;CAEzD,KAAK,MAAM,UAAU,SAAS;EAE5B,OACE,cAAc,aAAaA,yBAAU,eACrC,OAAO,SAASA,yBAAU,aAC1B;GACA,MAAM,eAAe,aAAaA,yBAAU;GAC5C,IAAI,CAAC,cAAc;GACnB,gBACG,kBAAkB,aAAa,oBAChC,OAAO,OAAO,YAAY,CAAC,CAAC;EAChC;EAEA,IAAI,OAAO,SAASA,yBAAU,UAAU,OAAO,SAASA,yBAAU,OAChE,eAAe,eAAe,OAAO;EAGvC,IACE,OAAO,SAASA,yBAAU,eAC1B,OAAO,SAASA,yBAAU,aAC1B,OAAO,SAASA,yBAAU,eAC1B,OAAO,SAASA,yBAAU,UAC1B,OAAO,SAASA,yBAAU,UAC1B,OAAO,SAASA,yBAAU,QAE1B,eAAe,eAAe,OAAO,KAAK,GAAG,OAAO;EAGtD,IACE,OAAO,SAASA,yBAAU,YAC1B,OAAO,SAASA,yBAAU,QAC1B,OAAO,SAASA,yBAAU,aAC1B,OAAO,SAASA,yBAAU,MAE1B,eAAe,eAAe,OAAO;CAEzC;CAEA,OAAO;AACT"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/getDefaultNode.ts
|
|
7
7
|
const getDefaultNode = (nodeType, locales, content) => {
|
|
8
8
|
const clonedContent = structuredClone(content);
|
|
9
9
|
switch (nodeType) {
|
|
@@ -74,6 +74,5 @@ const getDefaultNode = (nodeType, locales, content) => {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
//#endregion
|
|
78
77
|
exports.getDefaultNode = getDefaultNode;
|
|
79
78
|
//# sourceMappingURL=getDefaultNode.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/getEmptyNode.ts
|
|
7
7
|
const getEmptyNode = (section) => {
|
|
8
8
|
if (typeof section === "string") return "";
|
|
9
9
|
if (typeof section === "number") return 0;
|
|
@@ -23,6 +23,5 @@ const getEmptyNode = (section) => {
|
|
|
23
23
|
return Object.fromEntries(mappedSectionObject);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
exports.getEmptyNode = getEmptyNode;
|
|
28
27
|
//# sourceMappingURL=getEmptyNode.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/dictionaryManipulator/getNestedDictionaryReferences.ts
|
|
5
5
|
/**
|
|
6
6
|
* Compact alias some minified pipelines emit in place of `nodeType: 'nested'`.
|
|
7
7
|
* Matched defensively so the scan keeps working on already-minified content.
|
|
@@ -146,7 +146,6 @@ const getNestedDictionaryGraph = (dictionaries) => {
|
|
|
146
146
|
return closeOverNestedEdges(directEdges);
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
//#endregion
|
|
150
149
|
exports.getNestedDictionaryGraph = getNestedDictionaryGraph;
|
|
151
150
|
exports.getNestedDictionaryKeys = getNestedDictionaryKeys;
|
|
152
151
|
exports.getNestedDictionaryReferences = getNestedDictionaryReferences;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
4
4
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/getNodeChildren.ts
|
|
7
7
|
const getNodeChildren = (section) => {
|
|
8
8
|
if (typeof section === "string") return section;
|
|
9
9
|
if (typeof section === "number") return section;
|
|
@@ -21,6 +21,5 @@ const getNodeChildren = (section) => {
|
|
|
21
21
|
return section;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.getNodeChildren = getNodeChildren;
|
|
26
25
|
//# sourceMappingURL=getNodeChildren.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
const require_utils_isValidReactElement = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_utils_isValidReactElement = require("../utils/isValidReactElement.cjs");
|
|
4
4
|
let _intlayer_types_nodeType = require("@intlayer/types/nodeType");
|
|
5
5
|
_intlayer_types_nodeType = require_runtime.__toESM(_intlayer_types_nodeType);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/dictionaryManipulator/getNodeType.ts
|
|
8
8
|
/**
|
|
9
9
|
* Type guard to check if content is a TypedNode
|
|
10
10
|
*/
|
|
@@ -60,6 +60,5 @@ const getNodeType = (content) => {
|
|
|
60
60
|
return _intlayer_types_nodeType.UNKNOWN;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
//#endregion
|
|
64
63
|
exports.getNodeType = getNodeType;
|
|
65
64
|
//# sourceMappingURL=getNodeType.cjs.map
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const require_dictionaryManipulator_removeContentNodeByKeyPath = require(
|
|
19
|
-
const require_dictionaryManipulator_renameContentNodeByKeyPath = require(
|
|
20
|
-
const require_dictionaryManipulator_updateNodeChildren = require(
|
|
2
|
+
const require_dictionaryManipulator_editDictionaryByKeyPath = require("./editDictionaryByKeyPath.cjs");
|
|
3
|
+
const require_dictionaryManipulator_getContentNodeByKeyPath = require("./getContentNodeByKeyPath.cjs");
|
|
4
|
+
const require_dictionaryManipulator_getDefaultNode = require("./getDefaultNode.cjs");
|
|
5
|
+
const require_dictionaryManipulator_getEmptyNode = require("./getEmptyNode.cjs");
|
|
6
|
+
const require_dictionaryManipulator_getNestedDictionaryReferences = require("./getNestedDictionaryReferences.cjs");
|
|
7
|
+
const require_dictionaryManipulator_getNodeChildren = require("./getNodeChildren.cjs");
|
|
8
|
+
const require_dictionaryManipulator_getNodeType = require("./getNodeType.cjs");
|
|
9
|
+
const require_dictionaryManipulator_mergeDictionaries = require("./mergeDictionaries.cjs");
|
|
10
|
+
const require_dictionaryManipulator_mergeQualifiedDictionaries = require("./mergeQualifiedDictionaries.cjs");
|
|
11
|
+
const require_dictionaryManipulator_normalizeDictionary = require("./normalizeDictionary.cjs");
|
|
12
|
+
const require_dictionaryManipulator_orderDictionaries = require("./orderDictionaries.cjs");
|
|
13
|
+
const require_dictionaryManipulator_plainDynamicLoader = require("./plainDynamicLoader.cjs");
|
|
14
|
+
const require_dictionaryManipulator_preloadedDynamicLoader = require("./preloadedDynamicLoader.cjs");
|
|
15
|
+
const require_dictionaryManipulator_qualifiedDictionary = require("./qualifiedDictionary.cjs");
|
|
16
|
+
const require_dictionaryManipulator_qualifiedDictionaryDeclaration = require("./qualifiedDictionaryDeclaration.cjs");
|
|
17
|
+
const require_dictionaryManipulator_qualifiedDynamicLoader = require("./qualifiedDynamicLoader.cjs");
|
|
18
|
+
const require_dictionaryManipulator_removeContentNodeByKeyPath = require("./removeContentNodeByKeyPath.cjs");
|
|
19
|
+
const require_dictionaryManipulator_renameContentNodeByKeyPath = require("./renameContentNodeByKeyPath.cjs");
|
|
20
|
+
const require_dictionaryManipulator_updateNodeChildren = require("./updateNodeChildren.cjs");
|
|
21
21
|
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
22
22
|
|
|
23
23
|
exports.COMPOSITE_ID_SEPARATOR = require_dictionaryManipulator_qualifiedDictionary.COMPOSITE_ID_SEPARATOR;
|
|
24
24
|
exports.DEFAULT_VARIANT_ID = require_dictionaryManipulator_qualifiedDictionary.DEFAULT_VARIANT_ID;
|
|
25
|
-
exports
|
|
26
|
-
|
|
25
|
+
Object.defineProperty(exports, "PRELOADED_DYNAMIC_KEY", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _intlayer_config_defaultValues.PRELOADED_DYNAMIC_KEY;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "QUALIFIER_DYNAMIC_TYPES_KEY", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _intlayer_config_defaultValues.QUALIFIER_DYNAMIC_TYPES_KEY;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
27
37
|
exports.QUALIFIER_ORDER = require_dictionaryManipulator_qualifiedDictionaryDeclaration.QUALIFIER_ORDER;
|
|
28
38
|
exports.editDictionaryByKeyPath = require_dictionaryManipulator_editDictionaryByKeyPath.editDictionaryByKeyPath;
|
|
29
39
|
exports.findPlainDynamicLoader = require_dictionaryManipulator_plainDynamicLoader.findPlainDynamicLoader;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_deepTransformPlugins_getMultilingualDictionary = require(
|
|
3
|
-
const require_dictionaryManipulator_getNodeType = require(
|
|
2
|
+
const require_deepTransformPlugins_getMultilingualDictionary = require("../deepTransformPlugins/getMultilingualDictionary.cjs");
|
|
3
|
+
const require_dictionaryManipulator_getNodeType = require("./getNodeType.cjs");
|
|
4
4
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
5
5
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/dictionaryManipulator/mergeDictionaries.ts
|
|
8
8
|
const checkTypesMatch = (object1, object2, object2LocalId, dictionaryKey, path = []) => {
|
|
9
9
|
const appLogger = (0, _intlayer_config_logger.getAppLogger)({ log: _intlayer_config_built.log });
|
|
10
10
|
if (object1 === void 0 || object1 === null || object2 === void 0 || object2 === null) return;
|
|
@@ -67,6 +67,5 @@ const mergeDictionaries = (dictionaries) => {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
//#endregion
|
|
71
70
|
exports.mergeDictionaries = mergeDictionaries;
|
|
72
71
|
//# sourceMappingURL=mergeDictionaries.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_dictionaryManipulator_qualifiedDictionaryDeclaration = require(
|
|
2
|
+
const require_dictionaryManipulator_mergeDictionaries = require("./mergeDictionaries.cjs");
|
|
3
|
+
const require_dictionaryManipulator_qualifiedDictionary = require("./qualifiedDictionary.cjs");
|
|
4
|
+
const require_dictionaryManipulator_qualifiedDictionaryDeclaration = require("./qualifiedDictionaryDeclaration.cjs");
|
|
5
5
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
6
6
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/dictionaryManipulator/mergeQualifiedDictionaries.ts
|
|
9
9
|
/**
|
|
10
10
|
* Merges sibling dictionaries sharing the same key, honouring qualifiers.
|
|
11
11
|
*
|
|
@@ -86,6 +86,5 @@ const mergeQualifiedDictionaries = (dictionaries) => {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
//#endregion
|
|
90
89
|
exports.mergeQualifiedDictionaries = mergeQualifiedDictionaries;
|
|
91
90
|
//# sourceMappingURL=mergeQualifiedDictionaries.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_dictionaryManipulator_orderDictionaries = require(
|
|
2
|
+
const require_deepTransformPlugins_getLocalizedContent = require("../deepTransformPlugins/getLocalizedContent.cjs");
|
|
3
|
+
const require_transpiler_translation_translation = require("../transpiler/translation/translation.cjs");
|
|
4
|
+
const require_dictionaryManipulator_orderDictionaries = require("./orderDictionaries.cjs");
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/dictionaryManipulator/normalizeDictionary.ts
|
|
7
7
|
const normalizeDictionary = (dictionary, configuration) => {
|
|
8
8
|
const { locales } = configuration.internationalization;
|
|
9
9
|
const parsedDictionary = JSON.parse(JSON.stringify(dictionary));
|
|
@@ -25,7 +25,6 @@ const normalizeDictionaries = (dictionaries, configuration) => {
|
|
|
25
25
|
return require_dictionaryManipulator_orderDictionaries.orderDictionaries(dictionaries, configuration).map((dictionary) => normalizeDictionary(dictionary, configuration));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
exports.normalizeDictionaries = normalizeDictionaries;
|
|
30
29
|
exports.normalizeDictionary = normalizeDictionary;
|
|
31
30
|
//# sourceMappingURL=normalizeDictionary.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/dictionaryManipulator/orderDictionaries.ts
|
|
5
5
|
/**
|
|
6
6
|
* Orders dictionaries based on the dictionary priority strategy.
|
|
7
7
|
*
|
|
@@ -41,6 +41,5 @@ const orderDictionaries = (dictionaries, config) => {
|
|
|
41
41
|
return withIndex.map(({ dictionary }) => dictionary);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
exports.orderDictionaries = orderDictionaries;
|
|
46
45
|
//# sourceMappingURL=orderDictionaries.cjs.map
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
3
3
|
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/dictionaryManipulator/plainDynamicLoader.ts
|
|
6
6
|
/** Marker properties a loader map carries alongside its per-locale loaders. */
|
|
7
7
|
const MARKER_KEYS = [_intlayer_config_defaultValues.PRELOADED_DYNAMIC_KEY, _intlayer_config_defaultValues.QUALIFIER_DYNAMIC_TYPES_KEY];
|
|
8
8
|
/**
|
|
@@ -65,7 +65,6 @@ const resolvePlainDynamicLoader = (loaderMap, key, locale) => {
|
|
|
65
65
|
throw new Error(`[intlayer] No dynamic chunk found for dictionary "${key}" and locale "${locale}". Emitted locales: ${emittedLocales.length > 0 ? emittedLocales.join(", ") : "(none)"}.`);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
//#endregion
|
|
69
68
|
exports.findPlainDynamicLoader = findPlainDynamicLoader;
|
|
70
69
|
exports.resolvePlainDynamicLoader = resolvePlainDynamicLoader;
|
|
71
70
|
//# sourceMappingURL=plainDynamicLoader.cjs.map
|