@sit-onyx/nuxt 1.0.0 → 1.0.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.
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",
4
+ "version": "1.0.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -17,7 +17,10 @@ export default defineNuxtPlugin({
17
17
  return i18n.t(`onyx.${key}`, placeholders?.n ?? 1, { named: placeholders });
18
18
  };
19
19
  });
20
- const locale = computed(() => i18n.localeProperties.value.language ?? "en-US");
20
+ const locale = computed(
21
+ // since onyx uses BCP47 language codes, we prefer the language property here but fall back to the code if not specified
22
+ () => i18n.localeProperties.value.language ?? i18n.localeProperties.value.code ?? "en-US"
23
+ );
21
24
  return { t, locale };
22
25
  };
23
26
  app.vueApp.use(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Nuxt module to easily integrate onyx into Nuxt projects",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
@@ -28,19 +28,19 @@
28
28
  "dist"
29
29
  ],
30
30
  "devDependencies": {
31
- "@nuxt/devtools": "^2.6.3",
32
- "@nuxt/kit": "^4.1.1",
31
+ "@nuxt/devtools": "^2.6.5",
32
+ "@nuxt/kit": "^4.1.2",
33
33
  "@nuxt/module-builder": "^1.0.2",
34
- "@nuxt/schema": "^4.1.1",
34
+ "@nuxt/schema": "^4.1.2",
35
35
  "@nuxt/test-utils": "^3.19.2",
36
36
  "@nuxtjs/i18n": "^10.1.0",
37
- "nuxt": "4.0.3",
37
+ "nuxt": "4.1.2",
38
38
  "typescript": "5.9.2",
39
39
  "vue-i18n": "^11.1.12",
40
- "sit-onyx": "^1.0.0"
40
+ "sit-onyx": "^1.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "sit-onyx": "^1.0.0"
43
+ "sit-onyx": "^1.1.0"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "nuxi dev playground",