From f09f2b619933af5851c127d96b2cb36048857cfb Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 29 Jul 2025 23:57:18 +0000 Subject: [PATCH 1/3] feat: add translation check action to pull_request.opened event - Added general.task action to check for missing translations - Configured prompt to instruct checking for hardcoded strings - Prompt includes guidance to use translator mode for fixes --- .roo/roomotes.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.roo/roomotes.yml b/.roo/roomotes.yml index 33f6b3bd57c..db4b8cddc97 100644 --- a/.roo/roomotes.yml +++ b/.roo/roomotes.yml @@ -20,6 +20,10 @@ github_events: - event: pull_request.opened action: name: github.pr.review + - event: pull_request.opened + action: + name: general.task + prompt: "Check this pull request for any missing translations in the codebase. Look for hardcoded strings that should be internationalized, verify that all UI text uses i18n functions, and ensure translation files are updated for all supported languages. If you find missing translations, use the translator mode to add them." - event: pull_request_review_comment.created action: name: github.pr.comment.respond From ca678acd972a2846a4441458010777d372c6d439 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 30 Jul 2025 04:14:51 +0000 Subject: [PATCH 2/3] feat: update translation check prompt to include check-translations script --- .roo/roomotes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.roo/roomotes.yml b/.roo/roomotes.yml index db4b8cddc97..5b16e080fb6 100644 --- a/.roo/roomotes.yml +++ b/.roo/roomotes.yml @@ -23,7 +23,7 @@ github_events: - event: pull_request.opened action: name: general.task - prompt: "Check this pull request for any missing translations in the codebase. Look for hardcoded strings that should be internationalized, verify that all UI text uses i18n functions, and ensure translation files are updated for all supported languages. If you find missing translations, use the translator mode to add them." + 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, 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." - event: pull_request_review_comment.created action: name: github.pr.comment.respond From 7e3aec4b6279a20ca56ee04f2f111cc62ccba9fc Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 30 Jul 2025 04:33:11 +0000 Subject: [PATCH 3/3] feat: clarify translation check to focus only on PR additions - Updated roomotes.yml prompt to specify checking only hardcoded strings added in the PR - Addresses feedback to avoid flagging existing hardcoded strings - Maintains focus on new translation requirements for PR changes --- .roo/roomotes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.roo/roomotes.yml b/.roo/roomotes.yml index 5b16e080fb6..ecc4da61eec 100644 --- a/.roo/roomotes.yml +++ b/.roo/roomotes.yml @@ -23,7 +23,7 @@ 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, 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: "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." - event: pull_request_review_comment.created action: name: github.pr.comment.respond