Update the auto-translate prompt (#6430)

This commit is contained in:
Matt Rubens 2025-07-30 10:46:44 -04:00 committed by GitHub
parent d7c1c74fef
commit 14a116e1f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,11 @@ github_events:
- event: pull_request.opened
action:
name: general.task
prompt: "Check this pull request for any missing translations in the codebase. First, run the check-translations script using `node scripts/find-missing-translations.js` and carefully review its output for any missing translations. Then look for hardcoded strings that should be internationalized, but focus only on hardcoded strings that were added in this PR rather than existing strings. Verify that all UI text uses i18n functions, and ensure translation files are updated for all supported languages. If the script reports missing translations or you find other translation issues, use the translator mode to add them."
prompt: |
1. Run the script `node scripts/find-missing-translations.js` and carefully review its output for any missing translations.
2. If the script reports missing translations, switch into `translate` mode and add them in all supported languages.
3. If you've added new translations, commit and push them to the existing PR.
4. If you get a permission error trying to push to the PR just give up (i.e don't create a new PR instead).
- event: pull_request_review_comment.created
action:
name: github.pr.comment.respond