responsible-ai-collaborative / aiid

The AI Incident Database seeks to identify, define, and catalog artificial intelligence incidents.
https://incidentdatabase.ai
Other
167 stars 35 forks source link

Spanish and French landing pages have placeholder translation text for recent reports #2701

Open lmcnulty opened 5 months ago

lmcnulty commented 5 months ago

Currently on prod.

image

This also happens on discover, but it's less visible since the untranslated reports are not visible in the default state:

image

kepae commented 5 months ago

We are currently dry running the translation logic since moving to github actions for deploying. Specifically, TRANSLATE_DRY_RUN defaults to true and is currently unset.

We will have to re-enable the translation, delete the placeholder translations, and re-run the translation.

Perhaps we can start by resuming translations, then drafting a migration that deletes report translations that contain exactly the placeholder text.

pdcp1 commented 4 months ago

@kepae @cesarvarela We still have reports with the translation placeholder translated- in Production. e.g: https://incidentdatabase.ai/ja/apps/discover/?is_incident_report=true&sortBy=submitted-date-desc

At the moment we have: πŸ‡―πŸ‡΅ 86 records in reports_ja πŸ‡ͺπŸ‡Έ 86 reports in reports_es πŸ‡«πŸ‡· 86 records in reports_fr πŸ‡ΊπŸ‡Έ 0 records in reports_en

We need to re-run the script since all records are from April 18, 2024, or later.

kepae commented 4 months ago

Agh. I had misconfigured an env variable. TRANSLATE_DRY_RUN=true was in production still. I just switched that to false.

I'll copy the migration script and invoke it in another PR. Thanks for catching this.

kepae commented 1 month ago

New reports are still not getting translated, despite having re-configured the dry run variables.

Let's re-address this when the build is proceeding normally again @cesarvarela.

kepae commented 1 month ago

Per today's build: https://github.com/responsible-ai-collaborative/aiid/actions/runs/9780941966/job/27003864330#step:8:127


Translating incident reports submitted after [2024-03-01]
Processing traslation of 214 incident reports
Translating incident reports for [en]
Translating incident reports for [es]
Translating incident reports for [fr]
Translating incident reports for [ja]
No new incident reports needed translation to [en]
No new incident reports needed translation to [ja]
No new incident reports needed translation to [es]
No new incident reports needed translation to [fr]