Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Remove untranslated locales from page generation and the locale chooser (#4224)
zack0ebbd18f0553
diff --git a/frontend/src/locales/scripts/get-validated-locales.js b/frontend/src/locales/scripts/get-validated-locales.jsindex 0707db2e1..6416b44e0 100644--- a/frontend/src/locales/scripts/get-validated-locales.js+++ b/frontend/src/locales/scripts/get-validated-locales.js@@ -56,7 +56,7 @@ try {getValidatedLocales().then((locales) => {console.log(`Found ${locales.translated.length} locales with translations.`)const fileName = "valid-locales.json"- const valid = [...locales.translated, ...locales.untranslated]+ const valid = locales.translatedfs.writeFileSync(process.cwd() + `/src/locales/scripts/` + fileName,JSON.stringify(valid, null, 2) + "\n"