@nuxtjs/i18n-edge 10.4.0-29728007.8564ea1 → 10.4.0-29728115.04c3bbd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.0.0-rc.11",
6
6
  "bridge": false
7
7
  },
8
- "version": "10.4.0-29728007.8564ea1",
8
+ "version": "10.4.0-29728115.04c3bbd",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.2",
11
11
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1210,7 +1210,7 @@ const HeistPlugin = (options, ctx, nuxt = useNuxt()) => {
1210
1210
  }));
1211
1211
  };
1212
1212
 
1213
- const version = "10.4.0-29728007.8564ea1";
1213
+ const version = "10.4.0-29728115.04c3bbd";
1214
1214
 
1215
1215
  async function extendBundler(ctx, nuxt) {
1216
1216
  const pluginOptions = {
@@ -1,20 +1,12 @@
1
1
  import { useNuxtI18nContext, useResolvedLocale } from "../context.js";
2
2
  import { detectLocale, loadAndSetLocale, navigate } from "../utils.js";
3
- import { addRouteMiddleware, defineNuxtPlugin, defineNuxtRouteMiddleware, useNuxtApp, useRouter } from "#imports";
3
+ import { addRouteMiddleware, defineNuxtPlugin, defineNuxtRouteMiddleware, useNuxtApp } from "#imports";
4
4
  export default defineNuxtPlugin({
5
5
  name: "i18n:plugin:route-locale-detect",
6
6
  dependsOn: !__I18N_PRELOAD__ ? ["i18n:plugin"] : ["i18n:plugin", "i18n:plugin:preload"],
7
7
  async setup(_nuxt) {
8
8
  const nuxt = useNuxtApp(_nuxt._id);
9
9
  const ctx = useNuxtI18nContext(nuxt);
10
- if (__I18N_COMPACT_ROUTES__) {
11
- const router = useRouter();
12
- for (const route of router.getRoutes()) {
13
- if (route.meta?.__i18nCompact && route.meta.key == null) {
14
- route.meta.key = (r) => r.path;
15
- }
16
- }
17
- }
18
10
  const resolvedLocale = useResolvedLocale();
19
11
  await nuxt.runWithContext(
20
12
  () => loadAndSetLocale(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/i18n-edge",
3
3
  "type": "module",
4
- "version": "10.4.0-29728007.8564ea1",
4
+ "version": "10.4.0-29728115.04c3bbd",
5
5
  "description": "Internationalization for Nuxt",
6
6
  "contributors": [
7
7
  {