Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Remove `prepare` script to prevent i18n overwrites inside Docker (#858)

Dhruv Bhanushalif8db4bcabef4
diff --git a/frontend/package.json b/frontend/package.json
index 395908096..b0c5f6551 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -4,7 +4,6 @@
"private": true,
"version": "2.2.1",
"scripts": {
- "prepare": "pnpm i18n:get-translations --en-only && cp -r test/locales/* src/locales",
"predev": "pnpm install && pnpm i18n:no-get",
"dev": "pnpm dev:only",
"dev:only": "nuxt --hostname 0.0.0.0",
@@ -43,7 +42,7 @@
"lint": "prettier --check .; eslint --ext .js,.vue,.ts --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 .",
"lint:fix": "prettier --write --loglevel=warn .; pnpm lint --fix",
"i18n": "pnpm i18n:create-locales-list && pnpm i18n:get-translations && pnpm i18n:update-locales",
- "i18n:watch-en": "pnpm i18n:get-translations --en-only --watch",
+ "i18n:en": "pnpm i18n:get-translations --en-only",
"i18n:copy-test-locales": "cp -r test/locales/* src/locales/",
"i18n:no-get": "pnpm i18n:create-locales-list && pnpm i18n:update-locales",
"i18n:create-locales-list": "node src/locales/scripts/create-wp-locale-list",
diff --git a/justfile b/justfile
index 37558ccd9..f268a9692 100644
--- a/justfile
+++ b/justfile
@@ -42,6 +42,8 @@ DC_USER := env_var_or_default("DC_USER", "opener")
# Installs Node.js dependencies for the entire monorepo.
node-install:
pnpm i
+ just frontend/run i18n:en
+ just frontend/run i18n:copy-test-locales
# Install all dependencies
install: node-install