@sit-onyx/nuxt 1.0.0-alpha.37 → 1.0.0-alpha.39

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-alpha.36",
4
+ "version": "1.0.0-alpha.38",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.0",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -38,9 +38,11 @@ const module = defineNuxtModule({
38
38
  register({
39
39
  langDir: resolve("./runtime/locales"),
40
40
  locales: [
41
- { code: "de-DE", file: "de-DE.ts" },
42
- { code: "en-US", file: "en-US.ts" },
43
- { code: "ko-KR", file: "ko-KR.ts" }
41
+ // we need to use .js files instead of .ts because the .ts files would be compiled to .js in the build step, so
42
+ // when projects use this nuxt module, .ts files will throw a "can not find file" error
43
+ { code: "de-DE", file: "de-DE.js" },
44
+ { code: "en-US", file: "en-US.js" },
45
+ { code: "ko-KR", file: "ko-KR.js" }
44
46
  ]
45
47
  });
46
48
  };
@@ -1,5 +1,7 @@
1
+ // @ts-check
1
2
  import { defineI18nLocale } from "#i18n";
2
3
  import deDE from "sit-onyx/locales/de-DE.json";
4
+
3
5
  export default defineI18nLocale(() => {
4
6
  return { onyx: deDE };
5
7
  });
@@ -1,5 +1,7 @@
1
+ // @ts-check
1
2
  import { defineI18nLocale } from "#i18n";
2
3
  import enUS from "sit-onyx/locales/en-US.json";
4
+
3
5
  export default defineI18nLocale(() => {
4
6
  return { onyx: enUS };
5
7
  });
@@ -1,5 +1,7 @@
1
+ // @ts-check
1
2
  import { defineI18nLocale } from "#i18n";
2
3
  import koKR from "sit-onyx/locales/ko-KR.json";
4
+
3
5
  export default defineI18nLocale(() => {
4
6
  return { onyx: koKR };
5
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt",
3
- "version": "1.0.0-alpha.37",
3
+ "version": "1.0.0-alpha.39",
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",
@@ -38,7 +38,7 @@
38
38
  "vue-i18n": "^9.13.1"
39
39
  },
40
40
  "peerDependencies": {
41
- "sit-onyx": "^1.0.0-alpha.157"
41
+ "sit-onyx": "^1.0.0-alpha.158"
42
42
  },
43
43
  "scripts": {
44
44
  "dev": "nuxi dev playground",