File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { defineNuxtConfig } from "nuxt/config"
2
2
3
3
import { isProd } from "./src/utils/node-env"
4
- // import locales from "./src/locales/scripts/valid-locales.json"
4
+ import locales from "./src/locales/scripts/valid-locales.json"
5
5
import { meta as commonMeta } from "./src/constants/meta"
6
6
7
7
import type { LocaleObject } from "@nuxtjs/i18n"
@@ -29,6 +29,8 @@ const favicons = [
29
29
} ,
30
30
]
31
31
32
+ const additionalLocales = locales && locales . length < 5 ? locales : [ ]
33
+
32
34
const openverseLocales = [
33
35
{
34
36
/* Nuxt i18n fields */
@@ -43,7 +45,7 @@ const openverseLocales = [
43
45
name : "English" ,
44
46
nativeName : "English" ,
45
47
} ,
46
- // ...(locales ?? []) ,
48
+ ...additionalLocales ,
47
49
] . filter ( ( l ) => Boolean ( l . iso ) ) as LocaleObject [ ]
48
50
49
51
const isProdNotPlaywright = isProd && ! ( process . env . PW === "true" )
You can’t perform that action at this time.
0 commit comments