@intlayer/chokidar 7.0.9-canary.0 → 7.0.9-canary.2
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/README.md +2 -1
- package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs +121 -0
- package/dist/cjs/api/dist/esm/fetcher.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs +164 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs +70 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs +38 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs +32 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs +41 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs +27 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs +94 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs +110 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs +23 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs +39 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs +48 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs +80 -0
- package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs.map +1 -0
- package/dist/cjs/api/dist/esm/proxy.cjs +100 -0
- package/dist/cjs/api/dist/esm/proxy.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +14 -5
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/config/package.cjs +7 -0
- package/dist/cjs/config/dist/esm/config/package.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +83 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +58 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/logger.cjs +114 -0
- package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +28 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs +416 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs +26 -0
- package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs +95 -0
- package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/config/package.cjs +12 -0
- package/dist/cjs/config/package.cjs.map +1 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs +14 -0
- package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs +63 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs +43 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs +32 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs +26 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs +87 -0
- package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs +35 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs +67 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs +29 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs +46 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs +39 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs +28 -0
- package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs +32 -0
- package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs +10 -0
- package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs +28 -0
- package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs +31 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs +49 -0
- package/dist/cjs/core/dist/esm/utils/intl.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs +14 -0
- package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs.map +1 -0
- package/dist/cjs/core/package.cjs +12 -0
- package/dist/cjs/core/package.cjs.map +1 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs +77 -0
- package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs.map +1 -0
- package/dist/cjs/createType/createModuleAugmentation.cjs +1 -2
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +3 -2
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/index.cjs +0 -4
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +12 -12
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs +25 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs +27 -0
- package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs.map +1 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs +11 -0
- package/dist/cjs/utils/camelCaseToSentence.cjs.map +1 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs +11 -0
- package/dist/cjs/utils/cammelCaseToSentense.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +47 -47
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +9 -6
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -0
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/api/dist/esm/fetcher.mjs +120 -0
- package/dist/esm/api/dist/esm/fetcher.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs +164 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs +70 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs +38 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs +32 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs +41 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs +27 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs +94 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs +110 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs +23 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs +39 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs +48 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs.map +1 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs +80 -0
- package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs.map +1 -0
- package/dist/esm/api/dist/esm/proxy.mjs +100 -0
- package/dist/esm/api/dist/esm/proxy.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +15 -6
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/config/dist/esm/logger.mjs +104 -0
- package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs +94 -0
- package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/config/package.mjs +6 -0
- package/dist/esm/config/package.mjs.map +1 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs +13 -0
- package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs.map +1 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs +59 -0
- package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +43 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +32 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs +26 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +87 -0
- package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs +35 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +67 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +29 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs +46 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs +39 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs +28 -0
- package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs.map +1 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs +31 -0
- package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs +10 -0
- package/dist/esm/core/dist/esm/localization/getLocaleName.mjs.map +1 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs +28 -0
- package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs +29 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs +49 -0
- package/dist/esm/core/dist/esm/utils/intl.mjs.map +1 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs +13 -0
- package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs.map +1 -0
- package/dist/esm/core/package.mjs +6 -0
- package/dist/esm/core/package.mjs.map +1 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs +76 -0
- package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs.map +1 -0
- package/dist/esm/createType/createModuleAugmentation.mjs +1 -2
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +12 -12
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/types/dist/esm/nodeType.mjs +24 -0
- package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs +25 -0
- package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs.map +1 -0
- package/dist/esm/utils/camelCaseToSentence.mjs +10 -0
- package/dist/esm/utils/camelCaseToSentence.mjs.map +1 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs +10 -0
- package/dist/esm/utils/cammelCaseToSentense.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +47 -47
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +9 -6
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +1 -0
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +8 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/processContentDeclarationContent.d.ts +13 -0
- package/dist/types/processContentDeclarationContent.d.ts.map +1 -0
- package/dist/types/utils/camelCaseToSentence.d.ts +5 -0
- package/dist/types/utils/camelCaseToSentence.d.ts.map +1 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts +5 -0
- package/dist/types/utils/cammelCaseToSentense.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/package.json +24 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaskContent.cjs","names":["deepTransformNode"],"sources":["../../../../../../../core/dist/esm/deepTransformPlugins/getMaskContent.mjs"],"sourcesContent":["import { deepTransformNode } from \"../interpreter/getContent/deepTransform.mjs\";\n\n//#region src/deepTransformPlugins/getMaskContent.ts\nconst passTypedNodePlugin = {\n\tid: \"pass-typed-node-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && typeof node?.nodeType === \"string\",\n\ttransform: (node, props, deepTransformNode$1) => deepTransformNode$1(node[node.nodeType], props)\n};\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nconst buildMaskPlugin = {\n\tid: \"build-mask-plugin\",\n\tcanHandle: (node) => typeof node === \"string\" || typeof node === \"number\",\n\ttransform: () => true\n};\nconst getMaskContent = (source) => ({\n\t...source,\n\tcontent: deepTransformNode(source.content, {\n\t\tdictionaryKey: source.key,\n\t\tkeyPath: [],\n\t\tplugins: [passTypedNodePlugin, buildMaskPlugin]\n\t})\n});\n\n//#endregion\nexport { buildMaskPlugin, getMaskContent };\n//# sourceMappingURL=getMaskContent.mjs.map"],"mappings":";;;AAGA,MAAM,sBAAsB;CAC3B,IAAI;CACJ,YAAY,SAAS,OAAO,SAAS,YAAY,OAAO,MAAM,aAAa;CAC3E,YAAY,MAAM,OAAO,wBAAwB,oBAAoB,KAAK,KAAK,WAAW,MAAM;CAChG;;AAED,MAAM,kBAAkB;CACvB,IAAI;CACJ,YAAY,SAAS,OAAO,SAAS,YAAY,OAAO,SAAS;CACjE,iBAAiB;CACjB;AACD,MAAM,kBAAkB,YAAY;CACnC,GAAG;CACH,SAASA,wCAAkB,OAAO,SAAS;EAC1C,eAAe,OAAO;EACtB,SAAS,EAAE;EACX,SAAS,CAAC,qBAAqB,gBAAgB;EAC/C,CAAC;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const require_deepTransform = require('../interpreter/getContent/deepTransform.cjs');
|
|
2
|
+
const require_translation = require('../transpiler/translation/translation.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Transform a per-locale dictionary into a multilingual dictionary.
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* ```json
|
|
10
|
+
* {
|
|
11
|
+
* "key": "about-page",
|
|
12
|
+
* "locale": "en",
|
|
13
|
+
* "content": {
|
|
14
|
+
* "myContent": "English content"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ```json
|
|
20
|
+
* {
|
|
21
|
+
* "key": "about-page",
|
|
22
|
+
* "content": {
|
|
23
|
+
* "myContent": t({
|
|
24
|
+
* "en": "English content",
|
|
25
|
+
* })
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
const getMultilingualDictionary = (dictionary) => {
|
|
31
|
+
if (!dictionary.locale) return dictionary;
|
|
32
|
+
const locale = dictionary.locale;
|
|
33
|
+
const transformedContent = require_deepTransform.deepTransformNode(JSON.parse(JSON.stringify(dictionary.content)), {
|
|
34
|
+
dictionaryKey: dictionary.key,
|
|
35
|
+
keyPath: [],
|
|
36
|
+
plugins: [{
|
|
37
|
+
id: "traverse-typed-node-plugin",
|
|
38
|
+
canHandle: (node) => typeof node === "object" && typeof node?.nodeType === "string",
|
|
39
|
+
transform: (node, props, transformFn) => {
|
|
40
|
+
const nodeType = node.nodeType;
|
|
41
|
+
const inner = structuredClone(node[nodeType]);
|
|
42
|
+
if (typeof inner !== "object" || inner === null) {
|
|
43
|
+
const transformed = transformFn(inner, {
|
|
44
|
+
...props,
|
|
45
|
+
children: inner,
|
|
46
|
+
keyPath: [...props.keyPath, {
|
|
47
|
+
type: nodeType,
|
|
48
|
+
key: nodeType
|
|
49
|
+
}]
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
...node,
|
|
53
|
+
[nodeType]: transformed
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
for (const key in inner) {
|
|
57
|
+
const childProps = {
|
|
58
|
+
...props,
|
|
59
|
+
children: inner[key],
|
|
60
|
+
keyPath: [...props.keyPath, {
|
|
61
|
+
type: nodeType,
|
|
62
|
+
key
|
|
63
|
+
}]
|
|
64
|
+
};
|
|
65
|
+
inner[key] = transformFn(inner[key], childProps);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
...node,
|
|
69
|
+
[nodeType]: inner
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
id: "wrap-primitive-in-translation",
|
|
74
|
+
canHandle: (node) => typeof node === "string" || typeof node === "number" || typeof node === "boolean",
|
|
75
|
+
transform: (node) => require_translation.translation({ [locale]: node })
|
|
76
|
+
}]
|
|
77
|
+
});
|
|
78
|
+
const { locale: _omitLocale,...rest } = dictionary;
|
|
79
|
+
return {
|
|
80
|
+
...rest,
|
|
81
|
+
content: transformedContent
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.getMultilingualDictionary = getMultilingualDictionary;
|
|
87
|
+
//# sourceMappingURL=getMultilingualDictionary.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMultilingualDictionary.cjs","names":["deepTransformNode","translation"],"sources":["../../../../../../../core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs"],"sourcesContent":["import { deepTransformNode } from \"../interpreter/getContent/deepTransform.mjs\";\nimport { t as translation } from \"../transpiler/translation/translation.mjs\";\n\n//#region src/deepTransformPlugins/getMultilingualDictionary.ts\n/**\n* Transform a per-locale dictionary into a multilingual dictionary.\n*\n* Example:\n* ```json\n* {\n* \"key\": \"about-page\",\n* \"locale\": \"en\",\n* \"content\": {\n* \"myContent\": \"English content\"\n* }\n* }\n* ```\n*\n* ```json\n* {\n* \"key\": \"about-page\",\n* \"content\": {\n* \"myContent\": t({\n* \"en\": \"English content\",\n* })\n* }\n* }\n* ```\n*/\nconst getMultilingualDictionary = (dictionary) => {\n\tif (!dictionary.locale) return dictionary;\n\tconst locale = dictionary.locale;\n\tconst transformedContent = deepTransformNode(JSON.parse(JSON.stringify(dictionary.content)), {\n\t\tdictionaryKey: dictionary.key,\n\t\tkeyPath: [],\n\t\tplugins: [{\n\t\t\tid: \"traverse-typed-node-plugin\",\n\t\t\tcanHandle: (node) => typeof node === \"object\" && typeof node?.nodeType === \"string\",\n\t\t\ttransform: (node, props, transformFn) => {\n\t\t\t\tconst nodeType = node.nodeType;\n\t\t\t\tconst inner = structuredClone(node[nodeType]);\n\t\t\t\tif (typeof inner !== \"object\" || inner === null) {\n\t\t\t\t\tconst transformed = transformFn(inner, {\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tchildren: inner,\n\t\t\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\t\t\ttype: nodeType,\n\t\t\t\t\t\t\tkey: nodeType\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...node,\n\t\t\t\t\t\t[nodeType]: transformed\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tfor (const key in inner) {\n\t\t\t\t\tconst childProps = {\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tchildren: inner[key],\n\t\t\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\t\t\ttype: nodeType,\n\t\t\t\t\t\t\tkey\n\t\t\t\t\t\t}]\n\t\t\t\t\t};\n\t\t\t\t\tinner[key] = transformFn(inner[key], childProps);\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\t...node,\n\t\t\t\t\t[nodeType]: inner\n\t\t\t\t};\n\t\t\t}\n\t\t}, {\n\t\t\tid: \"wrap-primitive-in-translation\",\n\t\t\tcanHandle: (node) => typeof node === \"string\" || typeof node === \"number\" || typeof node === \"boolean\",\n\t\t\ttransform: (node) => translation({ [locale]: node })\n\t\t}]\n\t});\n\tconst { locale: _omitLocale,...rest } = dictionary;\n\treturn {\n\t\t...rest,\n\t\tcontent: transformedContent\n\t};\n};\n\n//#endregion\nexport { getMultilingualDictionary };\n//# sourceMappingURL=getMultilingualDictionary.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,6BAA6B,eAAe;AACjD,KAAI,CAAC,WAAW,OAAQ,QAAO;CAC/B,MAAM,SAAS,WAAW;CAC1B,MAAM,qBAAqBA,wCAAkB,KAAK,MAAM,KAAK,UAAU,WAAW,QAAQ,CAAC,EAAE;EAC5F,eAAe,WAAW;EAC1B,SAAS,EAAE;EACX,SAAS,CAAC;GACT,IAAI;GACJ,YAAY,SAAS,OAAO,SAAS,YAAY,OAAO,MAAM,aAAa;GAC3E,YAAY,MAAM,OAAO,gBAAgB;IACxC,MAAM,WAAW,KAAK;IACtB,MAAM,QAAQ,gBAAgB,KAAK,UAAU;AAC7C,QAAI,OAAO,UAAU,YAAY,UAAU,MAAM;KAChD,MAAM,cAAc,YAAY,OAAO;MACtC,GAAG;MACH,UAAU;MACV,SAAS,CAAC,GAAG,MAAM,SAAS;OAC3B,MAAM;OACN,KAAK;OACL,CAAC;MACF,CAAC;AACF,YAAO;MACN,GAAG;OACF,WAAW;MACZ;;AAEF,SAAK,MAAM,OAAO,OAAO;KACxB,MAAM,aAAa;MAClB,GAAG;MACH,UAAU,MAAM;MAChB,SAAS,CAAC,GAAG,MAAM,SAAS;OAC3B,MAAM;OACN;OACA,CAAC;MACF;AACD,WAAM,OAAO,YAAY,MAAM,MAAM,WAAW;;AAEjD,WAAO;KACN,GAAG;MACF,WAAW;KACZ;;GAEF,EAAE;GACF,IAAI;GACJ,YAAY,SAAS,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY,OAAO,SAAS;GAC7F,YAAY,SAASC,gCAAY,GAAG,SAAS,MAAM,CAAC;GACpD,CAAC;EACF,CAAC;CACF,MAAM,EAAE,QAAQ,YAAY,GAAG,SAAS;AACxC,QAAO;EACN,GAAG;EACH,SAAS;EACT"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_nodeType = require('../types/dist/esm/nodeType.cjs');
|
|
2
|
+
const require_isValidReactElement = require('../utils/isValidReactElement.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../core/dist/esm/dictionaryManipulator/getNodeType.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Type guard to check if content is a TypedNode
|
|
7
|
+
*/
|
|
8
|
+
const isTypedNode = (content) => {
|
|
9
|
+
return typeof content === "object" && content !== null && "nodeType" in content && typeof content.nodeType === "string";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Type guard to check if content is a valid NodeType
|
|
13
|
+
*/
|
|
14
|
+
const isValidNodeType = (nodeType) => {
|
|
15
|
+
return Object.values(require_nodeType.NodeType).includes(nodeType);
|
|
16
|
+
};
|
|
17
|
+
const getNodeType = (content) => {
|
|
18
|
+
if (typeof content === "string") return require_nodeType.NodeType.Text;
|
|
19
|
+
if (isTypedNode(content)) {
|
|
20
|
+
const nodeType = content.nodeType;
|
|
21
|
+
if (isValidNodeType(nodeType)) return nodeType;
|
|
22
|
+
return require_nodeType.NodeType.Unknown;
|
|
23
|
+
}
|
|
24
|
+
if (Array.isArray(content)) return require_nodeType.NodeType.Array;
|
|
25
|
+
if (require_isValidReactElement.isValidElement(content)) return require_nodeType.NodeType.ReactNode;
|
|
26
|
+
if (typeof content === "number") return require_nodeType.NodeType.Number;
|
|
27
|
+
if (typeof content === "boolean") return require_nodeType.NodeType.Boolean;
|
|
28
|
+
if (content && typeof content === "object") return require_nodeType.NodeType.Object;
|
|
29
|
+
if (content === null) return require_nodeType.NodeType.Null;
|
|
30
|
+
return require_nodeType.NodeType.Unknown;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.getNodeType = getNodeType;
|
|
35
|
+
//# sourceMappingURL=getNodeType.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNodeType.cjs","names":["NodeType","isValidElement"],"sources":["../../../../../../../core/dist/esm/dictionaryManipulator/getNodeType.mjs"],"sourcesContent":["import { NodeType } from \"../types/dist/esm/nodeType.mjs\";\nimport { isValidElement } from \"../utils/isValidReactElement.mjs\";\n\n//#region src/dictionaryManipulator/getNodeType.ts\n/**\n* Type guard to check if content is a TypedNode\n*/\nconst isTypedNode = (content) => {\n\treturn typeof content === \"object\" && content !== null && \"nodeType\" in content && typeof content.nodeType === \"string\";\n};\n/**\n* Type guard to check if content is a valid NodeType\n*/\nconst isValidNodeType = (nodeType) => {\n\treturn Object.values(NodeType).includes(nodeType);\n};\nconst getNodeType = (content) => {\n\tif (typeof content === \"string\") return NodeType.Text;\n\tif (isTypedNode(content)) {\n\t\tconst nodeType = content.nodeType;\n\t\tif (isValidNodeType(nodeType)) return nodeType;\n\t\treturn NodeType.Unknown;\n\t}\n\tif (Array.isArray(content)) return NodeType.Array;\n\tif (isValidElement(content)) return NodeType.ReactNode;\n\tif (typeof content === \"number\") return NodeType.Number;\n\tif (typeof content === \"boolean\") return NodeType.Boolean;\n\tif (content && typeof content === \"object\") return NodeType.Object;\n\tif (content === null) return NodeType.Null;\n\treturn NodeType.Unknown;\n};\n\n//#endregion\nexport { getNodeType };\n//# sourceMappingURL=getNodeType.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,eAAe,YAAY;AAChC,QAAO,OAAO,YAAY,YAAY,YAAY,QAAQ,cAAc,WAAW,OAAO,QAAQ,aAAa;;;;;AAKhH,MAAM,mBAAmB,aAAa;AACrC,QAAO,OAAO,OAAOA,0BAAS,CAAC,SAAS,SAAS;;AAElD,MAAM,eAAe,YAAY;AAChC,KAAI,OAAO,YAAY,SAAU,QAAOA,0BAAS;AACjD,KAAI,YAAY,QAAQ,EAAE;EACzB,MAAM,WAAW,QAAQ;AACzB,MAAI,gBAAgB,SAAS,CAAE,QAAO;AACtC,SAAOA,0BAAS;;AAEjB,KAAI,MAAM,QAAQ,QAAQ,CAAE,QAAOA,0BAAS;AAC5C,KAAIC,2CAAe,QAAQ,CAAE,QAAOD,0BAAS;AAC7C,KAAI,OAAO,YAAY,SAAU,QAAOA,0BAAS;AACjD,KAAI,OAAO,YAAY,UAAW,QAAOA,0BAAS;AAClD,KAAI,WAAW,OAAO,YAAY,SAAU,QAAOA,0BAAS;AAC5D,KAAI,YAAY,KAAM,QAAOA,0BAAS;AACtC,QAAOA,0BAAS"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const require_logger = require('../config/dist/esm/logger.cjs');
|
|
2
|
+
const require_built = require('../config/dist/esm/built.cjs');
|
|
3
|
+
const require_getMultilingualDictionary = require('../deepTransformPlugins/getMultilingualDictionary.cjs');
|
|
4
|
+
const require_getNodeType = require('./getNodeType.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs
|
|
7
|
+
const checkTypesMatch = (object1, object2, object2LocalId, dictionaryKey, path = []) => {
|
|
8
|
+
const appLogger = require_logger.getAppLogger(require_built.built_default);
|
|
9
|
+
if (object1 === void 0 || object1 === null || object2 === void 0 || object2 === null) return;
|
|
10
|
+
const type1 = require_getNodeType.getNodeType(object1);
|
|
11
|
+
const type2 = require_getNodeType.getNodeType(object2);
|
|
12
|
+
if (type1 === "unknown" || type2 === "unknown") return;
|
|
13
|
+
if (type1 !== type2) {
|
|
14
|
+
appLogger([`Error: Dictionary ${require_logger.colorizeKey(dictionaryKey)} has a multiple content files with type mismatch at path "${path.join(".")}": Cannot merge ${type1} with ${type2} while merging ${object2LocalId}`], { level: "error" });
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const customMerge = (destination, source) => {
|
|
19
|
+
if (destination === void 0 || destination === null) return source;
|
|
20
|
+
if (source === void 0 || source === null) return destination;
|
|
21
|
+
if (typeof destination !== "object" || typeof source !== "object") return destination;
|
|
22
|
+
if (Array.isArray(destination) && Array.isArray(source)) return arrayMerge(destination, source);
|
|
23
|
+
if (typeof destination === "object" && typeof source === "object") {
|
|
24
|
+
const result = {};
|
|
25
|
+
const allKeys = new Set([...Object.keys(destination), ...Object.keys(source)]);
|
|
26
|
+
for (const key of allKeys) result[key] = customMerge(destination[key], source[key]);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
return destination;
|
|
30
|
+
};
|
|
31
|
+
const arrayMerge = (destinationArray, sourceArray) => {
|
|
32
|
+
const destHasOnlyPrimitives = destinationArray.every((item) => typeof item !== "object" || item === null);
|
|
33
|
+
const sourceHasOnlyPrimitives = sourceArray.every((item) => typeof item !== "object" || item === null);
|
|
34
|
+
if (destHasOnlyPrimitives && sourceHasOnlyPrimitives) return sourceArray;
|
|
35
|
+
const result = [];
|
|
36
|
+
const maxLength = Math.max(destinationArray.length, sourceArray.length);
|
|
37
|
+
for (let i = 0; i < maxLength; i++) {
|
|
38
|
+
const destItem = destinationArray[i];
|
|
39
|
+
const sourceItem = sourceArray[i];
|
|
40
|
+
if (destItem === void 0 && sourceItem === void 0) {} else if (destItem === void 0) result.push(sourceItem);
|
|
41
|
+
else if (sourceItem === void 0) result.push(destItem);
|
|
42
|
+
else if (typeof destItem === "object" && typeof sourceItem === "object" && destItem !== null && sourceItem !== null) if ("key" in destItem && "key" in sourceItem && destItem.key === sourceItem.key) result.push(customMerge(destItem, sourceItem));
|
|
43
|
+
else result.push(customMerge(destItem, sourceItem));
|
|
44
|
+
else result.push(destItem);
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
const mergeDictionaries = (dictionaries) => {
|
|
49
|
+
const localIds = Array.from(new Set(dictionaries.filter((dict) => dict.localId).map((dict) => dict.localId)));
|
|
50
|
+
const dictionariesKeys = dictionaries.map((dict) => dict.key);
|
|
51
|
+
if (new Set(dictionariesKeys).size !== 1) throw new Error("All dictionaries must have the same key");
|
|
52
|
+
let mergedContent = dictionaries[0].content;
|
|
53
|
+
for (let i = 1; i < dictionaries.length; i++) {
|
|
54
|
+
const currentDictionary = require_getMultilingualDictionary.getMultilingualDictionary(dictionaries[i]);
|
|
55
|
+
checkTypesMatch(mergedContent, currentDictionary.content, currentDictionary.localId, currentDictionary.key, []);
|
|
56
|
+
mergedContent = customMerge(mergedContent, currentDictionary.content);
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
key: dictionaries[0].key,
|
|
60
|
+
content: mergedContent,
|
|
61
|
+
localIds
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
exports.mergeDictionaries = mergeDictionaries;
|
|
67
|
+
//# sourceMappingURL=mergeDictionaries.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeDictionaries.cjs","names":["getAppLogger","built_default","getNodeType","colorizeKey","getMultilingualDictionary"],"sources":["../../../../../../../core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs"],"sourcesContent":["import { colorizeKey, getAppLogger } from \"../config/dist/esm/logger.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\nimport { getMultilingualDictionary } from \"../deepTransformPlugins/getMultilingualDictionary.mjs\";\nimport { getNodeType } from \"./getNodeType.mjs\";\n\n//#region src/dictionaryManipulator/mergeDictionaries.ts\nconst checkTypesMatch = (object1, object2, object2LocalId, dictionaryKey, path = []) => {\n\tconst appLogger = getAppLogger(built_default);\n\tif (object1 === void 0 || object1 === null || object2 === void 0 || object2 === null) return;\n\tconst type1 = getNodeType(object1);\n\tconst type2 = getNodeType(object2);\n\tif (type1 === \"unknown\" || type2 === \"unknown\") return;\n\tif (type1 !== type2) {\n\t\tappLogger([`Error: Dictionary ${colorizeKey(dictionaryKey)} has a multiple content files with type mismatch at path \"${path.join(\".\")}\": Cannot merge ${type1} with ${type2} while merging ${object2LocalId}`], { level: \"error\" });\n\t\treturn;\n\t}\n};\nconst customMerge = (destination, source) => {\n\tif (destination === void 0 || destination === null) return source;\n\tif (source === void 0 || source === null) return destination;\n\tif (typeof destination !== \"object\" || typeof source !== \"object\") return destination;\n\tif (Array.isArray(destination) && Array.isArray(source)) return arrayMerge(destination, source);\n\tif (typeof destination === \"object\" && typeof source === \"object\") {\n\t\tconst result = {};\n\t\tconst allKeys = new Set([...Object.keys(destination), ...Object.keys(source)]);\n\t\tfor (const key of allKeys) result[key] = customMerge(destination[key], source[key]);\n\t\treturn result;\n\t}\n\treturn destination;\n};\nconst arrayMerge = (destinationArray, sourceArray) => {\n\tconst destHasOnlyPrimitives = destinationArray.every((item) => typeof item !== \"object\" || item === null);\n\tconst sourceHasOnlyPrimitives = sourceArray.every((item) => typeof item !== \"object\" || item === null);\n\tif (destHasOnlyPrimitives && sourceHasOnlyPrimitives) return sourceArray;\n\tconst result = [];\n\tconst maxLength = Math.max(destinationArray.length, sourceArray.length);\n\tfor (let i = 0; i < maxLength; i++) {\n\t\tconst destItem = destinationArray[i];\n\t\tconst sourceItem = sourceArray[i];\n\t\tif (destItem === void 0 && sourceItem === void 0) {} else if (destItem === void 0) result.push(sourceItem);\n\t\telse if (sourceItem === void 0) result.push(destItem);\n\t\telse if (typeof destItem === \"object\" && typeof sourceItem === \"object\" && destItem !== null && sourceItem !== null) if (\"key\" in destItem && \"key\" in sourceItem && destItem.key === sourceItem.key) result.push(customMerge(destItem, sourceItem));\n\t\telse result.push(customMerge(destItem, sourceItem));\n\t\telse result.push(destItem);\n\t}\n\treturn result;\n};\nconst mergeDictionaries = (dictionaries) => {\n\tconst localIds = Array.from(new Set(dictionaries.filter((dict) => dict.localId).map((dict) => dict.localId)));\n\tconst dictionariesKeys = dictionaries.map((dict) => dict.key);\n\tif (new Set(dictionariesKeys).size !== 1) throw new Error(\"All dictionaries must have the same key\");\n\tlet mergedContent = dictionaries[0].content;\n\tfor (let i = 1; i < dictionaries.length; i++) {\n\t\tconst currentDictionary = getMultilingualDictionary(dictionaries[i]);\n\t\tcheckTypesMatch(mergedContent, currentDictionary.content, currentDictionary.localId, currentDictionary.key, []);\n\t\tmergedContent = customMerge(mergedContent, currentDictionary.content);\n\t}\n\treturn {\n\t\tkey: dictionaries[0].key,\n\t\tcontent: mergedContent,\n\t\tlocalIds\n\t};\n};\n\n//#endregion\nexport { mergeDictionaries };\n//# sourceMappingURL=mergeDictionaries.mjs.map"],"mappings":";;;;;;AAMA,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,eAAe,OAAO,EAAE,KAAK;CACvF,MAAM,YAAYA,4BAAaC,4BAAc;AAC7C,KAAI,YAAY,KAAK,KAAK,YAAY,QAAQ,YAAY,KAAK,KAAK,YAAY,KAAM;CACtF,MAAM,QAAQC,gCAAY,QAAQ;CAClC,MAAM,QAAQA,gCAAY,QAAQ;AAClC,KAAI,UAAU,aAAa,UAAU,UAAW;AAChD,KAAI,UAAU,OAAO;AACpB,YAAU,CAAC,qBAAqBC,2BAAY,cAAc,CAAC,4DAA4D,KAAK,KAAK,IAAI,CAAC,kBAAkB,MAAM,QAAQ,MAAM,iBAAiB,iBAAiB,EAAE,EAAE,OAAO,SAAS,CAAC;AACnO;;;AAGF,MAAM,eAAe,aAAa,WAAW;AAC5C,KAAI,gBAAgB,KAAK,KAAK,gBAAgB,KAAM,QAAO;AAC3D,KAAI,WAAW,KAAK,KAAK,WAAW,KAAM,QAAO;AACjD,KAAI,OAAO,gBAAgB,YAAY,OAAO,WAAW,SAAU,QAAO;AAC1E,KAAI,MAAM,QAAQ,YAAY,IAAI,MAAM,QAAQ,OAAO,CAAE,QAAO,WAAW,aAAa,OAAO;AAC/F,KAAI,OAAO,gBAAgB,YAAY,OAAO,WAAW,UAAU;EAClE,MAAM,SAAS,EAAE;EACjB,MAAM,UAAU,IAAI,IAAI,CAAC,GAAG,OAAO,KAAK,YAAY,EAAE,GAAG,OAAO,KAAK,OAAO,CAAC,CAAC;AAC9E,OAAK,MAAM,OAAO,QAAS,QAAO,OAAO,YAAY,YAAY,MAAM,OAAO,KAAK;AACnF,SAAO;;AAER,QAAO;;AAER,MAAM,cAAc,kBAAkB,gBAAgB;CACrD,MAAM,wBAAwB,iBAAiB,OAAO,SAAS,OAAO,SAAS,YAAY,SAAS,KAAK;CACzG,MAAM,0BAA0B,YAAY,OAAO,SAAS,OAAO,SAAS,YAAY,SAAS,KAAK;AACtG,KAAI,yBAAyB,wBAAyB,QAAO;CAC7D,MAAM,SAAS,EAAE;CACjB,MAAM,YAAY,KAAK,IAAI,iBAAiB,QAAQ,YAAY,OAAO;AACvE,MAAK,IAAI,IAAI,GAAG,IAAI,WAAW,KAAK;EACnC,MAAM,WAAW,iBAAiB;EAClC,MAAM,aAAa,YAAY;AAC/B,MAAI,aAAa,KAAK,KAAK,eAAe,KAAK,GAAG,YAAY,aAAa,KAAK,EAAG,QAAO,KAAK,WAAW;WACjG,eAAe,KAAK,EAAG,QAAO,KAAK,SAAS;WAC5C,OAAO,aAAa,YAAY,OAAO,eAAe,YAAY,aAAa,QAAQ,eAAe,KAAM,KAAI,SAAS,YAAY,SAAS,cAAc,SAAS,QAAQ,WAAW,IAAK,QAAO,KAAK,YAAY,UAAU,WAAW,CAAC;MAC/O,QAAO,KAAK,YAAY,UAAU,WAAW,CAAC;MAC9C,QAAO,KAAK,SAAS;;AAE3B,QAAO;;AAER,MAAM,qBAAqB,iBAAiB;CAC3C,MAAM,WAAW,MAAM,KAAK,IAAI,IAAI,aAAa,QAAQ,SAAS,KAAK,QAAQ,CAAC,KAAK,SAAS,KAAK,QAAQ,CAAC,CAAC;CAC7G,MAAM,mBAAmB,aAAa,KAAK,SAAS,KAAK,IAAI;AAC7D,KAAI,IAAI,IAAI,iBAAiB,CAAC,SAAS,EAAG,OAAM,IAAI,MAAM,0CAA0C;CACpG,IAAI,gBAAgB,aAAa,GAAG;AACpC,MAAK,IAAI,IAAI,GAAG,IAAI,aAAa,QAAQ,KAAK;EAC7C,MAAM,oBAAoBC,4DAA0B,aAAa,GAAG;AACpE,kBAAgB,eAAe,kBAAkB,SAAS,kBAAkB,SAAS,kBAAkB,KAAK,EAAE,CAAC;AAC/G,kBAAgB,YAAY,eAAe,kBAAkB,QAAQ;;AAEtE,QAAO;EACN,KAAK,aAAa,GAAG;EACrB,SAAS;EACT;EACA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_translation = require('../transpiler/translation/translation.cjs');
|
|
2
|
+
const require_getLocalizedContent = require('../deepTransformPlugins/getLocalizedContent.cjs');
|
|
3
|
+
const require_orderDictionaries = require('./orderDictionaries.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs
|
|
6
|
+
const normalizeDictionary = (dictionary, configuration) => {
|
|
7
|
+
const { locales } = configuration.internationalization;
|
|
8
|
+
const parsedDictionary = JSON.parse(JSON.stringify(dictionary));
|
|
9
|
+
if (dictionary.locale) return {
|
|
10
|
+
...dictionary,
|
|
11
|
+
locale: void 0,
|
|
12
|
+
content: require_translation.translation({ [dictionary.locale]: dictionary.content })
|
|
13
|
+
};
|
|
14
|
+
const perLocaleContent = locales.reduce((acc, locale) => {
|
|
15
|
+
acc[locale] = require_getLocalizedContent.getPerLocaleDictionary(parsedDictionary, locale).content;
|
|
16
|
+
return acc;
|
|
17
|
+
}, {});
|
|
18
|
+
return {
|
|
19
|
+
...dictionary,
|
|
20
|
+
content: require_translation.translation(perLocaleContent)
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const normalizeDictionaries = (dictionaries, configuration) => {
|
|
24
|
+
return require_orderDictionaries.orderDictionaries(dictionaries, configuration).map((dictionary) => normalizeDictionary(dictionary, configuration));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.normalizeDictionaries = normalizeDictionaries;
|
|
29
|
+
//# sourceMappingURL=normalizeDictionary.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeDictionary.cjs","names":["translation","getPerLocaleDictionary","orderDictionaries"],"sources":["../../../../../../../core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs"],"sourcesContent":["import { t as translation } from \"../transpiler/translation/translation.mjs\";\nimport { getPerLocaleDictionary } from \"../deepTransformPlugins/getLocalizedContent.mjs\";\nimport { orderDictionaries } from \"./orderDictionaries.mjs\";\n\n//#region src/dictionaryManipulator/normalizeDictionary.ts\nconst normalizeDictionary = (dictionary, configuration) => {\n\tconst { locales } = configuration.internationalization;\n\tconst parsedDictionary = JSON.parse(JSON.stringify(dictionary));\n\tif (dictionary.locale) return {\n\t\t...dictionary,\n\t\tlocale: void 0,\n\t\tcontent: translation({ [dictionary.locale]: dictionary.content })\n\t};\n\tconst perLocaleContent = locales.reduce((acc, locale) => {\n\t\tacc[locale] = getPerLocaleDictionary(parsedDictionary, locale).content;\n\t\treturn acc;\n\t}, {});\n\treturn {\n\t\t...dictionary,\n\t\tcontent: translation(perLocaleContent)\n\t};\n};\nconst normalizeDictionaries = (dictionaries, configuration) => {\n\treturn orderDictionaries(dictionaries, configuration).map((dictionary) => normalizeDictionary(dictionary, configuration));\n};\n\n//#endregion\nexport { normalizeDictionaries, normalizeDictionary };\n//# sourceMappingURL=normalizeDictionary.mjs.map"],"mappings":";;;;;AAKA,MAAM,uBAAuB,YAAY,kBAAkB;CAC1D,MAAM,EAAE,YAAY,cAAc;CAClC,MAAM,mBAAmB,KAAK,MAAM,KAAK,UAAU,WAAW,CAAC;AAC/D,KAAI,WAAW,OAAQ,QAAO;EAC7B,GAAG;EACH,QAAQ,KAAK;EACb,SAASA,gCAAY,GAAG,WAAW,SAAS,WAAW,SAAS,CAAC;EACjE;CACD,MAAM,mBAAmB,QAAQ,QAAQ,KAAK,WAAW;AACxD,MAAI,UAAUC,mDAAuB,kBAAkB,OAAO,CAAC;AAC/D,SAAO;IACL,EAAE,CAAC;AACN,QAAO;EACN,GAAG;EACH,SAASD,gCAAY,iBAAiB;EACtC;;AAEF,MAAM,yBAAyB,cAAc,kBAAkB;AAC9D,QAAOE,4CAAkB,cAAc,cAAc,CAAC,KAAK,eAAe,oBAAoB,YAAY,cAAc,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_built = require('../config/dist/esm/built.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../core/dist/esm/dictionaryManipulator/orderDictionaries.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Orders dictionaries based on the dictionary priority strategy.
|
|
6
|
+
*
|
|
7
|
+
* @param dictionaries - Array of dictionaries to order
|
|
8
|
+
* @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')
|
|
9
|
+
* @returns Ordered array of dictionaries
|
|
10
|
+
*/
|
|
11
|
+
const orderDictionaries = (dictionaries, configuration = require_built.built_default) => {
|
|
12
|
+
const { editor } = configuration;
|
|
13
|
+
const { dictionaryPriorityStrategy } = editor;
|
|
14
|
+
if (dictionaries.length <= 1) return dictionaries;
|
|
15
|
+
const withIndex = dictionaries.map((dictionary, index) => ({
|
|
16
|
+
dictionary,
|
|
17
|
+
index
|
|
18
|
+
}));
|
|
19
|
+
const getPriority = (dictionary) => {
|
|
20
|
+
const p = dictionary.priority ?? 0;
|
|
21
|
+
return Number.isFinite(p) ? p : 0;
|
|
22
|
+
};
|
|
23
|
+
const getLocationWeight = (d) => {
|
|
24
|
+
const location = d.location;
|
|
25
|
+
if (location === void 0) return 2;
|
|
26
|
+
if (dictionaryPriorityStrategy === "distant_first") return location === "remote" ? 0 : 1;
|
|
27
|
+
return location === "local" ? 0 : 1;
|
|
28
|
+
};
|
|
29
|
+
withIndex.sort((a, b) => {
|
|
30
|
+
const aAuto = a.dictionary.filled ? 1 : 0;
|
|
31
|
+
const bAuto = b.dictionary.filled ? 1 : 0;
|
|
32
|
+
if (aAuto !== bAuto) return aAuto - bAuto;
|
|
33
|
+
const aP = getPriority(a.dictionary);
|
|
34
|
+
const bP = getPriority(b.dictionary);
|
|
35
|
+
if (aP !== bP) return bP - aP;
|
|
36
|
+
const aLocation = getLocationWeight(a.dictionary);
|
|
37
|
+
const bLocation = getLocationWeight(b.dictionary);
|
|
38
|
+
if (aLocation !== bLocation) return aLocation - bLocation;
|
|
39
|
+
return a.index - b.index;
|
|
40
|
+
});
|
|
41
|
+
return withIndex.map(({ dictionary }) => dictionary);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.orderDictionaries = orderDictionaries;
|
|
46
|
+
//# sourceMappingURL=orderDictionaries.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderDictionaries.cjs","names":["built_default"],"sources":["../../../../../../../core/dist/esm/dictionaryManipulator/orderDictionaries.mjs"],"sourcesContent":["import { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/dictionaryManipulator/orderDictionaries.ts\n/**\n* Orders dictionaries based on the dictionary priority strategy.\n*\n* @param dictionaries - Array of dictionaries to order\n* @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')\n* @returns Ordered array of dictionaries\n*/\nconst orderDictionaries = (dictionaries, configuration = built_default) => {\n\tconst { editor } = configuration;\n\tconst { dictionaryPriorityStrategy } = editor;\n\tif (dictionaries.length <= 1) return dictionaries;\n\tconst withIndex = dictionaries.map((dictionary, index) => ({\n\t\tdictionary,\n\t\tindex\n\t}));\n\tconst getPriority = (dictionary) => {\n\t\tconst p = dictionary.priority ?? 0;\n\t\treturn Number.isFinite(p) ? p : 0;\n\t};\n\tconst getLocationWeight = (d) => {\n\t\tconst location = d.location;\n\t\tif (location === void 0) return 2;\n\t\tif (dictionaryPriorityStrategy === \"distant_first\") return location === \"remote\" ? 0 : 1;\n\t\treturn location === \"local\" ? 0 : 1;\n\t};\n\twithIndex.sort((a, b) => {\n\t\tconst aAuto = a.dictionary.filled ? 1 : 0;\n\t\tconst bAuto = b.dictionary.filled ? 1 : 0;\n\t\tif (aAuto !== bAuto) return aAuto - bAuto;\n\t\tconst aP = getPriority(a.dictionary);\n\t\tconst bP = getPriority(b.dictionary);\n\t\tif (aP !== bP) return bP - aP;\n\t\tconst aLocation = getLocationWeight(a.dictionary);\n\t\tconst bLocation = getLocationWeight(b.dictionary);\n\t\tif (aLocation !== bLocation) return aLocation - bLocation;\n\t\treturn a.index - b.index;\n\t});\n\treturn withIndex.map(({ dictionary }) => dictionary);\n};\n\n//#endregion\nexport { orderDictionaries };\n//# sourceMappingURL=orderDictionaries.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,qBAAqB,cAAc,gBAAgBA,gCAAkB;CAC1E,MAAM,EAAE,WAAW;CACnB,MAAM,EAAE,+BAA+B;AACvC,KAAI,aAAa,UAAU,EAAG,QAAO;CACrC,MAAM,YAAY,aAAa,KAAK,YAAY,WAAW;EAC1D;EACA;EACA,EAAE;CACH,MAAM,eAAe,eAAe;EACnC,MAAM,IAAI,WAAW,YAAY;AACjC,SAAO,OAAO,SAAS,EAAE,GAAG,IAAI;;CAEjC,MAAM,qBAAqB,MAAM;EAChC,MAAM,WAAW,EAAE;AACnB,MAAI,aAAa,KAAK,EAAG,QAAO;AAChC,MAAI,+BAA+B,gBAAiB,QAAO,aAAa,WAAW,IAAI;AACvF,SAAO,aAAa,UAAU,IAAI;;AAEnC,WAAU,MAAM,GAAG,MAAM;EACxB,MAAM,QAAQ,EAAE,WAAW,SAAS,IAAI;EACxC,MAAM,QAAQ,EAAE,WAAW,SAAS,IAAI;AACxC,MAAI,UAAU,MAAO,QAAO,QAAQ;EACpC,MAAM,KAAK,YAAY,EAAE,WAAW;EACpC,MAAM,KAAK,YAAY,EAAE,WAAW;AACpC,MAAI,OAAO,GAAI,QAAO,KAAK;EAC3B,MAAM,YAAY,kBAAkB,EAAE,WAAW;EACjD,MAAM,YAAY,kBAAkB,EAAE,WAAW;AACjD,MAAI,cAAc,UAAW,QAAO,YAAY;AAChD,SAAO,EAAE,QAAQ,EAAE;GAClB;AACF,QAAO,UAAU,KAAK,EAAE,iBAAiB,WAAW"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_nodeType = require('../../types/dist/esm/nodeType.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../core/dist/esm/interpreter/getContent/deepTransform.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Recursively traverses a node (object/array/primitive).
|
|
6
|
+
* Applies the *first* plugin that can transform a node, then stops descending further.
|
|
7
|
+
* If no plugin transforms it, it recurses into its children.
|
|
8
|
+
*/
|
|
9
|
+
const deepTransformNode = (node, props) => {
|
|
10
|
+
for (const plugin of props.plugins ?? []) if (plugin.canHandle(node)) return plugin.transform(node, props, (node$1, props$1) => deepTransformNode(node$1, props$1));
|
|
11
|
+
if (node === null || typeof node !== "object") return node;
|
|
12
|
+
if (Array.isArray(node)) return node.map((child, index) => {
|
|
13
|
+
return deepTransformNode(child, {
|
|
14
|
+
...props,
|
|
15
|
+
children: child,
|
|
16
|
+
keyPath: [...props.keyPath, {
|
|
17
|
+
type: require_nodeType.NodeType.Array,
|
|
18
|
+
key: index
|
|
19
|
+
}]
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
const result = {};
|
|
23
|
+
for (const key in node) {
|
|
24
|
+
const childProps = {
|
|
25
|
+
...props,
|
|
26
|
+
children: node[key],
|
|
27
|
+
keyPath: [...props.keyPath, {
|
|
28
|
+
type: require_nodeType.NodeType.Object,
|
|
29
|
+
key
|
|
30
|
+
}]
|
|
31
|
+
};
|
|
32
|
+
result[key] = deepTransformNode(node[key], childProps);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.deepTransformNode = deepTransformNode;
|
|
39
|
+
//# sourceMappingURL=deepTransform.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepTransform.cjs","names":["NodeType"],"sources":["../../../../../../../../core/dist/esm/interpreter/getContent/deepTransform.mjs"],"sourcesContent":["import { NodeType } from \"../../types/dist/esm/nodeType.mjs\";\n\n//#region src/interpreter/getContent/deepTransform.ts\n/**\n* Recursively traverses a node (object/array/primitive).\n* Applies the *first* plugin that can transform a node, then stops descending further.\n* If no plugin transforms it, it recurses into its children.\n*/\nconst deepTransformNode = (node, props) => {\n\tfor (const plugin of props.plugins ?? []) if (plugin.canHandle(node)) return plugin.transform(node, props, (node$1, props$1) => deepTransformNode(node$1, props$1));\n\tif (node === null || typeof node !== \"object\") return node;\n\tif (Array.isArray(node)) return node.map((child, index) => {\n\t\treturn deepTransformNode(child, {\n\t\t\t...props,\n\t\t\tchildren: child,\n\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\ttype: NodeType.Array,\n\t\t\t\tkey: index\n\t\t\t}]\n\t\t});\n\t});\n\tconst result = {};\n\tfor (const key in node) {\n\t\tconst childProps = {\n\t\t\t...props,\n\t\t\tchildren: node[key],\n\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\ttype: NodeType.Object,\n\t\t\t\tkey\n\t\t\t}]\n\t\t};\n\t\tresult[key] = deepTransformNode(node[key], childProps);\n\t}\n\treturn result;\n};\n\n//#endregion\nexport { deepTransformNode };\n//# sourceMappingURL=deepTransform.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,qBAAqB,MAAM,UAAU;AAC1C,MAAK,MAAM,UAAU,MAAM,WAAW,EAAE,CAAE,KAAI,OAAO,UAAU,KAAK,CAAE,QAAO,OAAO,UAAU,MAAM,QAAQ,QAAQ,YAAY,kBAAkB,QAAQ,QAAQ,CAAC;AACnK,KAAI,SAAS,QAAQ,OAAO,SAAS,SAAU,QAAO;AACtD,KAAI,MAAM,QAAQ,KAAK,CAAE,QAAO,KAAK,KAAK,OAAO,UAAU;AAC1D,SAAO,kBAAkB,OAAO;GAC/B,GAAG;GACH,UAAU;GACV,SAAS,CAAC,GAAG,MAAM,SAAS;IAC3B,MAAMA,0BAAS;IACf,KAAK;IACL,CAAC;GACF,CAAC;GACD;CACF,MAAM,SAAS,EAAE;AACjB,MAAK,MAAM,OAAO,MAAM;EACvB,MAAM,aAAa;GAClB,GAAG;GACH,UAAU,KAAK;GACf,SAAS,CAAC,GAAG,MAAM,SAAS;IAC3B,MAAMA,0BAAS;IACf;IACA,CAAC;GACF;AACD,SAAO,OAAO,kBAAkB,KAAK,MAAM,WAAW;;AAEvD,QAAO"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_nodeType = require('../../types/dist/esm/nodeType.cjs');
|
|
2
|
+
const require_getTranslation = require('../getTranslation.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../core/dist/esm/interpreter/getContent/plugins.mjs
|
|
5
|
+
/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */
|
|
6
|
+
const translationPlugin = (locale, fallback) => ({
|
|
7
|
+
id: "translation-plugin",
|
|
8
|
+
canHandle: (node) => typeof node === "object" && node?.nodeType === require_nodeType.NodeType.Translation,
|
|
9
|
+
transform: (node, props, deepTransformNode) => {
|
|
10
|
+
const result = structuredClone(node[require_nodeType.NodeType.Translation]);
|
|
11
|
+
for (const key in result) {
|
|
12
|
+
const childProps = {
|
|
13
|
+
...props,
|
|
14
|
+
children: result[key],
|
|
15
|
+
keyPath: [...props.keyPath, {
|
|
16
|
+
type: require_nodeType.NodeType.Translation,
|
|
17
|
+
key
|
|
18
|
+
}]
|
|
19
|
+
};
|
|
20
|
+
result[key] = deepTransformNode(result[key], childProps);
|
|
21
|
+
}
|
|
22
|
+
return require_getTranslation.getTranslation(result, locale, fallback);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.translationPlugin = translationPlugin;
|
|
28
|
+
//# sourceMappingURL=plugins.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.cjs","names":["NodeType","getTranslation"],"sources":["../../../../../../../../core/dist/esm/interpreter/getContent/plugins.mjs"],"sourcesContent":["import { NodeType } from \"../../types/dist/esm/nodeType.mjs\";\nimport { getCondition } from \"../getCondition.mjs\";\nimport { getEnumeration } from \"../getEnumeration.mjs\";\nimport { getGender } from \"../getGender.mjs\";\nimport { getInsertion } from \"../getInsertion.mjs\";\nimport { getNesting } from \"../getNesting.mjs\";\nimport { getTranslation } from \"../getTranslation.mjs\";\n\n//#region src/interpreter/getContent/plugins.ts\n/** Translation plugin. Replaces node with a locale string if nodeType = Translation. */\nconst translationPlugin = (locale, fallback) => ({\n\tid: \"translation-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Translation,\n\ttransform: (node, props, deepTransformNode) => {\n\t\tconst result = structuredClone(node[NodeType.Translation]);\n\t\tfor (const key in result) {\n\t\t\tconst childProps = {\n\t\t\t\t...props,\n\t\t\t\tchildren: result[key],\n\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\ttype: NodeType.Translation,\n\t\t\t\t\tkey\n\t\t\t\t}]\n\t\t\t};\n\t\t\tresult[key] = deepTransformNode(result[key], childProps);\n\t\t}\n\t\treturn getTranslation(result, locale, fallback);\n\t}\n});\n/** Enumeration plugin. Replaces node with a function that takes quantity => string. */\nconst enumerationPlugin = {\n\tid: \"enumeration-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Enumeration,\n\ttransform: (node, props, deepTransformNode) => {\n\t\tconst result = structuredClone(node[NodeType.Enumeration]);\n\t\tfor (const key in result) {\n\t\t\tconst child = result[key];\n\t\t\tresult[key] = deepTransformNode(child, {\n\t\t\t\t...props,\n\t\t\t\tchildren: child,\n\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\ttype: NodeType.Enumeration,\n\t\t\t\t\tkey\n\t\t\t\t}]\n\t\t\t});\n\t\t}\n\t\treturn (quantity) => getEnumeration(result, quantity);\n\t}\n};\n/** Condition plugin. Replaces node with a function that takes boolean => string. */\nconst conditionPlugin = {\n\tid: \"condition-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Condition,\n\ttransform: (node, props, deepTransformNode) => {\n\t\tconst result = structuredClone(node[NodeType.Condition]);\n\t\tfor (const key in result) {\n\t\t\tconst child = result[key];\n\t\t\tresult[key] = deepTransformNode(child, {\n\t\t\t\t...props,\n\t\t\t\tchildren: child,\n\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\ttype: NodeType.Condition,\n\t\t\t\t\tkey\n\t\t\t\t}]\n\t\t\t});\n\t\t}\n\t\treturn (value) => getCondition(result, value);\n\t}\n};\n/** Gender plugin. Replaces node with a function that takes gender => string. */\nconst genderPlugin = {\n\tid: \"gender-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Gender,\n\ttransform: (node, props, deepTransformNode) => {\n\t\tconst result = structuredClone(node[NodeType.Gender]);\n\t\tfor (const key in result) {\n\t\t\tconst child = result[key];\n\t\t\tresult[key] = deepTransformNode(child, {\n\t\t\t\t...props,\n\t\t\t\tchildren: child,\n\t\t\t\tkeyPath: [...props.keyPath, {\n\t\t\t\t\ttype: NodeType.Gender,\n\t\t\t\t\tkey\n\t\t\t\t}]\n\t\t\t});\n\t\t}\n\t\treturn (value) => getGender(result, value);\n\t}\n};\nconst insertionPlugin = {\n\tid: \"insertion-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Insertion,\n\ttransform: (node, props, deepTransformNode) => {\n\t\tconst newKeyPath = [...props.keyPath, { type: NodeType.Insertion }];\n\t\tconst children = node[NodeType.Insertion];\n\t\t/** Insertion string plugin. Replaces string node with a component that render the insertion. */\n\t\tconst insertionStringPlugin = {\n\t\t\tid: \"insertion-string-plugin\",\n\t\t\tcanHandle: (node$1) => typeof node$1 === \"string\",\n\t\t\ttransform: (node$1, subProps, deepTransformNode$1) => {\n\t\t\t\tconst transformedResult = deepTransformNode$1(node$1, {\n\t\t\t\t\t...subProps,\n\t\t\t\t\tchildren: node$1,\n\t\t\t\t\tplugins: [...(props.plugins ?? []).filter((plugin) => plugin.id !== \"intlayer-node-plugin\")]\n\t\t\t\t});\n\t\t\t\treturn (values) => {\n\t\t\t\t\tconst children$1 = getInsertion(transformedResult, values);\n\t\t\t\t\treturn deepTransformNode$1(children$1, {\n\t\t\t\t\t\t...subProps,\n\t\t\t\t\t\tplugins: props.plugins,\n\t\t\t\t\t\tchildren: children$1\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t\treturn deepTransformNode(children, {\n\t\t\t...props,\n\t\t\tchildren,\n\t\t\tkeyPath: newKeyPath,\n\t\t\tplugins: [insertionStringPlugin, ...props.plugins ?? []]\n\t\t});\n\t}\n};\n/** Nested plugin. Replaces node with the result of `getNesting`. */\nconst nestedPlugin = {\n\tid: \"nested-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.Nested,\n\ttransform: (node, props) => getNesting(node.nested.dictionaryKey, node.nested.path, props)\n};\n/** File plugin. Replaces node with the result of `getNesting`. */\nconst filePlugin = {\n\tid: \"file-plugin\",\n\tcanHandle: (node) => typeof node === \"object\" && node?.nodeType === NodeType.File,\n\ttransform: (node, props, deepTransform) => deepTransform(node.content, {\n\t\t...props,\n\t\tchildren: node.content\n\t})\n};\n\n//#endregion\nexport { conditionPlugin, enumerationPlugin, filePlugin, genderPlugin, insertionPlugin, nestedPlugin, translationPlugin };\n//# sourceMappingURL=plugins.mjs.map"],"mappings":";;;;;AAUA,MAAM,qBAAqB,QAAQ,cAAc;CAChD,IAAI;CACJ,YAAY,SAAS,OAAO,SAAS,YAAY,MAAM,aAAaA,0BAAS;CAC7E,YAAY,MAAM,OAAO,sBAAsB;EAC9C,MAAM,SAAS,gBAAgB,KAAKA,0BAAS,aAAa;AAC1D,OAAK,MAAM,OAAO,QAAQ;GACzB,MAAM,aAAa;IAClB,GAAG;IACH,UAAU,OAAO;IACjB,SAAS,CAAC,GAAG,MAAM,SAAS;KAC3B,MAAMA,0BAAS;KACf;KACA,CAAC;IACF;AACD,UAAO,OAAO,kBAAkB,OAAO,MAAM,WAAW;;AAEzD,SAAOC,sCAAe,QAAQ,QAAQ,SAAS;;CAEhD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../core/dist/esm/interpreter/getTranslation.mjs
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Allow to pick a content based on a locale.
|
|
6
|
+
* If not locale found, it will return the content related to the default locale.
|
|
7
|
+
*
|
|
8
|
+
* Return either the content editor, or the content itself depending on the configuration.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* const content = getTranslation<string>({
|
|
14
|
+
* en: 'Hello',
|
|
15
|
+
* fr: 'Bonjour',
|
|
16
|
+
* }, 'fr');
|
|
17
|
+
* // 'Bonjour'
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Using TypeScript:
|
|
21
|
+
* - this function will require each locale to be defined if defined in the project configuration.
|
|
22
|
+
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
|
+
*/
|
|
24
|
+
const getTranslation = (languageContent, locale, fallback) => {
|
|
25
|
+
let result = languageContent[locale];
|
|
26
|
+
if (fallback && !result) result = languageContent[fallback];
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.getTranslation = getTranslation;
|
|
32
|
+
//# sourceMappingURL=getTranslation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTranslation.cjs","names":[],"sources":["../../../../../../../core/dist/esm/interpreter/getTranslation.mjs"],"sourcesContent":["//#region src/interpreter/getTranslation.ts\n/**\n*\n* Allow to pick a content based on a locale.\n* If not locale found, it will return the content related to the default locale.\n*\n* Return either the content editor, or the content itself depending on the configuration.\n*\n* Usage:\n*\n* ```ts\n* const content = getTranslation<string>({\n* en: 'Hello',\n* fr: 'Bonjour',\n* }, 'fr');\n* // 'Bonjour'\n* ```\n*\n* Using TypeScript:\n* - this function will require each locale to be defined if defined in the project configuration.\n* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.\n*/\nconst getTranslation = (languageContent, locale, fallback) => {\n\tlet result = languageContent[locale];\n\tif (fallback && !result) result = languageContent[fallback];\n\treturn result;\n};\n\n//#endregion\nexport { getTranslation };\n//# sourceMappingURL=getTranslation.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,kBAAkB,iBAAiB,QAAQ,aAAa;CAC7D,IAAI,SAAS,gBAAgB;AAC7B,KAAI,YAAY,CAAC,OAAQ,UAAS,gBAAgB;AAClD,QAAO"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_intl = require('../utils/intl.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../core/dist/esm/localization/getLocaleName.mjs
|
|
4
|
+
const getLocaleName = (displayLocale, targetLocale = displayLocale) => {
|
|
5
|
+
return new require_intl.CachedIntl.DisplayNames(targetLocale, { type: "language" }).of(displayLocale) ?? "Unknown locale";
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.getLocaleName = getLocaleName;
|
|
10
|
+
//# sourceMappingURL=getLocaleName.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocaleName.cjs","names":["CachedIntl"],"sources":["../../../../../../../core/dist/esm/localization/getLocaleName.mjs"],"sourcesContent":["import { CachedIntl } from \"../utils/intl.mjs\";\n\n//#region src/localization/getLocaleName.ts\nconst getLocaleName = (displayLocale, targetLocale = displayLocale) => {\n\treturn new CachedIntl.DisplayNames(targetLocale, { type: \"language\" }).of(displayLocale) ?? \"Unknown locale\";\n};\n\n//#endregion\nexport { getLocaleName };\n//# sourceMappingURL=getLocaleName.mjs.map"],"mappings":";;;AAGA,MAAM,iBAAiB,eAAe,eAAe,kBAAkB;AACtE,QAAO,IAAIA,wBAAW,aAAa,cAAc,EAAE,MAAM,YAAY,CAAC,CAAC,GAAG,cAAc,IAAI"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_nodeType = require('../../types/dist/esm/nodeType.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../core/dist/esm/transpiler/translation/translation.mjs
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Function intended to be used to build intlayer dictionaries.
|
|
7
|
+
*
|
|
8
|
+
* Get the content of a translation based on the locale.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* translation<string>({
|
|
14
|
+
* "en": "Hello",
|
|
15
|
+
* "fr": "Bonjour",
|
|
16
|
+
* // ... any other available locale
|
|
17
|
+
* })
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Using TypeScript:
|
|
21
|
+
* - this function require each locale to be defined if defined in the project configuration.
|
|
22
|
+
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
|
|
23
|
+
*/
|
|
24
|
+
const translation = (content) => require_nodeType.formatNodeType(require_nodeType.NodeType.Translation, content);
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.translation = translation;
|
|
28
|
+
//# sourceMappingURL=translation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.cjs","names":["formatNodeType","NodeType"],"sources":["../../../../../../../../core/dist/esm/transpiler/translation/translation.mjs"],"sourcesContent":["import { NodeType, formatNodeType } from \"../../types/dist/esm/nodeType.mjs\";\n\n//#region src/transpiler/translation/translation.ts\n/**\n*\n* Function intended to be used to build intlayer dictionaries.\n*\n* Get the content of a translation based on the locale.\n*\n* Usage:\n*\n* ```ts\n* translation<string>({\n* \"en\": \"Hello\",\n* \"fr\": \"Bonjour\",\n* // ... any other available locale\n* })\n* ```\n*\n* Using TypeScript:\n* - this function require each locale to be defined if defined in the project configuration.\n* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.\n*/\nconst translation = (content) => formatNodeType(NodeType.Translation, content);\n\n//#endregion\nexport { translation as t };\n//# sourceMappingURL=translation.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,eAAe,YAAYA,gCAAeC,0BAAS,aAAa,QAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __export = (all) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.__export = __export;
|
|
15
|
+
//# sourceMappingURL=rolldown_runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolldown_runtime.cjs","names":[],"sources":["../../../../../../../../../../core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs"],"sourcesContent":["//#region ../types/dist/esm/_virtual/rolldown_runtime.mjs\nvar __defProp = Object.defineProperty;\nvar __export = (all) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\treturn target;\n};\n\n//#endregion\nexport { __export };\n//# sourceMappingURL=rolldown_runtime.mjs.map"],"mappings":";;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,YAAY,QAAQ;CACvB,IAAI,SAAS,EAAE;AACf,MAAK,IAAI,QAAQ,IAAK,WAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;EACZ,CAAC;AACF,QAAO"}
|