@dargmuesli/nuxt-vio 1.14.1 → 1.15.0

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/i18n.config.ts CHANGED
@@ -1,6 +1,3 @@
1
- export const i18nConfig = {
2
- fallbackWarn: false, // covered by linting
3
- missingWarn: false, // covered by linting
4
- }
1
+ import { I18N_VUE_CONFIG } from './utils/constants'
5
2
 
6
- export default defineI18nConfig(() => i18nConfig)
3
+ export default defineI18nConfig(() => I18N_VUE_CONFIG)
@@ -0,0 +1,3 @@
1
+ {
2
+ "globalLoading": "Lade..."
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "globalLoading": "Loading..."
3
+ }
package/nuxt.config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { dirname, join } from 'node:path'
2
2
  import { fileURLToPath } from 'node:url'
3
3
 
4
- import { SITE_NAME } from './utils/constants'
4
+ import { I18N_MODULE_CONFIG, SITE_NAME } from './utils/constants'
5
5
 
6
6
  const currentDir = dirname(fileURLToPath(import.meta.url))
7
7
 
@@ -105,27 +105,12 @@ export default defineNuxtConfig({
105
105
  logLevel: 'warning',
106
106
  },
107
107
  i18n: {
108
+ ...I18N_MODULE_CONFIG,
108
109
  defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
109
110
  detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
110
- langDir: 'locales',
111
- lazy: true,
112
- locales: [
113
- {
114
- code: 'en',
115
- file: 'en.json',
116
- name: 'English',
117
- iso: 'en', // Will be used as catchall locale by default.
118
- },
119
- {
120
- code: 'de',
121
- file: 'de.json',
122
- name: 'Deutsch',
123
- iso: 'de',
124
- },
125
- ],
126
111
  },
127
112
  linkChecker: {
128
- failOn404: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
113
+ failOnError: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
129
114
  },
130
115
  seoKit: {
131
116
  splash: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "1.14.1",
3
+ "version": "1.15.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,12 +8,13 @@
8
8
  "engines": {
9
9
  "node": "20"
10
10
  },
11
- "packageManager": "pnpm@8.6.10",
11
+ "packageManager": "pnpm@8.6.11",
12
12
  "files": [
13
13
  "assets",
14
14
  "components",
15
15
  "composables",
16
16
  "layouts",
17
+ "locales",
17
18
  "server",
18
19
  "pages",
19
20
  "plugins",
@@ -40,13 +41,13 @@
40
41
  },
41
42
  "dependencies": {
42
43
  "@dargmuesli/nuxt-cookie-control": "6.1.5",
43
- "@dargmuesli/nuxt-vio": "link:.",
44
+ "@dargmuesli/nuxt-vio": "link:",
44
45
  "@http-util/status-i18n": "0.7.0",
45
46
  "@nuxtjs/html-validator": "1.5.2",
46
- "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge@8.0.0-beta.13-28175294.3a94c60",
47
+ "@nuxtjs/i18n": "8.0.0-rc.1",
47
48
  "@nuxtjs/tailwindcss": "6.8.0",
48
49
  "@tailwindcss/typography": "0.5.9",
49
- "nuxt-seo-kit-module": "2.0.0-beta.5",
50
+ "nuxt-seo-kit-module": "2.0.0-beta.9",
50
51
  "sweetalert2": "11.7.20",
51
52
  "vue-gtag": "2.0.1"
52
53
  },
@@ -55,7 +56,7 @@
55
56
  "@commitlint/config-conventional": "17.6.7",
56
57
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
57
58
  "@nuxtjs/eslint-config-typescript": "12.0.0",
58
- "eslint": "8.45.0",
59
+ "eslint": "8.46.0",
59
60
  "eslint-config-prettier": "8.9.0",
60
61
  "eslint-plugin-nuxt": "4.0.0",
61
62
  "eslint-plugin-prettier": "5.0.0",
@@ -1 +1,23 @@
1
+ export const I18N_MODULE_CONFIG = {
2
+ langDir: 'locales',
3
+ lazy: true,
4
+ locales: [
5
+ {
6
+ code: 'en',
7
+ file: 'en.json',
8
+ name: 'English',
9
+ iso: 'en', // Will be used as catchall locale by default.
10
+ },
11
+ {
12
+ code: 'de',
13
+ file: 'de.json',
14
+ name: 'Deutsch',
15
+ iso: 'de',
16
+ },
17
+ ],
18
+ } // `langDir`, `lazy` and `locales` must be configured to extend a layer having lazy-loaded translations (https://v8.i18n.nuxtjs.org/guide/layers#locales)
19
+ export const I18N_VUE_CONFIG = {
20
+ fallbackWarn: false, // covered by linting
21
+ missingWarn: false, // covered by linting
22
+ }
1
23
  export const SITE_NAME = 'Vio'