@dargmuesli/nuxt-vio 1.14.1 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/i18n.config.ts +2 -5
- package/locales/de.json +3 -0
- package/locales/en.json +3 -0
- package/nuxt.config.ts +3 -18
- package/package.json +7 -6
- package/utils/constants.ts +22 -0
package/i18n.config.ts
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
|
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(() =>
|
3
|
+
export default defineI18nConfig(() => I18N_VUE_CONFIG)
|
package/locales/de.json
ADDED
package/locales/en.json
ADDED
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
|
-
|
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.
|
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.
|
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": "
|
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.
|
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.
|
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",
|
package/utils/constants.ts
CHANGED
@@ -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'
|