@sit-onyx/nuxt 1.0.0-beta.138 → 1.0.0-beta.139

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
3
  "configKey": "onyx",
4
- "version": "1.0.0-beta.137",
4
+ "version": "1.0.0-beta.138",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "unknown"
@@ -1,5 +1,5 @@
1
1
  import { computed } from "#imports";
2
- import { defineNuxtPlugin, useNuxtApp } from "nuxt/app";
2
+ import { defineNuxtPlugin, useNuxtApp, useRouter } from "nuxt/app";
3
3
  import { createOnyx } from "sit-onyx";
4
4
  export default defineNuxtPlugin({
5
5
  name: "onyx:plugin",
@@ -7,6 +7,7 @@ export default defineNuxtPlugin({
7
7
  dependsOn: ["i18n:plugin"],
8
8
  setup: (app) => {
9
9
  const { t: translate, localeProperties } = useNuxtApp().$i18n;
10
+ const router = useRouter();
10
11
  const t = computed(() => {
11
12
  return (key, placeholders) => {
12
13
  return translate(`onyx.${key}`, placeholders?.n ?? 1, { named: placeholders });
@@ -19,7 +20,8 @@ export default defineNuxtPlugin({
19
20
  () => localeProperties.value.language ?? localeProperties.value.iso ?? "en-US"
20
21
  ),
21
22
  t
22
- }
23
+ },
24
+ router
23
25
  })
24
26
  );
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
- "version": "1.0.0-beta.138",
3
+ "version": "1.0.0-beta.139",
4
4
  "description": "A Nuxt module to easily integrate onyx into Nuxt projects",
5
5
  "author": "Schwarz IT KG",
6
6
  "license": "Apache-2.0",
@@ -37,10 +37,10 @@
37
37
  "nuxt": "^3.15.4",
38
38
  "typescript": "5.6.3",
39
39
  "vue-i18n": "^11.0.1",
40
- "sit-onyx": "^1.0.0-beta.137"
40
+ "sit-onyx": "^1.0.0-beta.138"
41
41
  },
42
42
  "peerDependencies": {
43
- "sit-onyx": "^1.0.0-beta.137"
43
+ "sit-onyx": "^1.0.0-beta.138"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "turbo run turbo:dev --filter=.",