@intlayer/core 7.0.9-canary.0 → 7.0.9-canary.3

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.
Files changed (301) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +20 -0
  3. package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  4. package/dist/cjs/config/dist/esm/built.cjs +8 -0
  5. package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
  6. package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  7. package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  8. package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  9. package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  10. package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  11. package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  12. package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  13. package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  14. package/dist/cjs/config/dist/esm/defaultValues/build.cjs +24 -0
  15. package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
  16. package/dist/cjs/config/dist/esm/defaultValues/content.cjs +78 -0
  17. package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
  18. package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  19. package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  20. package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +36 -0
  21. package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  22. package/dist/cjs/config/dist/esm/defaultValues/index.cjs +21 -0
  23. package/dist/cjs/config/dist/esm/defaultValues/index.cjs.map +1 -0
  24. package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +22 -0
  25. package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  26. package/dist/cjs/config/dist/esm/defaultValues/log.cjs +16 -0
  27. package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
  28. package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +26 -0
  29. package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  30. package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
  31. package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
  32. package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  33. package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  34. package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +47 -0
  35. package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  36. package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  37. package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  38. package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  39. package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  40. package/dist/cjs/config/dist/esm/logger.cjs +65 -0
  41. package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
  42. package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  43. package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  44. package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  45. package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  46. package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  47. package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  48. package/dist/cjs/config/dist/esm/utils/cache.cjs +261 -0
  49. package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
  50. package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs +26 -0
  51. package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs.map +1 -0
  52. package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  53. package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  54. package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
  55. package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  56. package/dist/cjs/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  57. package/dist/cjs/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  58. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
  59. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  60. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
  61. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
  62. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  63. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  64. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  65. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  66. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  67. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  68. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  69. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  70. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
  71. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
  72. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
  73. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
  74. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  75. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  76. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
  77. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  78. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  79. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  80. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
  81. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
  82. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
  83. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  84. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
  85. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
  86. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  87. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  88. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +47 -0
  89. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  90. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  91. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  92. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  93. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  94. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
  95. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
  96. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  97. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  98. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  99. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  100. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  101. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  102. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +261 -0
  103. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
  104. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  105. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  106. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
  107. package/dist/cjs/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  108. package/dist/cjs/dictionaries-entry/dist/esm/index.cjs +27 -0
  109. package/dist/cjs/dictionaries-entry/dist/esm/index.cjs.map +1 -0
  110. package/dist/cjs/index.cjs +3 -1
  111. package/dist/cjs/localization/getLocalizedUrl.cjs +33 -10
  112. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  113. package/dist/cjs/localization/getMultilingualUrls.cjs +16 -33
  114. package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
  115. package/dist/cjs/localization/getPrefix.cjs +47 -0
  116. package/dist/cjs/localization/getPrefix.cjs.map +1 -0
  117. package/dist/cjs/localization/index.cjs +3 -1
  118. package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  119. package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  120. package/dist/cjs/types/dist/esm/locales.cjs +1128 -0
  121. package/dist/cjs/types/dist/esm/locales.cjs.map +1 -0
  122. package/dist/cjs/types/dist/esm/nodeType.cjs +31 -0
  123. package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
  124. package/dist/esm/_virtual/rolldown_runtime.mjs +8 -0
  125. package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +20 -0
  126. package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  127. package/dist/esm/config/dist/esm/built.mjs +8 -0
  128. package/dist/esm/config/dist/esm/built.mjs.map +1 -0
  129. package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  130. package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  131. package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  132. package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  133. package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  134. package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  135. package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  136. package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  137. package/dist/esm/config/dist/esm/defaultValues/build.mjs +19 -0
  138. package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  139. package/dist/esm/config/dist/esm/defaultValues/content.mjs +64 -0
  140. package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  141. package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  142. package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  143. package/dist/esm/config/dist/esm/defaultValues/editor.mjs +27 -0
  144. package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  145. package/dist/esm/config/dist/esm/defaultValues/index.mjs +21 -0
  146. package/dist/esm/config/dist/esm/defaultValues/index.mjs.map +1 -0
  147. package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +18 -0
  148. package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  149. package/dist/esm/config/dist/esm/defaultValues/log.mjs +14 -0
  150. package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  151. package/dist/esm/config/dist/esm/defaultValues/routing.mjs +23 -0
  152. package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  153. package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  154. package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  155. package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  156. package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  157. package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  158. package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  159. package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  160. package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  161. package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  162. package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  163. package/dist/esm/config/dist/esm/logger.mjs +59 -0
  164. package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  165. package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  166. package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  167. package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  168. package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  169. package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  170. package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  171. package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  172. package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  173. package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  174. package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  175. package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  176. package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  177. package/dist/esm/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  178. package/dist/esm/dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  179. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  180. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  181. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
  182. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
  183. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  184. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  185. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  186. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  187. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  188. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  189. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  190. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  191. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  192. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  193. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  194. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  195. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  196. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  197. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  198. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  199. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  200. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  201. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  202. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  203. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  204. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  205. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  206. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  207. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  208. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  209. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  210. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  211. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  212. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  213. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  214. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  215. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
  216. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  217. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  218. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  219. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  220. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  221. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  222. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  223. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  224. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  225. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  226. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  227. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  228. package/dist/esm/dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  229. package/dist/esm/dictionaries-entry/dist/esm/index.mjs +25 -0
  230. package/dist/esm/dictionaries-entry/dist/esm/index.mjs.map +1 -0
  231. package/dist/esm/index.mjs +3 -2
  232. package/dist/esm/localization/getLocalizedUrl.mjs +33 -10
  233. package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
  234. package/dist/esm/localization/getMultilingualUrls.mjs +16 -33
  235. package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
  236. package/dist/esm/localization/getPrefix.mjs +45 -0
  237. package/dist/esm/localization/getPrefix.mjs.map +1 -0
  238. package/dist/esm/localization/index.mjs +3 -2
  239. package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  240. package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  241. package/dist/esm/types/dist/esm/locales.mjs +1128 -0
  242. package/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  243. package/dist/esm/types/dist/esm/nodeType.mjs +29 -0
  244. package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
  245. package/dist/index.d.mts +1323 -0
  246. package/dist/index.mjs +3348 -0
  247. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts +7 -7
  248. package/dist/types/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts.map +1 -1
  249. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts +7 -7
  250. package/dist/types/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts.map +1 -1
  251. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts +7 -7
  252. package/dist/types/deepTransformPlugins/getFilteredLocalesContent.d.ts.map +1 -1
  253. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts +2 -2
  254. package/dist/types/dictionaryManipulator/orderDictionaries.d.ts.map +1 -1
  255. package/dist/types/index.d.ts +2 -1
  256. package/dist/types/localization/getLocalizedUrl.d.ts +13 -8
  257. package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
  258. package/dist/types/localization/getMultilingualUrls.d.ts +13 -8
  259. package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
  260. package/dist/types/localization/getPrefix.d.ts +46 -0
  261. package/dist/types/localization/getPrefix.d.ts.map +1 -0
  262. package/dist/types/localization/index.d.ts +2 -1
  263. package/package.json +20 -17
  264. package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs +0 -20
  265. package/dist/cjs/dictionaryManipulator/getUnmergedDictionaryByKeyPath.cjs.map +0 -1
  266. package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs +0 -17
  267. package/dist/esm/dictionaryManipulator/getUnmergedDictionaryByKeyPath.mjs.map +0 -1
  268. package/dist/types/deepTransformPlugins/index.d.ts.map +0 -1
  269. package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts +0 -9
  270. package/dist/types/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts.map +0 -1
  271. package/dist/types/dictionaryManipulator/index.d.ts.map +0 -1
  272. package/dist/types/formatters/index.d.ts.map +0 -1
  273. package/dist/types/index.d.ts.map +0 -1
  274. package/dist/types/interpreter/getContent/index.d.ts.map +0 -1
  275. package/dist/types/interpreter/getIntlayerAsync.d.ts +0 -13
  276. package/dist/types/interpreter/getIntlayerAsync.d.ts.map +0 -1
  277. package/dist/types/interpreter/index.d.ts.map +0 -1
  278. package/dist/types/localization/index.d.ts.map +0 -1
  279. package/dist/types/localization/localeList.d.ts +0 -3
  280. package/dist/types/localization/localeList.d.ts.map +0 -1
  281. package/dist/types/transpiler/condition/index.d.ts.map +0 -1
  282. package/dist/types/transpiler/enumeration/index.d.ts.map +0 -1
  283. package/dist/types/transpiler/file/index.d.ts.map +0 -1
  284. package/dist/types/transpiler/gender/index.d.ts.map +0 -1
  285. package/dist/types/transpiler/index.d.ts.map +0 -1
  286. package/dist/types/transpiler/insertion/index.d.ts.map +0 -1
  287. package/dist/types/transpiler/markdown/index.d.ts.map +0 -1
  288. package/dist/types/transpiler/nesting/index.d.ts.map +0 -1
  289. package/dist/types/transpiler/translation/index.d.ts.map +0 -1
  290. package/dist/types/types/dictionary.d.ts +0 -307
  291. package/dist/types/types/dictionary.d.ts.map +0 -1
  292. package/dist/types/types/index.d.ts +0 -5
  293. package/dist/types/types/index.d.ts.map +0 -1
  294. package/dist/types/types/intlayer.d.ts +0 -5
  295. package/dist/types/types/intlayer.d.ts.map +0 -1
  296. package/dist/types/types/keyPath.d.ts +0 -47
  297. package/dist/types/types/keyPath.d.ts.map +0 -1
  298. package/dist/types/types/nodeType.d.ts +0 -30
  299. package/dist/types/types/nodeType.d.ts.map +0 -1
  300. package/dist/types/types/translation.d.ts +0 -25
  301. package/dist/types/types/translation.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
