@intlayer/core 5.1.8 → 5.2.0

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 (79) hide show
  1. package/dist/cjs/interpreter/getContent/getContent.cjs +13 -5
  2. package/dist/cjs/interpreter/getContent/getContent.cjs.map +1 -1
  3. package/dist/cjs/interpreter/getContent/plugins.cjs.map +1 -1
  4. package/dist/cjs/interpreter/getTranslation.cjs +12 -2
  5. package/dist/cjs/interpreter/getTranslation.cjs.map +1 -1
  6. package/dist/cjs/localization/getLocalizedUrl.cjs +12 -5
  7. package/dist/cjs/localization/getLocalizedUrl.cjs.map +1 -1
  8. package/dist/cjs/localization/getMultilingualUrls.cjs +12 -5
  9. package/dist/cjs/localization/getMultilingualUrls.cjs.map +1 -1
  10. package/dist/cjs/localization/getPathWithoutLocale.cjs +12 -4
  11. package/dist/cjs/localization/getPathWithoutLocale.cjs.map +1 -1
  12. package/dist/cjs/localization/index.cjs +5 -2
  13. package/dist/cjs/localization/index.cjs.map +1 -1
  14. package/dist/cjs/localization/localeDetector.cjs +3 -9
  15. package/dist/cjs/localization/localeDetector.cjs.map +1 -1
  16. package/dist/cjs/localization/localeResolver.cjs +63 -0
  17. package/dist/cjs/localization/localeResolver.cjs.map +1 -0
  18. package/dist/esm/interpreter/getContent/getContent.mjs +3 -7
  19. package/dist/esm/interpreter/getContent/getContent.mjs.map +1 -1
  20. package/dist/esm/interpreter/getContent/plugins.mjs.map +1 -1
  21. package/dist/esm/interpreter/getTranslation.mjs +2 -2
  22. package/dist/esm/interpreter/getTranslation.mjs.map +1 -1
  23. package/dist/esm/localization/getLocalizedUrl.mjs +2 -5
  24. package/dist/esm/localization/getLocalizedUrl.mjs.map +1 -1
  25. package/dist/esm/localization/getMultilingualUrls.mjs +2 -5
  26. package/dist/esm/localization/getMultilingualUrls.mjs.map +1 -1
  27. package/dist/esm/localization/getPathWithoutLocale.mjs +2 -6
  28. package/dist/esm/localization/getPathWithoutLocale.mjs.map +1 -1
  29. package/dist/esm/localization/index.mjs +3 -1
  30. package/dist/esm/localization/index.mjs.map +1 -1
  31. package/dist/esm/localization/localeDetector.mjs +3 -9
  32. package/dist/esm/localization/localeDetector.mjs.map +1 -1
  33. package/dist/esm/localization/localeResolver.mjs +29 -0
  34. package/dist/esm/localization/localeResolver.mjs.map +1 -0
  35. package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -1
  36. package/dist/types/dictionaryManipulator/getContentNodeByKeyPath.d.ts.map +1 -1
  37. package/dist/types/dictionaryManipulator/getDefaultNode.d.ts.map +1 -1
  38. package/dist/types/dictionaryManipulator/getEmptyNode.d.ts.map +1 -1
  39. package/dist/types/dictionaryManipulator/getNodeChildren.d.ts.map +1 -1
  40. package/dist/types/dictionaryManipulator/getNodeType.d.ts.map +1 -1
  41. package/dist/types/dictionaryManipulator/removeContentNodeByKeyPath.d.ts.map +1 -1
  42. package/dist/types/dictionaryManipulator/renameContentNodeByKeyPath.d.ts.map +1 -1
  43. package/dist/types/dictionaryManipulator/updateNodeChildren.d.ts.map +1 -1
  44. package/dist/types/interpreter/getCondition.d.ts.map +1 -1
  45. package/dist/types/interpreter/getContent/deepTransform.d.ts.map +1 -1
  46. package/dist/types/interpreter/getContent/getContent.d.ts.map +1 -1
  47. package/dist/types/interpreter/getContent/plugins.d.ts.map +1 -1
  48. package/dist/types/interpreter/getDictionary.d.ts.map +1 -1
  49. package/dist/types/interpreter/getEnumeration.d.ts.map +1 -1
  50. package/dist/types/interpreter/getIntlayer.d.ts.map +1 -1
  51. package/dist/types/interpreter/getIntlayerAsync.d.ts.map +1 -1
  52. package/dist/types/interpreter/getNesting.d.ts.map +1 -1
  53. package/dist/types/interpreter/getTranslation.d.ts +1 -1
  54. package/dist/types/interpreter/getTranslation.d.ts.map +1 -1
  55. package/dist/types/localization/getHTMLTextDir.d.ts.map +1 -1
  56. package/dist/types/localization/getLocaleLang.d.ts.map +1 -1
  57. package/dist/types/localization/getLocaleName.d.ts.map +1 -1
  58. package/dist/types/localization/getLocalizedUrl.d.ts +1 -1
  59. package/dist/types/localization/getLocalizedUrl.d.ts.map +1 -1
  60. package/dist/types/localization/getMultilingualUrls.d.ts +1 -1
  61. package/dist/types/localization/getMultilingualUrls.d.ts.map +1 -1
  62. package/dist/types/localization/getPathWithoutLocale.d.ts.map +1 -1
  63. package/dist/types/localization/index.d.ts +1 -0
  64. package/dist/types/localization/index.d.ts.map +1 -1
  65. package/dist/types/localization/localeDetector.d.ts +2 -2
  66. package/dist/types/localization/localeDetector.d.ts.map +1 -1
  67. package/dist/types/localization/localeResolver.d.ts +7 -0
  68. package/dist/types/localization/localeResolver.d.ts.map +1 -0
  69. package/dist/types/transpiler/condition/condition.d.ts.map +1 -1
  70. package/dist/types/transpiler/enumeration/enumeration.d.ts.map +1 -1
  71. package/dist/types/transpiler/markdown/markdown.d.ts.map +1 -1
  72. package/dist/types/transpiler/nesting/nesting.d.ts.map +1 -1
  73. package/dist/types/transpiler/translation/translation.d.ts +1 -1
  74. package/dist/types/transpiler/translation/translation.d.ts.map +1 -1
  75. package/dist/types/types/nodeType.d.ts.map +1 -1
  76. package/dist/types/utils/checkIsURLAbsolute.d.ts.map +1 -1
  77. package/dist/types/utils/isSameKeyPath.d.ts.map +1 -1
  78. package/dist/types/utils/isValidReactElement.d.ts.map +1 -1
  79. package/package.json +8 -9
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":["import { getConfiguration, type LocalesValues } from '@intlayer/config/client';\nimport { getMultilingualUrls } from './getMultilingualUrls';\n\n// Destructure necessary configurations\nconst { internationalization, middleware } = getConfiguration();\nconst { locales: localesDefault, defaultLocale: defaultLocaleDefault } =\n internationalization;\nconst { prefixDefault: prefixDefaultDefault } = middleware;\n\n/**\n * Generate URL by prefixing the given URL with the referenced locale.\n * Handles both absolute and relative URLs appropriately.\n *\n * This function get the locales, default locale, and prefix default from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getCurrentUrl('/about', currentLocale, ['en', 'fr'], 'en', false);\n * // Returns '/fr/about' for the French locale\n * // Returns '/about' for the default locale\n * // Returns '/about' for the Italian locale\n *\n * getCurrentUrl('https://example.com/about', currentLocale, ['en', 'fr'], 'en', false);\n * // Returns 'https://example.com/fr/about' for the French locale\n * // Returns 'https://example.com/about' for the default locale\n * // Returns 'https://example.com/about' for the Italian locale\n * ```\n *\n * @param url - The original URL string to be prefixed with locales.\n * @param currentLocale - The current locale.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @param defaultLocale - The default locale. Defaults to `defaultLocaleDefault`.\n * @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.\n * @returns An object mapping each locale to its corresponding multilingual URL.\n */\nexport const getLocalizedUrl = (\n url: string,\n currentLocale: LocalesValues,\n locales: LocalesValues[] = localesDefault,\n defaultLocale: LocalesValues = defaultLocaleDefault,\n prefixDefault: boolean = prefixDefaultDefault\n): string => {\n // Remove any existing locale segment from the URL\n const urlWithoutLocale = getMultilingualUrls(\n url,\n locales,\n defaultLocale,\n prefixDefault\n );\n\n return urlWithoutLocale[\n currentLocale as unknown as keyof typeof urlWithoutLocale\n ];\n};\n"],"mappings":"AAAA,SAAS,wBAA4C;AACrD,SAAS,2BAA2B;AAGpC,MAAM,EAAE,sBAAsB,WAAW,IAAI,iBAAiB;AAC9D,MAAM,EAAE,SAAS,gBAAgB,eAAe,qBAAqB,IACnE;AACF,MAAM,EAAE,eAAe,qBAAqB,IAAI;AA6BzC,MAAM,kBAAkB,CAC7B,KACA,eACA,UAA2B,gBAC3B,gBAA+B,sBAC/B,gBAAyB,yBACd;AAEX,QAAM,mBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SAAO,iBACL,aACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/localization/getLocalizedUrl.ts"],"sourcesContent":["import type { LocalesValues } from '@intlayer/config/client';\nimport configuration from '@intlayer/config/built';\n\nimport { getMultilingualUrls } from './getMultilingualUrls';\n\n/**\n * Generate URL by prefixing the given URL with the referenced locale.\n * Handles both absolute and relative URLs appropriately.\n *\n * This function get the locales, default locale, and prefix default from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getCurrentUrl('/about', currentLocale, ['en', 'fr'], 'en', false);\n * // Returns '/fr/about' for the French locale\n * // Returns '/about' for the default locale\n * // Returns '/about' for the Italian locale\n *\n * getCurrentUrl('https://example.com/about', currentLocale, ['en', 'fr'], 'en', false);\n * // Returns 'https://example.com/fr/about' for the French locale\n * // Returns 'https://example.com/about' for the default locale\n * // Returns 'https://example.com/about' for the Italian locale\n * ```\n *\n * @param url - The original URL string to be prefixed with locales.\n * @param currentLocale - The current locale.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @param defaultLocale - The default locale. Defaults to `defaultLocaleDefault`.\n * @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.\n * @returns An object mapping each locale to its corresponding multilingual URL.\n */\nexport const getLocalizedUrl = (\n url: string,\n currentLocale: LocalesValues,\n locales: LocalesValues[] = configuration.internationalization.locales,\n defaultLocale: LocalesValues = configuration.internationalization\n .defaultLocale,\n prefixDefault: boolean = configuration.middleware.prefixDefault\n): string => {\n // Remove any existing locale segment from the URL\n const urlWithoutLocale = getMultilingualUrls(\n url,\n locales,\n defaultLocale,\n prefixDefault\n );\n\n return urlWithoutLocale[\n currentLocale as unknown as keyof typeof urlWithoutLocale\n ];\n};\n"],"mappings":"AACA,OAAO,mBAAmB;AAE1B,SAAS,2BAA2B;AA6B7B,MAAM,kBAAkB,CAC7B,KACA,eACA,UAA2B,cAAc,qBAAqB,SAC9D,gBAA+B,cAAc,qBAC1C,eACH,gBAAyB,cAAc,WAAW,kBACvC;AAEX,QAAM,mBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SAAO,iBACL,aACF;AACF;","names":[]}
@@ -1,10 +1,7 @@
1
- import { getConfiguration } from "@intlayer/config/client";
1
+ import configuration from "@intlayer/config/built";
2
2
  import { checkIsURLAbsolute } from "../utils/checkIsURLAbsolute.mjs";
