Skip to content

Commit f1935e3

Browse files
committed
Add the patch
Signed-off-by: Olga Bulat <[email protected]> Add locales if fewer than 5 (for testing) Signed-off-by: Olga Bulat <[email protected]>
1 parent cfcb1d4 commit f1935e3

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

frontend/justfile

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export FRONTEND_PNPM_VERSION := `grep 'packageManager' ../package.json | awk -F'
3535
# Build the frontend Docker image
3636
build-img tag="openverse-frontend:local" target="app":
3737
docker build \
38+
--load \
3839
--target {{ target }} \
3940
--build-context 'repo_root=..' \
4041
--build-arg FRONTEND_NODE_VERSION=$(just node-version) \

frontend/nuxt.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const favicons = [
2929
},
3030
]
3131

32+
const additionalLocales = locales && locales.length < 5 ? locales : []
33+
3234
const openverseLocales = [
3335
{
3436
/* Nuxt i18n fields */
@@ -43,7 +45,7 @@ const openverseLocales = [
4345
name: "English",
4446
nativeName: "English",
4547
},
46-
...(locales ?? []),
48+
...additionalLocales,
4749
].filter((l) => Boolean(l.iso)) as LocaleObject[]
4850

4951
const isProdNotPlaywright = isProd && !(process.env.PW === "true")

frontend/src/components/VHomepageContent.vue

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
>
66
{{ $t("hero.subtitle") }}
77
</h1>
8+
<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->
9+
<p class="sr-only">Testing Nuxt 3</p>
10+
<!-- eslint-enable -->
811

912
<p class="text-base leading-relaxed">
1013
{{ $t("hero.description") }}

0 commit comments

Comments
 (0)