@juo/orion-extensions 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/extensions.js +14 -0
  2. package/package.json +3 -3
@@ -15422,11 +15422,25 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
15422
15422
  (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
15423
15423
  });
15424
15424
  };
15425
+ const SUPPORTED_LOCALES = [
15426
+ "cs",
15427
+ "de",
15428
+ "en",
15429
+ "es",
15430
+ "fr",
15431
+ "hu",
15432
+ "nl",
15433
+ "pl",
15434
+ "pt",
15435
+ "sk",
15436
+ "sl"
15437
+ ];
15425
15438
  function normalizeLocale(locale) {
15426
15439
  return locale.trim().toLowerCase().split("-")[0] || "en";
15427
15440
  }
15428
15441
  function blockLocales(blockType) {
15429
15442
  return {
15443
+ supported: [...SUPPORTED_LOCALES],
15430
15444
  load: async (locale) => {
15431
15445
  const normalized = normalizeLocale(locale);
15432
15446
  const loadFile = async (code) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../locales/cs.json": () => import("./cs-BQzvVuHG.js"), "../locales/de.json": () => import("./de-DpEGHUIF.js"), "../locales/en.json": () => Promise.resolve().then(() => en), "../locales/es.json": () => import("./es-CGvnSWq-.js"), "../locales/fr.json": () => import("./fr-T5fNCjqN.js"), "../locales/hu.json": () => import("./hu-D3qByi8e.js"), "../locales/nl.json": () => import("./nl-DJB46C_s.js"), "../locales/pl.json": () => import("./pl-DcpjzZM2.js"), "../locales/pt.json": () => import("./pt-BQsCkuGb.js"), "../locales/sk.json": () => import("./sk-DhCxfdxr.js"), "../locales/sl.json": () => import("./sl-DRmugIbe.js") }), `../locales/${code}.json`).then((module) => module.default ?? module).catch(() => ({}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juo/orion-extensions",
3
3
  "private": false,
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -43,8 +43,8 @@
43
43
  "tailwind-merge": "3.2.0",
44
44
  "tailwindcss": "3.3.5",
45
45
  "vue": "3.5.13",
46
- "@juo/orion-core": "0.19.0",
47
- "@juo/customer-ui": "0.4.0"
46
+ "@juo/customer-ui": "0.4.0",
47
+ "@juo/orion-core": "0.20.0"
48
48
  },
49
49
  "scripts": {
50
50
  "dev": "vite build -w",