3
3
  import { getPathWithoutLocale } from "./getPathWithoutLocale.mjs";
4
- const { internationalization, middleware } = getConfiguration();
5
- const { locales: localesDefault, defaultLocale: defaultLocaleDefault } = internationalization;
6
- const { prefixDefault: prefixDefaultDefault } = middleware;
7
- const getMultilingualUrls = (url, locales = localesDefault, defaultLocale = defaultLocaleDefault, prefixDefault = prefixDefaultDefault) => {
4
+ const getMultilingualUrls = (url, locales = configuration.internationalization.locales, defaultLocale = configuration.internationalization.defaultLocale, prefixDefault = configuration.middleware.prefixDefault) => {
8
5
  const urlWithoutLocale = getPathWithoutLocale(url, locales);
9
6
  const isAbsoluteUrl = checkIsURLAbsolute(urlWithoutLocale);
10
7
  const parsedUrl = isAbsoluteUrl ? new URL(urlWithoutLocale) : new URL(urlWithoutLocale, "http://example.com");
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/localization/getMultilingualUrls.ts"],"sourcesContent":["import { getConfiguration, type LocalesValues } from '@intlayer/config/client';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IConfigLocales } from 'intlayer';\nimport { checkIsURLAbsolute } from '../utils/checkIsURLAbsolute';\nimport { getPathWithoutLocale } from './getPathWithoutLocale';\n\n// Destructure necessary configurations\nconst { internationalization, middleware } = getConfiguration();\nconst { locales: localesDefault, defaultLocale: defaultLocaleDefault } =\n internationalization;\nconst { prefixDefault: prefixDefaultDefault } = middleware;\n\n/**\n * Generates multilingual URLs by prefixing the given URL with each supported locale.\n * Handles both absolute and relative URLs appropriately.\n *\n * This function get the locales, default locale, and prefix default from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', false)\n * // Returns { en: '/dashboard', fr: '/fr/dashboard' }\n * getMultilingualUrls('https://example.com/dashboard', ['en', 'fr'], 'en', true)\n * // Returns { en: 'https://example.com/en/dashboard', fr: 'https://example.com/fr/dashboard' }\n * ```\n *\n * @param url - The original URL string to be prefixed with locales.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @param defaultLocale - The default locale. Defaults to `defaultLocaleDefault`.\n * @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.\n * @returns An object mapping each locale to its corresponding multilingual URL.\n */\nexport const getMultilingualUrls = (\n url: string,\n locales: LocalesValues[] = localesDefault,\n defaultLocale: LocalesValues = defaultLocaleDefault,\n prefixDefault: boolean = prefixDefaultDefault\n): IConfigLocales<string> => {\n // Remove any existing locale segment from the URL\n const urlWithoutLocale = getPathWithoutLocale(url, locales);\n\n // Determine if the original URL is absolute (includes protocol)\n const isAbsoluteUrl = checkIsURLAbsolute(urlWithoutLocale);\n\n // Initialize a URL object if the URL is absolute\n // For relative URLs, use a dummy base to leverage the URL API\n const parsedUrl = isAbsoluteUrl\n ? new URL(urlWithoutLocale)\n : new URL(urlWithoutLocale, 'http://example.com');\n\n // Extract the pathname from the parsed URL\n let pathname = parsedUrl.pathname;\n\n // Ensure the pathname starts with a '/'\n if (!pathname.startsWith('/')) {\n pathname = `/${pathname}`;\n }\n\n // Prepare the base URL (protocol + host) if it's absolute\n const baseUrl = isAbsoluteUrl\n ? `${parsedUrl.protocol}//${parsedUrl.host}`\n : '';\n\n // Generate multilingual URLs by iterating over each locale\n const multilingualUrls = locales.reduce<IConfigLocales<string>>(\n (acc, locale) => {\n // Determine if the current locale is the default locale\n const isDefaultLocale = locale.toString() === defaultLocale.toString();\n\n // Decide whether to prefix the default locale based on `prefixDefault`\n const shouldPrefix = prefixDefault || !isDefaultLocale;\n\n // Construct the new pathname with or without the locale prefix\n let localizedPath = shouldPrefix ? `/${locale}${pathname}` : pathname;\n\n if (localizedPath.length > 1 && localizedPath.endsWith('/')) {\n localizedPath = localizedPath.slice(0, -1);\n }\n\n // Combine with the base URL if the original URL was absolute\n const localizedUrl = isAbsoluteUrl\n ? `${baseUrl}${localizedPath}${parsedUrl.search}${parsedUrl.hash}`\n : `${localizedPath}${parsedUrl.search}${parsedUrl.hash}`;\n\n // Assign the constructed URL to the corresponding locale key\n acc[locale as unknown as keyof typeof acc] = localizedUrl;\n\n return acc;\n },\n {} as IConfigLocales<string> // Initialize an empty object\n );\n\n return multilingualUrls;\n};\n"],"mappings":"AAAA,SAAS,wBAA4C;AAGrD,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AAGrC,MAAM,EAAE,sBAAsB,WAAW,IAAI,iBAAiB;AAC9D,MAAM,EAAE,SAAS,gBAAgB,eAAe,qBAAqB,IACnE;AACF,MAAM,EAAE,eAAe,qBAAqB,IAAI;AAuBzC,MAAM,sBAAsB,CACjC,KACA,UAA2B,gBAC3B,gBAA+B,sBAC/B,gBAAyB,yBACE;AAE3B,QAAM,mBAAmB,qBAAqB,KAAK,OAAO;AAG1D,QAAM,gBAAgB,mBAAmB,gBAAgB;AAIzD,QAAM,YAAY,gBACd,IAAI,IAAI,gBAAgB,IACxB,IAAI,IAAI,kBAAkB,oBAAoB;AAGlD,MAAI,WAAW,UAAU;AAGzB,MAAI,CAAC,SAAS,WAAW,GAAG,GAAG;AAC7B,eAAW,IAAI,QAAQ;AAAA,EACzB;AAGA,QAAM,UAAU,gBACZ,GAAG,UAAU,QAAQ,KAAK,UAAU,IAAI,KACxC;AAGJ,QAAM,mBAAmB,QAAQ;AAAA,IAC/B,CAAC,KAAK,WAAW;AAEf,YAAM,kBAAkB,OAAO,SAAS,MAAM,cAAc,SAAS;AAGrE,YAAM,eAAe,iBAAiB,CAAC;AAGvC,UAAI,gBAAgB,eAAe,IAAI,MAAM,GAAG,QAAQ,KAAK;AAE7D,UAAI,cAAc,SAAS,KAAK,cAAc,SAAS,GAAG,GAAG;AAC3D,wBAAgB,cAAc,MAAM,GAAG,EAAE;AAAA,MAC3C;AAGA,YAAM,eAAe,gBACjB,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,MAAM,GAAG,UAAU,IAAI,KAC9D,GAAG,aAAa,GAAG,UAAU,MAAM,GAAG,UAAU,IAAI;AAGxD,UAAI,MAAqC,IAAI;AAE7C,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA;AAAA,EACH;AAEA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../src/localization/getMultilingualUrls.ts"],"sourcesContent":["import type { LocalesValues } from '@intlayer/config/client';\nimport configuration from '@intlayer/config/built';\n\n// @ts-ignore intlayer declared for module augmentation\nimport type { IConfigLocales } from 'intlayer';\nimport { checkIsURLAbsolute } from '../utils/checkIsURLAbsolute';\nimport { getPathWithoutLocale } from './getPathWithoutLocale';\n\n/**\n * Generates multilingual URLs by prefixing the given URL with each supported locale.\n * Handles both absolute and relative URLs appropriately.\n *\n * This function get the locales, default locale, and prefix default from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getMultilingualUrls('/dashboard', ['en', 'fr'], 'en', false)\n * // Returns { en: '/dashboard', fr: '/fr/dashboard' }\n * getMultilingualUrls('https://example.com/dashboard', ['en', 'fr'], 'en', true)\n * // Returns { en: 'https://example.com/en/dashboard', fr: 'https://example.com/fr/dashboard' }\n * ```\n *\n * @param url - The original URL string to be prefixed with locales.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @param defaultLocale - The default locale. Defaults to `defaultLocaleDefault`.\n * @param prefixDefault - Whether to prefix the default locale. Defaults to `prefixDefaultDefault`.\n * @returns An object mapping each locale to its corresponding multilingual URL.\n */\nexport const getMultilingualUrls = (\n url: string,\n locales: LocalesValues[] = configuration.internationalization.locales,\n defaultLocale: LocalesValues = configuration.internationalization\n .defaultLocale,\n prefixDefault: boolean = configuration.middleware.prefixDefault\n): IConfigLocales<string> => {\n // Remove any existing locale segment from the URL\n const urlWithoutLocale = getPathWithoutLocale(url, locales);\n\n // Determine if the original URL is absolute (includes protocol)\n const isAbsoluteUrl = checkIsURLAbsolute(urlWithoutLocale);\n\n // Initialize a URL object if the URL is absolute\n // For relative URLs, use a dummy base to leverage the URL API\n const parsedUrl = isAbsoluteUrl\n ? new URL(urlWithoutLocale)\n : new URL(urlWithoutLocale, 'http://example.com');\n\n // Extract the pathname from the parsed URL\n let pathname = parsedUrl.pathname;\n\n // Ensure the pathname starts with a '/'\n if (!pathname.startsWith('/')) {\n pathname = `/${pathname}`;\n }\n\n // Prepare the base URL (protocol + host) if it's absolute\n const baseUrl = isAbsoluteUrl\n ? `${parsedUrl.protocol}//${parsedUrl.host}`\n : '';\n\n // Generate multilingual URLs by iterating over each locale\n const multilingualUrls = locales.reduce<IConfigLocales<string>>(\n (acc, locale) => {\n // Determine if the current locale is the default locale\n const isDefaultLocale = locale.toString() === defaultLocale.toString();\n\n // Decide whether to prefix the default locale based on `prefixDefault`\n const shouldPrefix = prefixDefault || !isDefaultLocale;\n\n // Construct the new pathname with or without the locale prefix\n let localizedPath = shouldPrefix ? `/${locale}${pathname}` : pathname;\n\n if (localizedPath.length > 1 && localizedPath.endsWith('/')) {\n localizedPath = localizedPath.slice(0, -1);\n }\n\n // Combine with the base URL if the original URL was absolute\n const localizedUrl = isAbsoluteUrl\n ? `${baseUrl}${localizedPath}${parsedUrl.search}${parsedUrl.hash}`\n : `${localizedPath}${parsedUrl.search}${parsedUrl.hash}`;\n\n // Assign the constructed URL to the corresponding locale key\n acc[locale as unknown as keyof typeof acc] = localizedUrl;\n\n return acc;\n },\n {} as IConfigLocales<string> // Initialize an empty object\n );\n\n return multilingualUrls;\n};\n"],"mappings":"AACA,OAAO,mBAAmB;AAI1B,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AAuB9B,MAAM,sBAAsB,CACjC,KACA,UAA2B,cAAc,qBAAqB,SAC9D,gBAA+B,cAAc,qBAC1C,eACH,gBAAyB,cAAc,WAAW,kBACvB;AAE3B,QAAM,mBAAmB,qBAAqB,KAAK,OAAO;AAG1D,QAAM,gBAAgB,mBAAmB,gBAAgB;AAIzD,QAAM,YAAY,gBACd,IAAI,IAAI,gBAAgB,IACxB,IAAI,IAAI,kBAAkB,oBAAoB;AAGlD,MAAI,WAAW,UAAU;AAGzB,MAAI,CAAC,SAAS,WAAW,GAAG,GAAG;AAC7B,eAAW,IAAI,QAAQ;AAAA,EACzB;AAGA,QAAM,UAAU,gBACZ,GAAG,UAAU,QAAQ,KAAK,UAAU,IAAI,KACxC;AAGJ,QAAM,mBAAmB,QAAQ;AAAA,IAC/B,CAAC,KAAK,WAAW;AAEf,YAAM,kBAAkB,OAAO,SAAS,MAAM,cAAc,SAAS;AAGrE,YAAM,eAAe,iBAAiB,CAAC;AAGvC,UAAI,gBAAgB,eAAe,IAAI,MAAM,GAAG,QAAQ,KAAK;AAE7D,UAAI,cAAc,SAAS,KAAK,cAAc,SAAS,GAAG,GAAG;AAC3D,wBAAgB,cAAc,MAAM,GAAG,EAAE;AAAA,MAC3C;AAGA,YAAM,eAAe,gBACjB,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,MAAM,GAAG,UAAU,IAAI,KAC9D,GAAG,aAAa,GAAG,UAAU,MAAM,GAAG,UAAU,IAAI;AAGxD,UAAI,MAAqC,IAAI;AAE7C,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA;AAAA,EACH;AAEA,SAAO;AACT;","names":[]}
@@ -1,10 +1,6 @@
1
- import {
2
- getConfiguration
3
- } from "@intlayer/config/client";
1
+ import configuration from "@intlayer/config/built";
4
2
  import { checkIsURLAbsolute } from "../utils/checkIsURLAbsolute.mjs";
5
- const { internationalization } = getConfiguration();
6
- const { locales: localesDefault } = internationalization;
7
- const getPathWithoutLocale = (inputUrl, locales = localesDefault) => {
3
+ const getPathWithoutLocale = (inputUrl, locales = configuration.internationalization.locales) => {
8
4
  const isAbsoluteUrl = checkIsURLAbsolute(inputUrl);
9
5
  let fixedInputUrl = inputUrl;
10
6
  if (inputUrl.endsWith("/")) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/localization/getPathWithoutLocale.ts"],"sourcesContent":["import {\n getConfiguration,\n type Locales,\n type LocalesValues,\n} from '@intlayer/config/client';\nimport { checkIsURLAbsolute } from '../utils/checkIsURLAbsolute';\n\nconst { internationalization } = getConfiguration();\nconst { locales: localesDefault } = internationalization;\n\n/**\n * Removes the locale segment from the given URL or pathname if present.\n *\n * This function get the locales from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getPathWithoutLocale('/en/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('/fr/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('dashboard') // Returns 'dashboard'\n * getPathWithoutLocale('https://example.com/en/dashboard') // Returns 'https://example.com/dashboard'\n * getPathWithoutLocale('https://example.com/fr/dashboard') // Returns 'https://example.com/dashboard'\n * getPathWithoutLocale('https://example.com/dashboard') // Returns 'https://example.com/dashboard'\n * ```\n *\n * @param inputUrl - The complete URL string or pathname to process.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @returns The URL string or pathname without the locale segment.\n */\nexport const getPathWithoutLocale = (\n inputUrl: string,\n locales: LocalesValues[] = localesDefault\n): string => {\n // Determine if the original URL is absolute (includes protocol)\n const isAbsoluteUrl = checkIsURLAbsolute(inputUrl);\n\n let fixedInputUrl = inputUrl;\n\n if (inputUrl.endsWith('/')) {\n fixedInputUrl = inputUrl.slice(0, -1);\n }\n\n // Initialize a URL object if the URL is absolute\n // For relative URLs, use a dummy base to leverage the URL API\n const url = isAbsoluteUrl\n ? new URL(fixedInputUrl)\n : new URL(fixedInputUrl, 'http://example.com');\n\n const pathname = url.pathname;\n\n // Ensure the pathname starts with '/'\n if (!pathname.startsWith('/')) {\n // If not, return the URL as is\n url.pathname = `/${pathname}`;\n }\n\n // Split the pathname to extract the first segment\n const pathSegments = pathname.split('/');\n const firstSegment = pathSegments[1]; // The segment after the first '/'\n\n // Check if the first segment is a supported locale\n if (locales.includes(firstSegment as Locales)) {\n // Remove the locale segment from the pathname\n pathSegments.splice(1, 1); // Remove the first segment\n\n // Reconstruct the pathname\n const newPathname = pathSegments.join('/') ?? '/';\n url.pathname = newPathname;\n }\n\n if (isAbsoluteUrl) {\n // Return the modified URL as a string\n return url.toString();\n }\n\n // Return the modified URL as a string\n return url.toString().replace('http://example.com', '');\n};\n"],"mappings":"AAAA;AAAA,EACE;AAAA,OAGK;AACP,SAAS,0BAA0B;AAEnC,MAAM,EAAE,qBAAqB,IAAI,iBAAiB;AAClD,MAAM,EAAE,SAAS,eAAe,IAAI;AAuB7B,MAAM,uBAAuB,CAClC,UACA,UAA2B,mBAChB;AAEX,QAAM,gBAAgB,mBAAmB,QAAQ;AAEjD,MAAI,gBAAgB;AAEpB,MAAI,SAAS,SAAS,GAAG,GAAG;AAC1B,oBAAgB,SAAS,MAAM,GAAG,EAAE;AAAA,EACtC;AAIA,QAAM,MAAM,gBACR,IAAI,IAAI,aAAa,IACrB,IAAI,IAAI,eAAe,oBAAoB;AAE/C,QAAM,WAAW,IAAI;AAGrB,MAAI,CAAC,SAAS,WAAW,GAAG,GAAG;AAE7B,QAAI,WAAW,IAAI,QAAQ;AAAA,EAC7B;AAGA,QAAM,eAAe,SAAS,MAAM,GAAG;AACvC,QAAM,eAAe,aAAa,CAAC;AAGnC,MAAI,QAAQ,SAAS,YAAuB,GAAG;AAE7C,iBAAa,OAAO,GAAG,CAAC;AAGxB,UAAM,cAAc,aAAa,KAAK,GAAG,KAAK;AAC9C,QAAI,WAAW;AAAA,EACjB;AAEA,MAAI,eAAe;AAEjB,WAAO,IAAI,SAAS;AAAA,EACtB;AAGA,SAAO,IAAI,SAAS,EAAE,QAAQ,sBAAsB,EAAE;AACxD;","names":[]}
1
+ {"version":3,"sources":["../../../src/localization/getPathWithoutLocale.ts"],"sourcesContent":["import { type Locales, type LocalesValues } from '@intlayer/config/client';\nimport configuration from '@intlayer/config/built';\n\nimport { checkIsURLAbsolute } from '../utils/checkIsURLAbsolute';\n\n/**\n * Removes the locale segment from the given URL or pathname if present.\n *\n * This function get the locales from the configuration if not provided.\n *\n * Example:\n *\n * ```ts\n * getPathWithoutLocale('/en/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('/fr/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('/dashboard') // Returns '/dashboard'\n * getPathWithoutLocale('dashboard') // Returns 'dashboard'\n * getPathWithoutLocale('https://example.com/en/dashboard') // Returns 'https://example.com/dashboard'\n * getPathWithoutLocale('https://example.com/fr/dashboard') // Returns 'https://example.com/dashboard'\n * getPathWithoutLocale('https://example.com/dashboard') // Returns 'https://example.com/dashboard'\n * ```\n *\n * @param inputUrl - The complete URL string or pathname to process.\n * @param locales - Optional array of supported locales. Defaults to `localesDefault`.\n * @returns The URL string or pathname without the locale segment.\n */\nexport const getPathWithoutLocale = (\n inputUrl: string,\n locales: LocalesValues[] = configuration.internationalization\n .locales as LocalesValues[]\n): string => {\n // Determine if the original URL is absolute (includes protocol)\n const isAbsoluteUrl = checkIsURLAbsolute(inputUrl);\n\n let fixedInputUrl = inputUrl;\n\n if (inputUrl.endsWith('/')) {\n fixedInputUrl = inputUrl.slice(0, -1);\n }\n\n // Initialize a URL object if the URL is absolute\n // For relative URLs, use a dummy base to leverage the URL API\n const url = isAbsoluteUrl\n ? new URL(fixedInputUrl)\n : new URL(fixedInputUrl, 'http://example.com');\n\n const pathname = url.pathname;\n\n // Ensure the pathname starts with '/'\n if (!pathname.startsWith('/')) {\n // If not, return the URL as is\n url.pathname = `/${pathname}`;\n }\n\n // Split the pathname to extract the first segment\n const pathSegments = pathname.split('/');\n const firstSegment = pathSegments[1]; // The segment after the first '/'\n\n // Check if the first segment is a supported locale\n if (locales.includes(firstSegment as Locales)) {\n // Remove the locale segment from the pathname\n pathSegments.splice(1, 1); // Remove the first segment\n\n // Reconstruct the pathname\n const newPathname = pathSegments.join('/') ?? '/';\n url.pathname = newPathname;\n }\n\n if (isAbsoluteUrl) {\n // Return the modified URL as a string\n return url.toString();\n }\n\n // Return the modified URL as a string\n return url.toString().replace('http://example.com', '');\n};\n"],"mappings":"AACA,OAAO,mBAAmB;AAE1B,SAAS,0BAA0B;AAuB5B,MAAM,uBAAuB,CAClC,UACA,UAA2B,cAAc,qBACtC,YACQ;AAEX,QAAM,gBAAgB,mBAAmB,QAAQ;AAEjD,MAAI,gBAAgB;AAEpB,MAAI,SAAS,SAAS,GAAG,GAAG;AAC1B,oBAAgB,SAAS,MAAM,GAAG,EAAE;AAAA,EACtC;AAIA,QAAM,MAAM,gBACR,IAAI,IAAI,aAAa,IACrB,IAAI,IAAI,eAAe,oBAAoB;AAE/C,QAAM,WAAW,IAAI;AAGrB,MAAI,CAAC,SAAS,WAAW,GAAG,GAAG;AAE7B,QAAI,WAAW,IAAI,QAAQ;AAAA,EAC7B;AAGA,QAAM,eAAe,SAAS,MAAM,GAAG;AACvC,QAAM,eAAe,aAAa,CAAC;AAGnC,MAAI,QAAQ,SAAS,YAAuB,GAAG;AAE7C,iBAAa,OAAO,GAAG,CAAC;AAGxB,UAAM,cAAc,aAAa,KAAK,GAAG,KAAK;AAC9C,QAAI,WAAW;AAAA,EACjB;AAEA,MAAI,eAAe;AAEjB,WAAO,IAAI,SAAS;AAAA,EACtB;AAGA,SAAO,IAAI,SAAS,EAAE,QAAQ,sBAAsB,EAAE;AACxD;","names":[]}
@@ -2,6 +2,7 @@ import { getLocaleName } from "./getLocaleName.mjs";
2
2
  import { getHTMLTextDir } from "./getHTMLTextDir.mjs";
3
3
  import { getLocaleLang } from "./getLocaleLang.mjs";
4
4
  import { localeList } from "./localeList.mjs";
5
+ import { localeResolver } from "./localeResolver.mjs";
5
6
  import { localeDetector } from "./localeDetector.mjs";
6
7
  import { getPathWithoutLocale } from "./getPathWithoutLocale.mjs";
7
8
  import { getMultilingualUrls } from "./getMultilingualUrls.mjs";
@@ -14,6 +15,7 @@ export {
14
15
  getMultilingualUrls,
15
16
  getPathWithoutLocale,
16
17
  localeDetector,
17
- localeList
18
+ localeList,
19
+ localeResolver
18
20
  };
19
21
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/localization/index.ts"],"sourcesContent":["export { getLocaleName } from './getLocaleName';\nexport { getHTMLTextDir } from './getHTMLTextDir';\nexport { getLocaleLang } from './getLocaleLang';\nexport { localeList } from './localeList';\nexport { localeDetector } from './localeDetector';\nexport { getPathWithoutLocale } from './getPathWithoutLocale';\nexport { getMultilingualUrls } from './getMultilingualUrls';\nexport { getLocalizedUrl } from './getLocalizedUrl';\n"],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;","names":[]}
1
+ {"version":3,"sources":["../../../src/localization/index.ts"],"sourcesContent":["export { getLocaleName } from './getLocaleName';\nexport { getHTMLTextDir } from './getHTMLTextDir';\nexport { getLocaleLang } from './getLocaleLang';\nexport { localeList } from './localeList';\nexport { localeResolver } from './localeResolver';\nexport { localeDetector } from './localeDetector';\nexport { getPathWithoutLocale } from './getPathWithoutLocale';\nexport { getMultilingualUrls } from './getMultilingualUrls';\nexport { getLocalizedUrl } from './getLocalizedUrl';\n"],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;","names":[]}
@@ -1,14 +1,8 @@
1
- import { match } from "@formatjs/intl-localematcher";
2
- import { getConfiguration } from "@intlayer/config/client";
3
1
  import Negotiator from "negotiator";
4
- const { locales: envLocales, defaultLocale: defaultLocaleEnv } = getConfiguration().internationalization;
5
- const localeDetector = (headers, locales = envLocales, defaultLocale = defaultLocaleEnv) => {
2
+ import { localeResolver } from "./localeResolver.mjs";
3
+ const localeDetector = (headers, locales, defaultLocale) => {
6
4
  const languages = new Negotiator({ headers }).languages();
7
- try {
8
- return match(languages, locales, defaultLocale);
9
- } catch (_error) {
10
- return defaultLocale;
11
- }
5
+ return localeResolver(languages, locales, defaultLocale);
12
6
  };
13
7
  export {
14
8
  localeDetector
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/localization/localeDetector.ts"],"sourcesContent":["import { match } from '@formatjs/intl-localematcher';\nimport { getConfiguration, type Locales } from '@intlayer/config/client';\nimport Negotiator from 'negotiator';\n\nconst { locales: envLocales, defaultLocale: defaultLocaleEnv } =\n getConfiguration().internationalization;\n\n/**\n * Detects the locale from the request headers\n *\n * Headers are provided by the browser and can be used to determine the user's preferred language\n */\nexport const localeDetector = (\n headers: Record<string, string | undefined>,\n locales: Locales[] = envLocales,\n defaultLocale: Locales = defaultLocaleEnv\n): Locales => {\n const languages = new Negotiator({ headers }).languages();\n\n // match can only use specifically formatted locales\n // https://stackoverflow.com/questions/76447732/nextjs-13-i18n-incorrect-locale-information-provided\n try {\n return match(languages, locales, defaultLocale) as Locales;\n } catch (_error) {\n return defaultLocale;\n }\n};\n"],"mappings":"AAAA,SAAS,aAAa;AACtB,SAAS,wBAAsC;AAC/C,OAAO,gBAAgB;AAEvB,MAAM,EAAE,SAAS,YAAY,eAAe,iBAAiB,IAC3D,iBAAiB,EAAE;AAOd,MAAM,iBAAiB,CAC5B,SACA,UAAqB,YACrB,gBAAyB,qBACb;AACZ,QAAM,YAAY,IAAI,WAAW,EAAE,QAAQ,CAAC,EAAE,UAAU;AAIxD,MAAI;AACF,WAAO,MAAM,WAAW,SAAS,aAAa;AAAA,EAChD,SAAS,QAAQ;AACf,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/localization/localeDetector.ts"],"sourcesContent":["import { LocalesValues, type Locales } from '@intlayer/config/client';\nimport Negotiator from 'negotiator';\nimport { localeResolver } from './localeResolver';\n\n/**\n * Detects the locale from the request headers\n *\n * Headers are provided by the browser and can be used to determine the user's preferred language\n */\nexport const localeDetector = (\n headers: Record<string, string | undefined>,\n locales?: Locales[],\n defaultLocale?: Locales\n): LocalesValues => {\n const languages = new Negotiator({ headers }).languages();\n\n return localeResolver(languages as Locales[], locales, defaultLocale);\n};\n"],"mappings":"AACA,OAAO,gBAAgB;AACvB,SAAS,sBAAsB;AAOxB,MAAM,iBAAiB,CAC5B,SACA,SACA,kBACkB;AAClB,QAAM,YAAY,IAAI,WAAW,EAAE,QAAQ,CAAC,EAAE,UAAU;AAExD,SAAO,eAAe,WAAwB,SAAS,aAAa;AACtE;","names":[]}
@@ -0,0 +1,29 @@
1
+ import configuration from "@intlayer/config/built";
2
+ const localeResolver = (selectedLocale, locales = configuration.internationalization.locales, defaultLocale = configuration.internationalization.defaultLocale) => {
3
+ const requestedLocales = [selectedLocale].flat();
4
+ const normalize = (locale) => locale.trim().toLowerCase();
5
+ try {
6
+ for (const requested of requestedLocales) {
7
+ const normalizedRequested = normalize(requested);
8
+ const exactMatch = locales.find(
9
+ (loc) => normalize(loc) === normalizedRequested
10
+ );
11
+ if (exactMatch) {
12
+ return exactMatch;
13
+ }
14
+ const [requestedLang] = normalizedRequested.split("-");
15
+ const partialMatch = locales.find(
16
+ (loc) => normalize(loc).split("-")[0] === requestedLang
17
+ );
18
+ if (partialMatch) {
19
+ return partialMatch;
20
+ }
21
+ }
22
+ } catch (_error) {
23
+ }
24
+ return defaultLocale;
25
+ };
26
+ export {
27
+ localeResolver
28
+ };
29
+ //# sourceMappingURL=localeResolver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/localization/localeResolver.ts"],"sourcesContent":["import type { LocalesValues } from '@intlayer/config/client';\nimport configuration from '@intlayer/config/built';\n\n/**\n * Resolves the most specific locale from a user-provided list,\n * or falls back to the default locale if no match is found.\n */\nexport const localeResolver = (\n selectedLocale: LocalesValues | LocalesValues[],\n locales: LocalesValues[] = configuration.internationalization.locales,\n defaultLocale: LocalesValues = configuration.internationalization\n .defaultLocale\n): LocalesValues => {\n // Ensure we can handle both a single locale or an array of locales uniformly\n const requestedLocales = [selectedLocale].flat();\n\n // Simple helper to normalize locale strings (e.g. \"en-US\" => \"en-us\")\n const normalize = (locale: string): string => locale.trim().toLowerCase();\n\n try {\n // Check each requested locale in order\n for (const requested of requestedLocales) {\n const normalizedRequested = normalize(requested);\n\n // 1) Attempt exact match\n const exactMatch = locales.find(\n (loc) => normalize(loc) === normalizedRequested\n );\n if (exactMatch) {\n return exactMatch;\n }\n\n // 2) Attempt partial match on language subtag\n // e.g. if requested is \"en-US\" and not found,\n // see if \"en\" is available among locales\n const [requestedLang] = normalizedRequested.split('-');\n const partialMatch = locales.find(\n (loc) => normalize(loc).split('-')[0] === requestedLang\n );\n if (partialMatch) {\n return partialMatch;\n }\n }\n } catch (_error) {\n // If anything unexpected happened, fall back to default\n }\n\n // If no match was found, return the default\n return defaultLocale;\n};\n"],"mappings":"AACA,OAAO,mBAAmB;AAMnB,MAAM,iBAAiB,CAC5B,gBACA,UAA2B,cAAc,qBAAqB,SAC9D,gBAA+B,cAAc,qBAC1C,kBACe;AAElB,QAAM,mBAAmB,CAAC,cAAc,EAAE,KAAK;AAG/C,QAAM,YAAY,CAAC,WAA2B,OAAO,KAAK,EAAE,YAAY;AAExE,MAAI;AAEF,eAAW,aAAa,kBAAkB;AACxC,YAAM,sBAAsB,UAAU,SAAS;AAG/C,YAAM,aAAa,QAAQ;AAAA,QACzB,CAAC,QAAQ,UAAU,GAAG,MAAM;AAAA,MAC9B;AACA,UAAI,YAAY;AACd,eAAO;AAAA,MACT;AAKA,YAAM,CAAC,aAAa,IAAI,oBAAoB,MAAM,GAAG;AACrD,YAAM,eAAe,QAAQ;AAAA,QAC3B,CAAC,QAAQ,UAAU,GAAG,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM;AAAA,MAC5C;AACA,UAAI,cAAc;AAChB,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF,SAAS,QAAQ;AAAA,EAEjB;AAGA,SAAO;AACT;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"editDictionaryByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,uBAAuB,sBACf,WAAW,WACrB,OAAO,EAAE,YACR,WAAW,KACpB,WA+GF,CAAC"}
1
+ {"version":3,"file":"editDictionaryByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/editDictionaryByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,uBAAuB,GAClC,mBAAmB,WAAW,EAC9B,SAAS,OAAO,EAAE,EAClB,UAAU,WAAW,KACpB,WA+GF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,uBAAuB,sBACf,WAAW,WACrB,OAAO,EAAE,KACjB,WAkBF,CAAC"}
1
+ {"version":3,"file":"getContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,uBAAuB,GAClC,mBAAmB,WAAW,EAC9B,SAAS,OAAO,EAAE,KACjB,WAkBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultNode.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getDefaultNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEtD,eAAO,MAAM,cAAc,aACf,QAAQ,WACT,aAAa,EAAE,YACd,WAAW,sSAiEtB,CAAC"}
1
+ {"version":3,"file":"getDefaultNode.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getDefaultNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEtD,eAAO,MAAM,cAAc,GACzB,UAAU,QAAQ,EAClB,SAAS,aAAa,EAAE,EACxB,UAAU,WAAW,sSAiEtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getEmptyNode.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getEmptyNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,YAAY,YAAa,WAAW,KAAG,WAmDnD,CAAC"}
1
+ {"version":3,"file":"getEmptyNode.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getEmptyNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,YAAY,GAAI,SAAS,WAAW,KAAG,WAmDnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getNodeChildren.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getNodeChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,eAAe,YAAa,WAAW,KAAG,WAuCtD,CAAC"}
1
+ {"version":3,"file":"getNodeChildren.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getNodeChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,eAAe,GAAI,SAAS,WAAW,KAAG,WAuCtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getNodeType.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getNodeType.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAuB,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,eAAO,MAAM,WAAW,YAAa,WAAW,KAAG,QAgDlD,CAAC"}
1
+ {"version":3,"file":"getNodeType.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/getNodeType.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAuB,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,eAAO,MAAM,WAAW,GAAI,SAAS,WAAW,KAAG,QAgDlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"removeContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,0BAA0B,sBAClB,WAAW,WACrB,OAAO,EAAE,KACjB,WAsCF,CAAC"}
1
+ {"version":3,"file":"removeContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/removeContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,0BAA0B,GACrC,mBAAmB,WAAW,EAC9B,SAAS,OAAO,EAAE,KACjB,WAsCF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renameContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,0BAA0B,sBAClB,WAAW,UACtB,OAAO,CAAC,KAAK,CAAC,WACb,OAAO,EAAE,KACjB,WAiDF,CAAC"}
1
+ {"version":3,"file":"renameContentNodeByKeyPath.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/renameContentNodeByKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,0BAA0B,GACrC,mBAAmB,WAAW,EAC9B,QAAQ,OAAO,CAAC,KAAK,CAAC,EACtB,SAAS,OAAO,EAAE,KACjB,WAiDF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateNodeChildren.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/updateNodeChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,kBAAkB,GAC7B,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,WAAW,WAEZ,CAAC,eACG,CAAC,KACb,WA4DF,CAAC"}
1
+ {"version":3,"file":"updateNodeChildren.d.ts","sourceRoot":"","sources":["../../../src/dictionaryManipulator/updateNodeChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,kBAAkB,GAC7B,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,WAAW,EAErB,SAAS,CAAC,EACV,aAAa,CAAC,KACb,WA4DF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getCondition.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,oBAChB,sBAAsB,CAAC,OAAO,CAAC,UACzC,OAAO,KACd,OAYF,CAAC"}
1
+ {"version":3,"file":"getCondition.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,EAClC,kBAAkB,sBAAsB,CAAC,OAAO,CAAC,EACjD,QAAQ,OAAO,KACd,OAYF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deepTransform.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/deepTransform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,SAAU,GAAG,SAAS,SAAS,KAAG,GA2C/D,CAAC"}
1
+ {"version":3,"file":"deepTransform.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/deepTransform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,GAAG,EAAE,OAAO,SAAS,KAAG,GA2C/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getContent.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/getContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAKL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EAEf,MAAM,WAAW,CAAC;AAEnB;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,aAAa,kBAEjB,CAAC,aACI,SAAS,WACX,CAAC,KAeJ,oBAAoB,CAAC,CAAC,CAC7B,CAAC"}
1
+ {"version":3,"file":"getContent.d.ts","sourceRoot":"","sources":["../../../../src/interpreter/getContent/getContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAKL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EAEf,MAAM,WAAW,CAAC;AAEnB;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,aAAa,GAAG,OAAO,EAEjC,MAAM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AAa,GACxB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,aAAa,wBAEX,CAAC,WACJ,CAAC,YACA,OAAO,EAAE,KAcP,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
1
+ {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAG7E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,aAAa,GAAG,OAAO,EAEjC,YAAY,CAAC,EACb,SAAS,CAAC,EACV,UAAU,OAAO,EAAE,KAcP,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getEnumeration.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getEnumeration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,uBAAuB,EACxB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,sBACvB,uBAAuB,CAAC,OAAO,CAAC,YAC1C,MAAM,KACf,WA6BF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,sBAChB,uBAAuB,CAAC,OAAO,CAAC,YAC1C,MAAM,KACf,OAMF,CAAC"}
1
+ {"version":3,"file":"getEnumeration.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getEnumeration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,uBAAuB,EACxB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,EAC3C,oBAAoB,uBAAuB,CAAC,OAAO,CAAC,EACpD,UAAU,MAAM,KACf,WA6BF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,EACpC,oBAAoB,uBAAuB,CAAC,OAAO,CAAC,EACpD,UAAU,MAAM,KACf,OAMF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG1E,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,aAAa,OACtE,CAAC,WACG,CAAC,YACA,OAAO,EAAE,KAYP,oBAAoB,CAC9B,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
1
+ {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG1E,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,SAAS,aAAa,EAC3E,KAAK,CAAC,EACN,SAAS,CAAC,EACV,UAAU,OAAO,EAAE,KAYP,oBAAoB,CAC9B,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEjD,CAAC"}
@@ -1 +1 @@
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,OAElB,CAAC,WACG,CAAC,YACA,OAAO,EAAE,iBASpB,CAAC"}
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 +1 @@
1
- {"version":3,"file":"getNesting.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getNesting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAA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AC,EAAE,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,IAAI,EAAE,GACxD,CAAC,SAAS,MAAM,CAAC,GACf,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GACtB,KAAK,GACP,CAAC,SAAS,MAAM,CAAC,GACf,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC;AAER,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,cAAc,EACxB,CAAC,GAAG,SAAS,EACb,CAAC,GAAG,uBAAuB,IACzB,UAAU,CACZ,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EACvE,CAAC,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,CAAC,EACpD,eAAe,CAAC,EAChB,OAAO,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,EAChD,QAAQ,SAAS,KAChB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAqBvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type LocalesValues } from '@intlayer/config/client';
1
+ import type { LocalesValues } from '@intlayer/config/client';
2
2
  import type { LanguageContent } from '../transpiler/translation/types';
3
3
  /**
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"getTranslation.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,4BACnB,eAAe,CAAC,OAAO,CAAC,WAChC,aAAa,KACrB,OAYF,CAAC"}
1
+ {"version":3,"file":"getTranslation.d.ts","sourceRoot":"","sources":["../../../src/interpreter/getTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,MAAM,EAC7C,iBAAiB,eAAe,CAAC,OAAO,CAAC,EACzC,SAAS,aAAa,KACrB,OAYF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHTMLTextDir.d.ts","sourceRoot":"","sources":["../../../src/localization/getHTMLTextDir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEtE,KAAK,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAElC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,YAAa,aAAa,KAAG,GAsOvD,CAAC"}
1
+ {"version":3,"file":"getHTMLTextDir.d.ts","sourceRoot":"","sources":["../../../src/localization/getHTMLTextDir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEtE,KAAK,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAElC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,aAAa,KAAG,GAsOvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLocaleLang.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleLang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,YAAa,aAAa,KAAG,MAC1B,CAAC"}
1
+ {"version":3,"file":"getLocaleLang.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleLang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,aAAa,KAAG,MAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLocaleName.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA6PtE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,kBACT,aAAa,iBACb,aAAa,KAC3B,MAWF,CAAC"}
1
+ {"version":3,"file":"getLocaleName.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocaleName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA6PtE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,eAAe,aAAa,EAC5B,eAAe,aAAa,KAC3B,MAWF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type LocalesValues } from '@intlayer/config/client';
1
+ import type { LocalesValues } from '@intlayer/config/client';
2
2
  /**
3
3
  * Generate URL by prefixing the given URL with the referenced locale.
4
4
  * Handles both absolute and relative URLs appropriately.
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalizedUrl.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocalizedUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAS/E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,eAAe,QACrB,MAAM,iBACI,aAAa,YACnB,aAAa,EAAE,kBACT,aAAa,kBACb,OAAO,KACrB,MAYF,CAAC"}
1
+ {"version":3,"file":"getLocalizedUrl.d.ts","sourceRoot":"","sources":["../../../src/localization/getLocalizedUrl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,eAAe,GAC1B,KAAK,MAAM,EACX,eAAe,aAAa,EAC5B,UAAS,aAAa,EAA+C,EACrE,gBAAe,aACC,EAChB,gBAAe,OAAgD,KAC9D,MAYF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type LocalesValues } from '@intlayer/config/client';
1
+ import type { LocalesValues } from '@intlayer/config/client';
2
2
  import type { IConfigLocales } from 'intlayer';
3
3
  /**
4
4
  * Generates multilingual URLs by prefixing the given URL with each supported locale.
@@ -1 +1 @@
1
- {"version":3,"file":"getMultilingualUrls.d.ts","sourceRoot":"","sources":["../../../src/localization/getMultilingualUrls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAU/C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mBAAmB,QACzB,MAAM,YACF,aAAa,EAAE,kBACT,aAAa,kBACb,OAAO,KACrB,cAAc,CAAC,MAAM,CAwDvB,CAAC"}
1
+ {"version":3,"file":"getMultilingualUrls.d.ts","sourceRoot":"","sources":["../../../src/localization/getMultilingualUrls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,KAAK,MAAM,EACX,UAAS,aAAa,EAA+C,EACrE,gBAAe,aACC,EAChB,gBAAe,OAAgD,KAC9D,cAAc,CAAC,MAAM,CAwDvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPathWithoutLocale.d.ts","sourceRoot":"","sources":["../../../src/localization/getPathWithoutLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAMjC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,YACP,aAAa,EAAE,KACvB,MA6CF,CAAC"}
1
+ {"version":3,"file":"getPathWithoutLocale.d.ts","sourceRoot":"","sources":["../../../src/localization/getPathWithoutLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK3E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,EAChB,UAAS,aAAa,EACO,KAC5B,MA6CF,CAAC"}
@@ -2,6 +2,7 @@ export { getLocaleName } from './getLocaleName';
2
2
  export { getHTMLTextDir } from './getHTMLTextDir';
3
3
  export { getLocaleLang } from './getLocaleLang';
4
4
  export { localeList } from './localeList';
5
+ export { localeResolver } from './localeResolver';
5
6
  export { localeDetector } from './localeDetector';
6
7
  export { getPathWithoutLocale } from './getPathWithoutLocale';
7
8
  export { getMultilingualUrls } from './getMultilingualUrls';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { type Locales } from '@intlayer/config/client';
1
+ import { LocalesValues, type Locales } from '@intlayer/config/client';
2
2
  /**
3
3
  * Detects the locale from the request headers
4
4
  *
5
5
  * Headers are provided by the browser and can be used to determine the user's preferred language
6
6
  */
7
- export declare const localeDetector: (headers: Record<string, string | undefined>, locales?: Locales[], defaultLocale?: Locales) => Locales;
7
+ export declare const localeDetector: (headers: Record<string, string | undefined>, locales?: Locales[], defaultLocale?: Locales) => LocalesValues;
8
8
  //# sourceMappingURL=localeDetector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"localeDetector.d.ts","sourceRoot":"","sources":["../../../src/localization/localeDetector.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAMzE;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAChB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,YAClC,OAAO,EAAE,kBACH,OAAO,KACrB,OAUF,CAAC"}
1
+ {"version":3,"file":"localeDetector.d.ts","sourceRoot":"","sources":["../../../src/localization/localeDetector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAItE;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC3C,UAAU,OAAO,EAAE,EACnB,gBAAgB,OAAO,KACtB,aAIF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { LocalesValues } from '@intlayer/config/client';
2
+ /**
3
+ * Resolves the most specific locale from a user-provided list,
4
+ * or falls back to the default locale if no match is found.
5
+ */
6
+ export declare const localeResolver: (selectedLocale: LocalesValues | LocalesValues[], locales?: LocalesValues[], defaultLocale?: LocalesValues) => LocalesValues;
7
+ //# sourceMappingURL=localeResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localeResolver.d.ts","sourceRoot":"","sources":["../../../src/localization/localeResolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,gBAAgB,aAAa,GAAG,aAAa,EAAE,EAC/C,UAAS,aAAa,EAA+C,EACrE,gBAAe,aACC,KACf,aAqCF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/condition/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,sBAAsB,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,OAAO,EAAE,EAAE,OAAO,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAC9D,QAAQ,CAAC,SAAS,EAClB,sBAAsB,CAAC,OAAO,CAAC,CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,YAAY,sBAAsB,CAAC,OAAO,CAAC,wEACxB,CAAC;AAE9C,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/condition/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,sBAAsB,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,OAAO,EAAE,EAAE,OAAO,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAC9D,QAAQ,CAAC,SAAS,EAClB,sBAAsB,CAAC,OAAO,CAAC,CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,EAAE,UAAU,sBAAsB,CAAC,OAAO,CAAC,wEACxB,CAAC;AAE9C,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"enumeration.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/enumeration/enumeration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAE3B,KAAK,OAAO,GAAG,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;AACpC,KAAK,OAAO,GAAG,IAAI,MAAM,EAAE,CAAC;AAC5B,KAAK,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEjC,KAAK,KAAK,GAAG,OAAO,CAAC;AACrB,KAAK,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;AACjC,KAAK,QAAQ,GAAG,IAAI,OAAO,EAAE,CAA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I,OAAO,EAAE,CAAC;AAC9B,KAAK,eAAe,GAAG,KAAK,OAAO,EAAE,CAAC;AAEtC,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,WAAW,GACX,QAAQ,GACR,eAAe,GACf,QAAQ,GACR,eAAe,CAAC;AAEpB,MAAM,MAAM,uBAAuB,CAAC,OAAO,IAAI,OAAO,CACpD,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAC7B,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAChE,QAAQ,CAAC,WAAW,EACpB,uBAAuB,CAAC,OAAO,CAAC,CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,EAAE,UAAU,uBAAuB,CAAC,OAAO,CAAC,2EACzB,CAAC;AAEhD,OAAO,EAAE,WAAW,IAAI,GAAG,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/markdown/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG,cAAc,CAC1C,QAAQ,CAAC,QAAQ,EACjB,oBAAoB,CACrB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,QAAQ,YAAa,MAAM,KAAG,eACQ,CAAC;AAE7C,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC"}
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/markdown/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MA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AAO,GAAI,CAAC,SAAS,cAAc,EACvC,eAAe,CAAC,EAChB,OAAO,gBAAgB,CAAC,CAAC,CAAC,KACzB,aAAa,CAAC,CAAC,CAId,CAAC;AAEL,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,CAAC"}
@@ -20,6 +20,6 @@ import type { LanguageContent } from './types';
20
20
  * - this function require each locale to be defined if defined in the project configuration.
21
21
  * - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
22
22
  */
23
- declare const translation: <Content = unknown, ContentRecord extends LanguageContent<Content> = import("intlayer").IConfigLocales<Content>>(content: ContentRecord) => import("../..").TypedNodeModel<NodeType.Translation, ContentRecord>;
23
+ declare const translation: <Content = unknown, ContentRecord extends LanguageContent<Content> = LanguageContent<Content>>(content: ContentRecord) => import("../..").TypedNodeModel<NodeType.Translation, ContentRecord>;
24
24
  export { translation as t };
25
25
  //# sourceMappingURL=translation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,SAAS,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW,GACf,OAAO,YACP,aAAa,SAAS,eAAe,CAAC,OAAO,CAAC,wDAErC,aAAa,wEAKrB,CAAC;AAEJ,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../src/transpiler/translation/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,SAAS,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW,GACf,OAAO,GAAG,OAAO,EACjB,aAAa,SAAS,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,EAEzE,SAAS,aAAa,wEAKrB,CAAC;AAEJ,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../src/types/nodeType.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,QAAQ,EAAE,OAAO,IAAI;IACxD,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;CACtB,GAAG;KACD,CAAC,IAAI,CAAC,GAAG,OAAO;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,EAAE,OAAO,kBAC9C,CAAC,GAAG,GAAG,CAAC,EAAE,WACX,OAAO,KAKV,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../src/types/nodeType.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,QAAQ,EAAE,OAAO,IAAI;IACxD,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;CACtB,GAAG;KACD,CAAC,IAAI,CAAC,GAAG,OAAO;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,EAAE,OAAO,GAAG,GAAG,EAC9D,UAAU,CAAC,GAAG,GAAG,CAAC,EAAE,EACpB,SAAS,OAAO,KAKV,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkIsURLAbsolute.d.ts","sourceRoot":"","sources":["../../../src/utils/checkIsURLAbsolute.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAAG,OACV,CAAC"}
1
+ {"version":3,"file":"checkIsURLAbsolute.d.ts","sourceRoot":"","sources":["../../../src/utils/checkIsURLAbsolute.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,OACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isSameKeyPath.d.ts","sourceRoot":"","sources":["../../../src/utils/isSameKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,eAAO,MAAM,aAAa,aAAc,OAAO,EAAE,YAAY,OAAO,EAAE,YAOnE,CAAC"}
1
+ {"version":3,"file":"isSameKeyPath.d.ts","sourceRoot":"","sources":["../../../src/utils/isSameKeyPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,eAAO,MAAM,aAAa,GAAI,UAAU,OAAO,EAAE,EAAE,UAAU,OAAO,EAAE,YAOnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isValidReactElement.d.ts","sourceRoot":"","sources":["../../../src/utils/isValidReactElement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,WAAY,GAAG,KAAG,OAGP,CAAC"}
1
+ {"version":3,"file":"isValidReactElement.d.ts","sourceRoot":"","sources":["../../../src/utils/isValidReactElement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,KAAG,OAGP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "5.1.8",
3
+ "version": "5.2.0",
4
4
  "private": false,
5
5
  "description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
6
6
  "keywords": [
@@ -58,11 +58,10 @@
58
58
  "./package.json"
59
59
  ],
60
60
  "dependencies": {
61
- "@formatjs/intl-localematcher": "^0.5.10",
62
61
  "negotiator": "^1.0.0",
63
- "@intlayer/api": "5.1.8",
64
- "@intlayer/config": "5.1.8",
65
- "@intlayer/dictionaries-entry": "5.1.8"
62
+ "@intlayer/api": "5.2.0",
63
+ "@intlayer/dictionaries-entry": "5.2.0",
64
+ "@intlayer/config": "5.2.0"
66
65
  },
67
66
  "devDependencies": {
68
67
  "@types/negotiator": "^0.6.3",
@@ -81,10 +80,10 @@
81
80
  "@utils/tsup-config": "1.0.4"
82
81
  },
83
82
  "peerDependencies": {
84
- "@intlayer/api": "5.1.8",
85
- "@intlayer/config": "5.1.8",
86
- "@intlayer/dictionaries-entry": "5.1.8",
87
- "intlayer": "5.1.8"
83
+ "@intlayer/config": "5.2.0",
84
+ "@intlayer/dictionaries-entry": "5.2.0",
85
+ "intlayer": "5.2.0",
86
+ "@intlayer/api": "5.2.0"
88
87
  },
89
88
  "engines": {
90
89
  "node": ">=14.18"