2
2
  import "../interpreter/index.js";
3
- import * as _intlayer_types0 from "@intlayer/types";
3
+ import * as _intlayer_types5 from "@intlayer/types";
4
4
  import { ContentNode, DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
5
5
 
6
6
  //#region src/deepTransformPlugins/getFilterMissingTranslationsContent.d.ts
@@ -24,11 +24,11 @@ declare const getFilterMissingTranslationsContent: <T extends ContentNode, L ext
24
24
  declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, localeToCheck: LocalesValues) => {
25
25
  content: any;
26
26
  $schema?: string;
27
- id?: string;
27
+ id?: _intlayer_types5.DictionaryId;
28
28
  projectIds?: string[];
29
- localId?: _intlayer_types0.LocalDictionaryId;
30
- localIds?: _intlayer_types0.LocalDictionaryId[];
31
- key: string;
29
+ localId?: _intlayer_types5.LocalDictionaryId;
30
+ localIds?: _intlayer_types5.LocalDictionaryId[];
31
+ key: _intlayer_types5.DictionaryKey;
32
32
  title?: string;
33
33
  description?: string;
34
34
  versions?: string[];
@@ -36,11 +36,11 @@ declare const getFilterMissingTranslationsDictionary: (dictionary: Dictionary, l
36
36
  filePath?: string;
37
37
  tags?: string[];
38
38
  locale?: LocalesValues;
39
- fill?: _intlayer_types0.Fill;
39
+ fill?: _intlayer_types5.Fill;
40
40
  filled?: true;
41
41
  priority?: number;
42
42
  live?: boolean;
43
- location?: "remote" | "local" | "plugin";
43
+ location?: _intlayer_types5.DictionaryLocation;
44
44
  };
45
45
  //#endregion
46
46
  export { filterMissingTranslationsOnlyPlugin, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary };
@@ -1 +1 @@
1
- {"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmMa,qDACI,kBACd;;AAFH;AA8LA;;;;;;;;AA0BA;;;;cA1Ba,gDACD,uBACA,gBAAgB,uBAEpB,kBACS,cACJ;cAoBA,qDACC,2BACG;;;;;YAAa,gBAAA,CAAA"}
1
+ {"version":3,"file":"getFilterMissingTranslationsContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterMissingTranslationsContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmMa,qDACI,kBACd;;AAFH;AA8LA;;;;;;;;AA0BA;;;;cA1Ba,gDACD,uBACA,gBAAgB,uBAEpB,kBACS,cACJ;cAoBA,qDACC,2BACG;;;OAAa,gBAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { DeepTransformContent, NodeProps, Plugins } from "../interpreter/getContent/plugins.js";
2
2
  import "../interpreter/index.js";
3
- import * as _intlayer_types5 from "@intlayer/types";
3
+ import * as _intlayer_types11 from "@intlayer/types";
4
4
  import { ContentNode, DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
5
5
 
6
6
  //#region src/deepTransformPlugins/getFilterTranslationsOnlyContent.d.ts
@@ -16,11 +16,11 @@ declare const getFilterTranslationsOnlyContent: <T extends ContentNode, L extend
16
16
  declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, locale?: LocalesValues, fallback?: LocalesValues) => {
17
17
  content: any;
18
18
  $schema?: string;
19
- id?: string;
19
+ id?: _intlayer_types11.DictionaryId;
20
20
  projectIds?: string[];
21
- localId?: _intlayer_types5.LocalDictionaryId;
22
- localIds?: _intlayer_types5.LocalDictionaryId[];
23
- key: string;
21
+ localId?: _intlayer_types11.LocalDictionaryId;
22
+ localIds?: _intlayer_types11.LocalDictionaryId[];
23
+ key: _intlayer_types11.DictionaryKey;
24
24
  title?: string;
25
25
  description?: string;
26
26
  versions?: string[];
@@ -28,11 +28,11 @@ declare const getFilterTranslationsOnlyDictionary: (dictionary: Dictionary, loca
28
28
  filePath?: string;
29
29
  tags?: string[];
30
30
  locale?: LocalesValues;
31
- fill?: _intlayer_types5.Fill;
31
+ fill?: _intlayer_types11.Fill;
32
32
  filled?: true;
33
33
  priority?: number;
34
34
  live?: boolean;
35
- location?: "remote" | "local" | "plugin";
35
+ location?: _intlayer_types11.DictionaryLocation;
36
36
  };
37
37
  //#endregion
38
38
  export { filterTranslationsOnlyPlugin, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary };
@@ -1 +1 @@
1
- {"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAoCa,uCACH,0BACG,kBACV;;AAHH;;;;;AAuFa,cAAA,gCAkBZ,EAAA,CAAA,UAjBW,WAiBX,EAAA,UAhBW,aAgBX,GAhB2B,eAgB3B,CAAA,CAAA,IAAA,EAdO,CAcP,EAAA,MAAA,EAbS,CAaT,EAAA,SAAA,EAZY,SAYZ,EAAA,QAAA,CAAA,EAXY,aAWZ,EAAA,GADO,oBACP,CAD4B,CAC5B,CAAA;AAjBW,cAmBC,mCAnBD,EAAA,CAAA,UAAA,EAoBE,UApBF,EAAA,MAAA,CAAA,EAqBF,aArBE,EAAA,QAAA,CAAA,EAuBC,aAvBD,EAAA,GAAA;EACA,OAAA,EAAA,GAAA;EAAgB,OAAA,CAAA,EAAA,MAAA;EAEpB,EAAA,CAAA,EAAA,MAAA;EACE,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,EAkBa,gBAAA,CAAA,iBAlBb;EACA,QAAA,CAAA,sCAAA;EAUgB,GAAA,EAAA,MAAA;EAArB,KAAA,CAAA,EAAA,MAAA;EAAoB,WAAA,CAAA,EAAA,MAAA;EAGf,QAAA,CAAA,EAAA,MAAA,EAAA;EACC,OAAA,CAAA,EAAA,MAAA;EACJ,QAAA,CAAA,EAAA,MAAA;EAEG,IAAA,CAAA,EAAA,MAAA,EAAA;EAAa,MAAA,CAAA,eAAA"}
1
+ {"version":3,"file":"getFilterTranslationsOnlyContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilterTranslationsOnlyContent.ts"],"sourcesContent":[],"mappings":";;;;;;;cAoCa,uCACH,0BACG,kBACV;;AAHH;;;;;AAuFa,cAAA,gCAkBZ,EAAA,CAAA,UAjBW,WAiBX,EAAA,UAhBW,aAgBX,GAhB2B,eAgB3B,CAAA,CAAA,IAAA,EAdO,CAcP,EAAA,MAAA,EAbS,CAaT,EAAA,SAAA,EAZY,SAYZ,EAAA,QAAA,CAAA,EAXY,aAWZ,EAAA,GADO,oBACP,CAD4B,CAC5B,CAAA;AAjBW,cAmBC,mCAnBD,EAAA,CAAA,UAAA,EAoBE,UApBF,EAAA,MAAA,CAAA,EAqBF,aArBE,EAAA,QAAA,CAAA,EAuBC,aAvBD,EAAA,GAAA;EACA,OAAA,EAAA,GAAA;EAAgB,OAAA,CAAA,EAAA,MAAA;EAEpB,EAAA,CAAA,EAoBkB,iBAAA,CAAA,YApBlB;EACE,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,qCAAA;EACA,QAAA,CAAA,uCAAA;EAUgB,GAAA,iCAAA;EAArB,KAAA,CAAA,EAAA,MAAA;EAAoB,WAAA,CAAA,EAAA,MAAA;EAGf,QAAA,CAAA,EAAA,MAAA,EAAA;EACC,OAAA,CAAA,EAAA,MAAA;EACJ,QAAA,CAAA,EAAA,MAAA;EAEG,IAAA,CAAA,EAAA,MAAA,EAAA;EAAa,MAAA,CAAA,eAAA"}
@@ -1,6 +1,6 @@
1
1
  import { NodeProps } from "../interpreter/getContent/plugins.js";
2
2
  import "../interpreter/index.js";
3
- import * as _intlayer_types2 from "@intlayer/types";
3
+ import * as _intlayer_types0 from "@intlayer/types";
4
4
  import { ContentNode, Dictionary, LocalesValues } from "@intlayer/types";
5
5
 
6
6
  //#region src/deepTransformPlugins/getFilteredLocalesContent.d.ts
@@ -8,11 +8,11 @@ declare const getFilteredLocalesContent: (node: ContentNode, locales: LocalesVal
8
8
  declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: LocalesValues | LocalesValues[]) => {
9
9
  content: any;
10
10
  $schema?: string;
11
- id?: string;
11
+ id?: _intlayer_types0.DictionaryId;
12
12
  projectIds?: string[];
13
- localId?: _intlayer_types2.LocalDictionaryId;
14
- localIds?: _intlayer_types2.LocalDictionaryId[];
15
- key: string;
13
+ localId?: _intlayer_types0.LocalDictionaryId;
14
+ localIds?: _intlayer_types0.LocalDictionaryId[];
15
+ key: _intlayer_types0.DictionaryKey;
16
16
  title?: string;
17
17
  description?: string;
18
18
  versions?: string[];
@@ -20,11 +20,11 @@ declare const getFilteredLocalesDictionary: (dictionary: Dictionary, locale: Loc
20
20
  filePath?: string;
21
21
  tags?: string[];
22
22
  locale?: LocalesValues;
23
- fill?: _intlayer_types2.Fill;
23
+ fill?: _intlayer_types0.Fill;
24
24
  filled?: true;
25
25
  priority?: number;
26
26
  live?: boolean;
27
- location?: "remote" | "local" | "plugin";
27
+ location?: _intlayer_types0.DictionaryLocation;
28
28
  };
29
29
  //#endregion
30
30
  export { getFilteredLocalesContent, getFilteredLocalesDictionary };
@@ -1 +1 @@
1
- {"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAsCa,kCACL,sBACG,gBAAgB,4BACd;cAwBA,2CACC,oBACJ,gBAAgB;;;EA7Bb,EAAA,CAAA,EAAA,MAAA;EACL,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,EA2B4B,gBAAA,CAAA,iBA3B5B;EAAgB,QAAA,CAAA,sCAAA;EACd,GAAA,EAAA,MAAA;EAAS,KAAA,CAAA,EAAA,MAAA;EAwBT,WAAA,CAAA,EAAA,MAAA;EACC,QAAA,CAAA,EAAA,MAAA,EAAA;EACJ,OAAA,CAAA,EAAA,MAAA;EAAgB,QAAA,CAAA,EAAA,MAAA;EAAa,IAAA,CAAA,EAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"getFilteredLocalesContent.d.ts","names":[],"sources":["../../../src/deepTransformPlugins/getFilteredLocalesContent.ts"],"sourcesContent":[],"mappings":";;;;;;cAsCa,kCACL,sBACG,gBAAgB,4BACd;cAwBA,2CACC,oBACJ,gBAAgB;;;EA7Bb,EAAA,CAAA,EA6B0B,gBAAA,CAAA,YAbtC;EAfO,UAAA,CAAA,EAAA,MAAA,EAAA;EACG,OAAA,CAAA,oCAAA;EAAgB,QAAA,CAAA,sCAAA;EACd,GAAA,gCAAA;EAAS,KAAA,CAAA,EAAA,MAAA;EAwBT,WAAA,CAAA,EAAA,MAAA;EACC,QAAA,CAAA,EAAA,MAAA,EAAA;EACJ,OAAA,CAAA,EAAA,MAAA;EAAgB,QAAA,CAAA,EAAA,MAAA;EAAa,IAAA,CAAA,EAAA,MAAA,EAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types8 from "@intlayer/types";
1
+ import * as _intlayer_types17 from "@intlayer/types";
2
2
  import { Dictionary } from "@intlayer/types";
3
3
 
4
4
  //#region src/dictionaryManipulator/orderDictionaries.d.ts
@@ -10,7 +10,7 @@ import { Dictionary } from "@intlayer/types";
10
10
  * @param priorityStrategy - The priority strategy ('local_first' or 'distant_first')
11
11
  * @returns Ordered array of dictionaries
12
12
  */
13
- declare const orderDictionaries: (dictionaries: Dictionary[], configuration?: _intlayer_types8.IntlayerConfig) => Dictionary[];
13
+ declare const orderDictionaries: (dictionaries: Dictionary[], configuration?: _intlayer_types17.IntlayerConfig) => Dictionary[];
14
14
  //#endregion
15
15
  export { orderDictionaries };
16
16
  //# sourceMappingURL=orderDictionaries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orderDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/orderDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUA;;;;AAGa,cAHA,iBAGA,EAAA,CAAA,YAAA,EAFG,UAEH,EAAA,EAAA,aAAA,CAAA,EAFa,gBAAA,CACxB,cACW,EAAA,GAAV,UAAU,EAAA"}
1
+ {"version":3,"file":"orderDictionaries.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/orderDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUA;;;;AAGa,cAHA,iBAGA,EAAA,CAAA,YAAA,EAFG,UAEH,EAAA,EAAA,aAAA,CAAA,EAFa,iBAAA,CACxB,cACW,EAAA,GAAV,UAAU,EAAA"}
@@ -62,6 +62,7 @@ import { getLocaleName } from "./localization/getLocaleName.js";
62
62
  import { getLocalizedUrl } from "./localization/getLocalizedUrl.js";
63
63
  import { getMultilingualUrls } from "./localization/getMultilingualUrls.js";
64
64
  import { getPathWithoutLocale } from "./localization/getPathWithoutLocale.js";
65
+ import { getPrefix } from "./localization/getPrefix.js";
65
66
  import { localeDetector } from "./localization/localeDetector.js";
66
67
  import { localeFlatMap, localeMap, localeRecord } from "./localization/localeMapper.js";
67
68
  import { localeResolver } from "./localization/localeResolver.js";
@@ -71,4 +72,4 @@ import { CachedIntl, createCachedIntl } from "./utils/intl.js";
71
72
  import { isSameKeyPath } from "./utils/isSameKeyPath.js";
72
73
  import { isValidElement } from "./utils/isValidReactElement.js";
73
74
  import { parseYaml } from "./utils/parseYaml.js";
74
- export { CachedIntl, CachedIntl as Intl, ConditionCond, ConditionContent, ConditionContentStates, DeepTransformContent, DotPath, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, FileCond, FileContent, FileContentConstructor, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, LocaleStorage, LocaleStorageOptions, MarkdownContent, MarkdownContentConstructor, NestedCond, NestedContent, NestedContentState, NodeProps, Plugins, ProcessedStorageAttributes, TranslationCond, TranslationContent, ValidDotPathsFor, buildMaskPlugin, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, condition as cond, conditionPlugin, createCachedIntl, currency, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, getBrowserLocale, getCondition, getContent, getContentNodeByKeyPath, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTMLTextDir, getInsertionValues, getIntlayer, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getReplacedValuesContent, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, insertion as insert, insertContentInDictionary, insertionPlugin, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeDictionaries, normalizeDictionary, number, orderDictionaries, parseYaml, percentage, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, setLocaleInStorage, translation as t, translationPlugin, units, updateNodeChildren };
75
+ export { CachedIntl, CachedIntl as Intl, ConditionCond, ConditionContent, ConditionContentStates, DeepTransformContent, DotPath, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, FileCond, FileContent, FileContentConstructor, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, IInterpreterPlugin, IInterpreterPluginState, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, LocaleStorage, LocaleStorageOptions, MarkdownContent, MarkdownContentConstructor, NestedCond, NestedContent, NestedContentState, NodeProps, Plugins, ProcessedStorageAttributes, TranslationCond, TranslationContent, ValidDotPathsFor, buildMaskPlugin, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, condition as cond, conditionPlugin, createCachedIntl, currency, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, getBrowserLocale, getCondition, getContent, getContentNodeByKeyPath, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTMLTextDir, getInsertionValues, getIntlayer, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, insertion as insert, insertContentInDictionary, insertionPlugin, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeDictionaries, normalizeDictionary, number, orderDictionaries, parseYaml, percentage, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, setLocaleInStorage, translation as t, translationPlugin, units, updateNodeChildren };
@@ -12,32 +12,37 @@ import { LocalesValues } from "@intlayer/types";
12
12
  *
13
13
  * ```ts
14
14
  * // prefix-no-default mode
15
- * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'prefix-no-default');
15
+ * getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-no-default' });
16
16
  * // Returns '/fr/about' for the French locale
17
17
  * // Returns '/about' for the English locale (default)
18
18
  *
19
19
  * // prefix-all mode
20
- * getLocalizedUrl('/about', 'en', ['en', 'fr'], 'en', 'prefix-all');
20
+ * getLocalizedUrl('/about', 'en', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-all' });
21
21
  * // Returns '/en/about' for the English locale
22
22
  * // Returns '/fr/about' for the French locale
23
23
  *
24
24
  * // search-params mode
25
- * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'search-params');
25
+ * getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'search-params' });
26
26
  * // Returns '/about?locale=fr' for the French locale
27
27
  *
28
28
  * // no-prefix mode
29
- * getLocalizedUrl('/about', 'fr', ['en', 'fr'], 'en', 'no-prefix');
29
+ * getLocalizedUrl('/about', 'fr', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'no-prefix' });
30
30
  * // Returns '/about' for any locale
31
31
  * ```
32
32
  *
33
33
  * @param url - The original URL string to be processed.
34
34
  * @param currentLocale - The current locale.
35
- * @param locales - Optional array of supported locales. Defaults to configured locales.
36
- * @param defaultLocale - The default locale. Defaults to configured default locale.
37
- * @param mode - URL routing mode for locale handling. Defaults to configured mode.
35
+ * @param options - Configuration options
36
+ * @param options.locales - Optional array of supported locales. Defaults to configured locales.
37
+ * @param options.defaultLocale - The default locale. Defaults to configured default locale.
38
+ * @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
38
39
  * @returns The localized URL for the current locale.
39
40
  */
40
- declare const getLocalizedUrl: (url: string, currentLocale: LocalesValues, locales?: LocalesValues[] | undefined, defaultLocale?: LocalesValues | undefined, mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params" | undefined) => string;
41
+ declare const getLocalizedUrl: (url: string, currentLocale: LocalesValues, options?: {
42
+ locales?: LocalesValues[];
43
+ defaultLocale?: LocalesValues;
44
+ mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
45
+ }) => string;
41
46
  //#endregion
42
47
  export { getLocalizedUrl };
43
48
  //# sourceMappingURL=getLocalizedUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalizedUrl.d.ts","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":[],"mappings":";;;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,8CAEI,yBACN,6CAEM"}
1
+ {"version":3,"file":"getLocalizedUrl.d.ts","names":[],"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":[],"mappings":";;;;;;AA0CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,8CAEI;YAEH;kBACM"}
@@ -13,29 +13,34 @@ import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
13
13
  *
14
14
  * ```ts
15
15
  * // prefix-no-default mode
16
- * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', 'prefix-no-default')
16
+ * getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-no-default' })
17
17
  * // Returns { en: '/dashboard', fr: '/fr/dashboard' }
18
18
  *
19
19
  * // prefix-all mode
20
- * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', 'prefix-all')
20
+ * getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'prefix-all' })
21
21
  * // Returns { en: '/en/dashboard', fr: '/fr/dashboard' }
22
22
  *
23
23
  * // search-params mode
24
- * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', 'search-params')
24
+ * getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'search-params' })
25
25
  * // Returns { en: '/dashboard?locale=en', fr: '/dashboard?locale=fr' }
26
26
  *
27
27
  * // no-prefix mode
28
- * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', 'no-prefix')
28
+ * getMultilingualUrls('/dashboard', { locales: ['en', 'fr'], defaultLocale: 'en', mode: 'no-prefix' })
29
29
  * // Returns { en: '/dashboard', fr: '/dashboard' }
30
30
  * ```
31
31
  *
32
32
  * @param url - The original URL string to be processed.
33
- * @param locales - Optional array of supported locales. Defaults to configured locales.
34
- * @param defaultLocale - The default locale. Defaults to configured default locale.
35
- * @param mode - URL routing mode for locale handling. Defaults to configured mode.
33
+ * @param options - Configuration options
34
+ * @param options.locales - Optional array of supported locales. Defaults to configured locales.
35
+ * @param options.defaultLocale - The default locale. Defaults to configured default locale.
36
+ * @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
36
37
  * @returns An object mapping each locale to its corresponding multilingual URL.
37
38
  */
38
- declare const getMultilingualUrls: (url: string, locales?: LocalesValues[] | undefined, defaultLocale?: LocalesValues | undefined, mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params" | undefined) => StrictModeLocaleMap<string>;
39
+ declare const getMultilingualUrls: (url: string, options?: {
40
+ locales?: LocalesValues[];
41
+ defaultLocale?: LocalesValues;
42
+ mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
43
+ }) => StrictModeLocaleMap<string>;
39
44
  //#endregion
40
45
  export { getMultilingualUrls };
41
46
  //# sourceMappingURL=getMultilingualUrls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMultilingualUrls.d.ts","names":[],"sources":["../../../src/localization/getMultilingualUrls.ts"],"sourcesContent":[],"mappings":";;;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,6CAEF,6CAEM,qHAQd"}
1
+ {"version":3,"file":"getMultilingualUrls.d.ts","names":[],"sources":["../../../src/localization/getMultilingualUrls.ts"],"sourcesContent":[],"mappings":";;;;;;AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa;YAGC;kBACM;;MAGjB"}
@@ -0,0 +1,46 @@
1
+ import { LocalesValues } from "@intlayer/types";
2
+
3
+ //#region src/localization/getPrefix.d.ts
4
+
5
+ /**
6
+ * Determines the URL prefix for a given locale based on the routing mode configuration.
7
+ *
8
+ * Example:
9
+ *
10
+ * ```ts
11
+ * // prefix-no-default mode with default locale
12
+ * getPrefix('en', { defaultLocale: 'en', mode: 'prefix-no-default' })
13
+ * // Returns ''
14
+ *
15
+ * // prefix-no-default mode with non-default locale
16
+ * getPrefix('fr', { defaultLocale: 'en', mode: 'prefix-no-default' })
17
+ * // Returns 'en/'
18
+ *
19
+ * // prefix-all mode
20
+ * getPrefix('en', { defaultLocale: 'en', mode: 'prefix-all' })
21
+ * // Returns 'en/'
22
+ *
23
+ * // search-params mode
24
+ * getPrefix('en', { defaultLocale: 'en', mode: 'search-params' })
25
+ * // Returns ''
26
+ *
27
+ * // no-prefix mode
28
+ * getPrefix('en', { defaultLocale: 'en', mode: 'no-prefix' })
29
+ * // Returns ''
30
+ * ```
31
+ *
32
+ * @param locale - The locale to check for prefix. If not provided, uses configured default locale.
33
+ * @param options - Configuration options
34
+ * @param options.defaultLocale - The default locale. Defaults to configured default locale.
35
+ * @param options.mode - URL routing mode for locale handling. Defaults to configured mode.
36
+ * @param options.addSlash - Whether to add a trailing slash to the prefix. Defaults to true.
37
+ * @returns The prefix string for the given locale (e.g., 'en/', 'fr/') or an empty string.
38
+ */
39
+ declare const getPrefix: (locale?: LocalesValues, options?: {
40
+ defaultLocale?: LocalesValues;
41
+ mode?: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
42
+ addSlash?: boolean;
43
+ }) => string;
44
+ //#endregion
45
+ export { getPrefix };
46
+ //# sourceMappingURL=getPrefix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrefix.d.ts","names":[],"sources":["../../../src/localization/getPrefix.ts"],"sourcesContent":[],"mappings":";;;;;;AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,qBACF;kBAES"}
@@ -6,7 +6,8 @@ import { getLocaleName } from "./getLocaleName.js";
6
6
  import { getLocalizedUrl } from "./getLocalizedUrl.js";
7
7
  import { getMultilingualUrls } from "./getMultilingualUrls.js";
8
8
  import { getPathWithoutLocale } from "./getPathWithoutLocale.js";
9
+ import { getPrefix } from "./getPrefix.js";
9
10
  import { localeDetector } from "./localeDetector.js";
10
11
  import { localeFlatMap, localeMap, localeRecord } from "./localeMapper.js";
11
12
  import { localeResolver } from "./localeResolver.js";
12
- export { getBrowserLocale, getHTMLTextDir, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions };
13
+ export { getBrowserLocale, getHTMLTextDir, getLocaleFromPath, getLocaleLang, getLocaleName, getLocalizedUrl, getMultilingualUrls, getPathWithoutLocale, getPrefix, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "7.0.9-canary.0",
3
+ "version": "7.0.9-canary.3",
4
4
  "private": false,
5
5
  "description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
6
6
  "keywords": [
@@ -93,34 +93,37 @@
93
93
  "lint:fix": "biome lint --write .",
94
94
  "process-files": "ts-node src/transpiler/processFilesCLI.ts --dir $npm_config_dir --extension $npm_config_extension --no-node-snapshot",
95
95
  "prepublish": "cp -f ../../../README.md ./README.md",
96
+ "publish": "bun publish || true",
97
+ "publish:canary": "bun publish --tag canary || true",
98
+ "publish:latest": "bun publish --tag latest || true",
96
99
  "test": "vitest run",
97
100
  "test:watch": "vitest",
98
101
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
99
102
  },
100
103
  "dependencies": {
101
- "@intlayer/api": "7.0.9-canary.0",
102
- "@intlayer/config": "7.0.9-canary.0",
103
- "@intlayer/dictionaries-entry": "7.0.9-canary.0",
104
- "@intlayer/types": "7.0.9-canary.0",
105
- "@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.0",
104
+ "@intlayer/api": "7.0.9-canary.2",
105
+ "@intlayer/config": "7.0.9-canary.2",
106
+ "@intlayer/dictionaries-entry": "7.0.9-canary.2",
107
+ "@intlayer/types": "7.0.9-canary.2",
108
+ "@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.2",
106
109
  "deepmerge": "4.3.1"
107
110
  },
108
111
  "devDependencies": {
109
- "@types/node": "24.10.0",
110
- "@utils/ts-config": "7.0.9-canary.0",
111
- "@utils/ts-config-types": "7.0.9-canary.0",
112
- "@utils/tsdown-config": "7.0.9-canary.0",
112
+ "@types/node": "24.10.1",
113
+ "@utils/ts-config": "1.0.4",
114
+ "@utils/ts-config-types": "1.0.4",
115
+ "@utils/tsdown-config": "1.0.4",
113
116
  "rimraf": "6.1.0",
114
- "tsdown": "0.16.0",
117
+ "tsdown": "0.16.4",
115
118
  "typescript": "5.9.3",
116
- "vitest": "4.0.7"
119
+ "vitest": "4.0.8"
117
120
  },
118
121
  "peerDependencies": {
119
- "@intlayer/api": "7.0.9-canary.0",
120
- "@intlayer/config": "7.0.9-canary.0",
121
- "@intlayer/dictionaries-entry": "7.0.9-canary.0",
122
- "@intlayer/types": "7.0.9-canary.0",
123
- "@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.0"
122
+ "@intlayer/api": "7.0.9-canary.2",
123
+ "@intlayer/config": "7.0.9-canary.2",
124
+ "@intlayer/dictionaries-entry": "7.0.9-canary.2",
125
+ "@intlayer/types": "7.0.9-canary.2",
126
+ "@intlayer/unmerged-dictionaries-entry": "7.0.9-canary.2"
124
127
  },
125
128
  "engines": {
126
129
  "node": ">=14.18"
@@ -1,20 +0,0 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_dictionaryManipulator_getContentNodeByKeyPath = require('./getContentNodeByKeyPath.cjs');
3
- const require_dictionaryManipulator_normalizeDictionary = require('./normalizeDictionary.cjs');
4
- let __intlayer_config_built = require("@intlayer/config/built");
5
- __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_built);
6
- let __intlayer_unmerged_dictionaries_entry = require("@intlayer/unmerged-dictionaries-entry");
7
- __intlayer_unmerged_dictionaries_entry = require_rolldown_runtime.__toESM(__intlayer_unmerged_dictionaries_entry);
8
-
9
- //#region src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.ts
10
- const getUnmergedDictionaryByKeyPath = (dictionaryKey, keyPath, dictionariesRecord, configuration = __intlayer_config_built.default) => {
11
- const unmergedEntries = (dictionariesRecord ?? (0, __intlayer_unmerged_dictionaries_entry.getUnmergedDictionaries)(configuration))?.[dictionaryKey];
12
- if (!unmergedEntries) return null;
13
- const normalizedUnmergedEntries = require_dictionaryManipulator_normalizeDictionary.normalizeDictionaries(unmergedEntries, configuration);
14
- for (const dictionary of normalizedUnmergedEntries) if (require_dictionaryManipulator_getContentNodeByKeyPath.getContentNodeByKeyPath(dictionary.content, keyPath)) return unmergedEntries.find((entry) => entry.localId === dictionary.localId);
15
- for (const dictionary of unmergedEntries) if (require_dictionaryManipulator_getContentNodeByKeyPath.getContentNodeByKeyPath(dictionary.content, keyPath)) return dictionary;
16
- };
17
-
18
- //#endregion
19
- exports.getUnmergedDictionaryByKeyPath = getUnmergedDictionaryByKeyPath;
20
- //# sourceMappingURL=getUnmergedDictionaryByKeyPath.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUnmergedDictionaryByKeyPath.cjs","names":["intlayerConfiguration","normalizeDictionaries","getContentNodeByKeyPath"],"sources":["../../../src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.ts"],"sourcesContent":["import intlayerConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig, KeyPath } from '@intlayer/types';\nimport {\n getUnmergedDictionaries,\n type UnmergedDictionaries,\n} from '@intlayer/unmerged-dictionaries-entry';\nimport { getContentNodeByKeyPath } from './getContentNodeByKeyPath';\nimport { normalizeDictionaries } from './normalizeDictionary';\n\nexport const getUnmergedDictionaryByKeyPath = (\n dictionaryKey: string,\n keyPath: KeyPath[],\n dictionariesRecord?: UnmergedDictionaries,\n configuration: IntlayerConfig = intlayerConfiguration\n) => {\n const unmergedEntries = (dictionariesRecord ??\n getUnmergedDictionaries(configuration))?.[dictionaryKey];\n\n if (!unmergedEntries) {\n return null;\n }\n\n // First search for the dictionary in the normalized dictionaries as it's what see the client editor selector\n // Then return the original unmerged dictionary if not found in the normalized dictionaries\n\n const normalizedUnmergedEntries = normalizeDictionaries(\n unmergedEntries,\n configuration\n );\n\n for (const dictionary of normalizedUnmergedEntries) {\n const content = getContentNodeByKeyPath(dictionary.content, keyPath);\n\n if (content) {\n return unmergedEntries.find(\n (entry) => entry.localId === dictionary.localId\n );\n }\n }\n\n // If not found in the normalized dictionaries, search in the original unmerged dictionaries directly\n\n for (const dictionary of unmergedEntries) {\n const content = getContentNodeByKeyPath(dictionary.content, keyPath);\n\n if (content) {\n return dictionary;\n }\n }\n};\n"],"mappings":";;;;;;;;;AASA,MAAa,kCACX,eACA,SACA,oBACA,gBAAgCA,oCAC7B;CACH,MAAM,mBAAmB,0FACC,cAAc,IAAI;AAE5C,KAAI,CAAC,gBACH,QAAO;CAMT,MAAM,4BAA4BC,wEAChC,iBACA,cACD;AAED,MAAK,MAAM,cAAc,0BAGvB,KAFgBC,8EAAwB,WAAW,SAAS,QAAQ,CAGlE,QAAO,gBAAgB,MACpB,UAAU,MAAM,YAAY,WAAW,QACzC;AAML,MAAK,MAAM,cAAc,gBAGvB,KAFgBA,8EAAwB,WAAW,SAAS,QAAQ,CAGlE,QAAO"}
@@ -1,17 +0,0 @@
1
- import { getContentNodeByKeyPath } from "./getContentNodeByKeyPath.mjs";
2
- import { normalizeDictionaries } from "./normalizeDictionary.mjs";
3
- import configuration from "@intlayer/config/built";
4
- import { getUnmergedDictionaries } from "@intlayer/unmerged-dictionaries-entry";
5
-
6
- //#region src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.ts
7
- const getUnmergedDictionaryByKeyPath = (dictionaryKey, keyPath, dictionariesRecord, configuration$1 = configuration) => {
8
- const unmergedEntries = (dictionariesRecord ?? getUnmergedDictionaries(configuration$1))?.[dictionaryKey];
9
- if (!unmergedEntries) return null;
10
- const normalizedUnmergedEntries = normalizeDictionaries(unmergedEntries, configuration$1);
11
- for (const dictionary of normalizedUnmergedEntries) if (getContentNodeByKeyPath(dictionary.content, keyPath)) return unmergedEntries.find((entry) => entry.localId === dictionary.localId);
12
- for (const dictionary of unmergedEntries) if (getContentNodeByKeyPath(dictionary.content, keyPath)) return dictionary;
13
- };
14
-
15
- //#endregion
16
- export { getUnmergedDictionaryByKeyPath };
17
- //# sourceMappingURL=getUnmergedDictionaryByKeyPath.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUnmergedDictionaryByKeyPath.mjs","names":["intlayerConfiguration","configuration"],"sources":["../../../src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.ts"],"sourcesContent":["import intlayerConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig, KeyPath } from '@intlayer/types';\nimport {\n getUnmergedDictionaries,\n type UnmergedDictionaries,\n} from '@intlayer/unmerged-dictionaries-entry';\nimport { getContentNodeByKeyPath } from './getContentNodeByKeyPath';\nimport { normalizeDictionaries } from './normalizeDictionary';\n\nexport const getUnmergedDictionaryByKeyPath = (\n dictionaryKey: string,\n keyPath: KeyPath[],\n dictionariesRecord?: UnmergedDictionaries,\n configuration: IntlayerConfig = intlayerConfiguration\n) => {\n const unmergedEntries = (dictionariesRecord ??\n getUnmergedDictionaries(configuration))?.[dictionaryKey];\n\n if (!unmergedEntries) {\n return null;\n }\n\n // First search for the dictionary in the normalized dictionaries as it's what see the client editor selector\n // Then return the original unmerged dictionary if not found in the normalized dictionaries\n\n const normalizedUnmergedEntries = normalizeDictionaries(\n unmergedEntries,\n configuration\n );\n\n for (const dictionary of normalizedUnmergedEntries) {\n const content = getContentNodeByKeyPath(dictionary.content, keyPath);\n\n if (content) {\n return unmergedEntries.find(\n (entry) => entry.localId === dictionary.localId\n );\n }\n }\n\n // If not found in the normalized dictionaries, search in the original unmerged dictionaries directly\n\n for (const dictionary of unmergedEntries) {\n const content = getContentNodeByKeyPath(dictionary.content, keyPath);\n\n if (content) {\n return dictionary;\n }\n }\n};\n"],"mappings":";;;;;;AASA,MAAa,kCACX,eACA,SACA,oBACA,kBAAgCA,kBAC7B;CACH,MAAM,mBAAmB,sBACvB,wBAAwBC,gBAAc,IAAI;AAE5C,KAAI,CAAC,gBACH,QAAO;CAMT,MAAM,4BAA4B,sBAChC,iBACAA,gBACD;AAED,MAAK,MAAM,cAAc,0BAGvB,KAFgB,wBAAwB,WAAW,SAAS,QAAQ,CAGlE,QAAO,gBAAgB,MACpB,UAAU,MAAM,YAAY,WAAW,QACzC;AAML,MAAK,MAAM,cAAc,gBAGvB,KAFgB,wBAAwB,WAAW,SAAS,QAAQ,CAGlE,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/deepTransformPlugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as _intlayer_types8 from "@intlayer/types";
2
- import { IntlayerConfig, KeyPath } from "@intlayer/types";
3
- import { UnmergedDictionaries } from "@intlayer/unmerged-dictionaries-entry";
4
-
5
- //#region src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.d.ts
6
- declare const getUnmergedDictionaryByKeyPath: (dictionaryKey: string, keyPath: KeyPath[], dictionariesRecord?: UnmergedDictionaries, configuration?: IntlayerConfig) => _intlayer_types8.Dictionary;
7
- //#endregion
8
- export { getUnmergedDictionaryByKeyPath };
9
- //# sourceMappingURL=getUnmergedDictionaryByKeyPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUnmergedDictionaryByKeyPath.d.ts","names":[],"sources":["../../../src/dictionaryManipulator/getUnmergedDictionaryByKeyPath.ts"],"sourcesContent":[],"mappings":";;;;;cASa,iEAEF,gCACY,sCACN,mBAAsC,gBAAA,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { LocalesValues } from '@intlayer/config/client';
2
- import type { DictionaryKeys } from '../types';
3
- import type { Plugins } from './getContent';
4
- /**
5
- * On the client side, Hook that picking one dictionary by its key and return the content
6
- *
7
- * This hook will prerender the locale dictionary and fetch simultaneously the distant dictionaries to hydrate it.
8
- *
9
- *
10
- * If the locale is not provided, it will use the locale from the client context
11
- */
12
- export declare const getIntlayerAsync: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L, plugins?: Plugins[]) => Promise<any>;
13
- //# sourceMappingURL=getIntlayerAsync.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIntlayerAsync.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayerAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,aAAa,EAEvB,KAAK,CAAC,EACN,SAAS,CAAC,EACV,UAAU,OAAO,EAAE,iBASpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interpreter/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Locales } from '@intlayer/config/client';
2
- export declare const localeList: Locales[];
3
- //# sourceMappingURL=localeList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localeList.d.ts","sourceRoot":"","sources":["../../../src/localization/localeList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,eAAO,MAAM,UAAU,EAAE,OAAO,EAkO/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/condition/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/enumeration/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/gender/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transpiler/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,mBAAmB,cAAc,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/insertion/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/nesting/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}