@dargmuesli/nuxt-vio 1.10.10 → 1.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/nuxt.config.ts +2 -0
- package/package.json +2 -2
- package/utils/constants.ts +2 -0
package/nuxt.config.ts
CHANGED
@@ -110,6 +110,8 @@ export default defineNuxtConfig({
|
|
110
110
|
i18n: {
|
111
111
|
defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
|
112
112
|
detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
|
113
|
+
langDir: 'locales',
|
114
|
+
lazy: true,
|
113
115
|
locales: LOCALES,
|
114
116
|
vueI18n: '~/i18n.config.ts',
|
115
117
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "1.10.
|
3
|
+
"version": "1.10.11",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"devDependencies": {
|
51
51
|
"@commitlint/cli": "17.6.5",
|
52
52
|
"@commitlint/config-conventional": "17.6.5",
|
53
|
-
"@intlify/eslint-plugin-vue-i18n": "
|
53
|
+
"@intlify/eslint-plugin-vue-i18n": "3.0.0-beta.1",
|
54
54
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
55
55
|
"eslint": "8.43.0",
|
56
56
|
"eslint-config-prettier": "8.8.0",
|
package/utils/constants.ts
CHANGED
@@ -4,11 +4,13 @@ export const CYPRESS_BASE_URL = 'http://localhost:3000'
|
|
4
4
|
export const LOCALES: LocaleObject[] = [
|
5
5
|
{
|
6
6
|
code: 'en',
|
7
|
+
file: 'en.json',
|
7
8
|
name: 'English',
|
8
9
|
iso: 'en', // Will be used as catchall locale by default.
|
9
10
|
},
|
10
11
|
{
|
11
12
|
code: 'de',
|
13
|
+
file: 'de.json',
|
12
14
|
name: 'Deutsch',
|
13
15
|
iso: 'de',
|
14
16
|
},
|