@dargmuesli/nuxt-vio 1.14.0 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- package/components/VioApp.vue +3 -1
- package/i18n.config.ts +6 -0
- package/locales/de.json +3 -0
- package/locales/en.json +3 -0
- package/nuxt.config.ts +3 -4
- package/package.json +6 -3
package/components/VioApp.vue
CHANGED
@@ -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
package/locales/de.json
ADDED
package/locales/en.json
ADDED
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.
|
3
|
+
"version": "1.14.2",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -14,12 +14,14 @@
|
|
14
14
|
"components",
|
15
15
|
"composables",
|
16
16
|
"layouts",
|
17
|
+
"locales",
|
17
18
|
"server",
|
18
19
|
"pages",
|
19
20
|
"plugins",
|
20
21
|
"utils",
|
21
22
|
"app.config.ts",
|
22
23
|
"error.vue",
|
24
|
+
"i18n.config.ts",
|
23
25
|
"nuxt.config.ts",
|
24
26
|
"tailwind.config.ts"
|
25
27
|
],
|
@@ -39,9 +41,10 @@
|
|
39
41
|
},
|
40
42
|
"dependencies": {
|
41
43
|
"@dargmuesli/nuxt-cookie-control": "6.1.5",
|
44
|
+
"@dargmuesli/nuxt-vio": "link:.",
|
42
45
|
"@http-util/status-i18n": "0.7.0",
|
43
46
|
"@nuxtjs/html-validator": "1.5.2",
|
44
|
-
"@nuxtjs/i18n": "8.0.0-beta.
|
47
|
+
"@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge@8.0.0-beta.13-28175294.3a94c60",
|
45
48
|
"@nuxtjs/tailwindcss": "6.8.0",
|
46
49
|
"@tailwindcss/typography": "0.5.9",
|
47
50
|
"nuxt-seo-kit-module": "2.0.0-beta.5",
|
@@ -54,7 +57,7 @@
|
|
54
57
|
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
|
55
58
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
56
59
|
"eslint": "8.45.0",
|
57
|
-
"eslint-config-prettier": "8.
|
60
|
+
"eslint-config-prettier": "8.9.0",
|
58
61
|
"eslint-plugin-nuxt": "4.0.0",
|
59
62
|
"eslint-plugin-prettier": "5.0.0",
|
60
63
|
"eslint-plugin-yml": "1.8.0",
|