Normally when you build Openverse, you download the updated information about
locales and translation files to src/locales
folder. To prevent too many
requests during CI, we save the locale files that are necessary to run the app
during Playwright tests.
scripts/valid-locales.json
contains a list of valid locales with properties including their translation status (the percentage of strings that are translated).es.json
is thees
locale file used for search navigation tests (../playwright/e2e/search-navigation.spec.ts
).ru.json
is theru
locale file used for testing the translation banner because the current translated percentage is ~40%, which is below the banner threshold of 90%.ar.json
is the machine-translatedar
locale file used for RTL testing.