@dargmuesli/nuxt-vio 1.14.2 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
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)
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,14 @@ 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
- 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
- ],
110
+ detectBrowserLanguage: {
111
+ cookieSecure: true,
112
+ },
126
113
  },
127
114
  linkChecker: {
128
- failOn404: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
115
+ failOnError: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
129
116
  },
130
117
  seoKit: {
131
118
  splash: false,
@@ -135,6 +122,9 @@ export default defineNuxtConfig({
135
122
  name: SITE_NAME,
136
123
  url: BASE_URL,
137
124
  },
125
+ sitemap: {
126
+ exclude: ['/api/**'],
127
+ },
138
128
  tailwindcss: {
139
129
  cssPath: join(currentDir, './assets/css/tailwind.css'),
140
130
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "1.14.2",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,7 +8,7 @@
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",
@@ -41,13 +41,13 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@dargmuesli/nuxt-cookie-control": "6.1.5",
44
- "@dargmuesli/nuxt-vio": "link:.",
44
+ "@dargmuesli/nuxt-vio": "link:",
45
45
  "@http-util/status-i18n": "0.7.0",
46
46
  "@nuxtjs/html-validator": "1.5.2",
47
- "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge@8.0.0-beta.13-28175294.3a94c60",
47
+ "@nuxtjs/i18n": "8.0.0-rc.1",
48
48
  "@nuxtjs/tailwindcss": "6.8.0",
49
49
  "@tailwindcss/typography": "0.5.9",
50
- "nuxt-seo-kit-module": "2.0.0-beta.5",
50
+ "nuxt-seo-kit-module": "2.0.0-beta.9",
51
51
  "sweetalert2": "11.7.20",
52
52
  "vue-gtag": "2.0.1"
53
53
  },
@@ -56,7 +56,7 @@
56
56
  "@commitlint/config-conventional": "17.6.7",
57
57
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
58
58
  "@nuxtjs/eslint-config-typescript": "12.0.0",
59
- "eslint": "8.45.0",
59
+ "eslint": "8.46.0",
60
60
  "eslint-config-prettier": "8.9.0",
61
61
  "eslint-plugin-nuxt": "4.0.0",
62
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'