@dargmuesli/nuxt-vio 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,15 @@
4
4
  <!-- `NuxtLayout` can't have mulitple child nodes (https://github.com/nuxt/nuxt/issues/21759) -->
5
5
  <div>
6
6
  <NuxtPage />
7
- <CookieControl :locale="locale" />
7
+ <CookieControl :locale="locale as Locale" />
8
8
  </div>
9
9
  </NuxtLayout>
10
10
  </div>
11
11
  </template>
12
12
 
13
13
  <script setup lang="ts">
14
+ import { Locale } from '@dargmuesli/nuxt-cookie-control/dist/runtime/types'
15
+
14
16
  export interface Props {
15
17
  siteDescription: string
16
18
  ogImageAlt: string
package/i18n.config.ts ADDED
@@ -0,0 +1,6 @@
1
+ export const i18nConfig = {
2
+ fallbackWarn: false, // covered by linting
3
+ missingWarn: false, // covered by linting
4
+ }
5
+
6
+ export default defineI18nConfig(() => i18nConfig)
package/nuxt.config.ts CHANGED
@@ -41,6 +41,9 @@ export default defineNuxtConfig({
41
41
  runtimeConfig: {
42
42
  public: {
43
43
  googleAnalyticsId: '', // set via environment variable `NUXT_PUBLIC_GOOGLE_ANALYTICS_ID` only
44
+ i18n: {
45
+ baseUrl: BASE_URL,
46
+ },
44
47
  isInProduction: process.env.NODE_ENV === 'production',
45
48
  isTesting: false,
46
49
  },
@@ -102,7 +105,6 @@ export default defineNuxtConfig({
102
105
  logLevel: 'warning',
103
106
  },
104
107
  i18n: {
105
- baseUrl: BASE_URL,
106
108
  defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
107
109
  detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
108
110
  langDir: 'locales',
@@ -121,9 +123,6 @@ export default defineNuxtConfig({
121
123
  iso: 'de',
122
124
  },
123
125
  ],
124
- vueI18n: {
125
- fallbackWarn: false, // TODO: don't show incorrect warnings (https://github.com/intlify/vue-i18n-next/issues/776)
126
- },
127
126
  },
128
127
  linkChecker: {
129
128
  failOn404: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,6 +20,7 @@
20
20
  "utils",
21
21
  "app.config.ts",
22
22
  "error.vue",
23
+ "i18n.config.ts",
23
24
  "nuxt.config.ts",
24
25
  "tailwind.config.ts"
25
26
  ],
@@ -39,9 +40,10 @@
39
40
  },
40
41
  "dependencies": {
41
42
  "@dargmuesli/nuxt-cookie-control": "6.1.5",
43
+ "@dargmuesli/nuxt-vio": "link:.",
42
44
  "@http-util/status-i18n": "0.7.0",
43
45
  "@nuxtjs/html-validator": "1.5.2",
44
- "@nuxtjs/i18n": "8.0.0-beta.10",
46
+ "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge@8.0.0-beta.13-28175294.3a94c60",
45
47
  "@nuxtjs/tailwindcss": "6.8.0",
46
48
  "@tailwindcss/typography": "0.5.9",
47
49
  "nuxt-seo-kit-module": "2.0.0-beta.5",
@@ -54,7 +56,7 @@
54
56
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
55
57
  "@nuxtjs/eslint-config-typescript": "12.0.0",
56
58
  "eslint": "8.45.0",
57
- "eslint-config-prettier": "8.8.0",
59
+ "eslint-config-prettier": "8.9.0",
58
60
  "eslint-plugin-nuxt": "4.0.0",
59
61
  "eslint-plugin-prettier": "5.0.0",
60
62
  "eslint-plugin-yml": "1.8.0",