Skip to content

Commit e09d27c

Browse files
committed
feat: add translation workflow to issue-fixer mode (#5281)
1 parent c2992c1 commit e09d27c

File tree

2 files changed

+64
-9
lines changed

2 files changed

+64
-9
lines changed

.roo/rules-issue-fixer/1_Workflow.xml

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,63 @@
252252
- [ ] No linting errors
253253

254254
If any criteria fail, return to implementation step.
255-
</instructions>
256-
</step>
257-
258-
<step number="7">
259-
<name>Run Tests and Checks</name>
255+
</instructions>
256+
</step>
257+
258+
<step number="7">
259+
<name>Check for Translation Requirements</name>
260+
<instructions>
261+
After implementing changes, analyze if any translations are required:
262+
263+
Translation is needed if the implementation includes:
264+
1. New user-facing text strings in UI components
265+
2. New error messages or user notifications
266+
3. Updated documentation files that need localization
267+
4. New command descriptions or tooltips
268+
5. Changes to announcement files or release notes
269+
6. New configuration options with user-visible descriptions
270+
271+
Check for these patterns:
272+
- Hard-coded strings in React components (.tsx/.jsx files)
273+
- New entries needed in i18n JSON files
274+
- Updated markdown documentation files
275+
- New VSCode command contributions
276+
- Changes to user-facing configuration schemas
277+
278+
If translations are required:
279+
280+
<new_task>
281+
<mode>translate</mode>
282+
<message>Translation needed for issue #[issue-number] implementation.
283+
284+
The following changes require translation into all supported languages:
285+
286+
**Files with new/updated user-facing content:**
287+
- [List specific files and what content needs translation]
288+
- [Include context about where the strings appear]
289+
- [Note any special formatting or constraints]
290+
291+
**Translation scope:**
292+
- [Specify if it's new strings, updated strings, or both]
293+
- [List specific JSON keys that need attention]
294+
- [Note any markdown files that need localization]
295+
296+
**Context for translators:**
297+
- [Explain the feature/fix being implemented]
298+
- [Provide context about how the text is used]
299+
- [Note any technical terms or constraints]
300+
301+
Please ensure all translations maintain consistency with existing terminology and follow the project's localization guidelines.</message>
302+
</new_task>
303+
304+
Wait for the translation task to complete before proceeding to testing.
305+
306+
If no translations are required, continue to the next step.
307+
</instructions>
308+
</step>
309+
310+
<step number="8">
311+
<name>Run Tests and Checks</name>
260312
<instructions>
261313
Run comprehensive tests to ensure quality:
262314

@@ -289,7 +341,7 @@
289341
</instructions>
290342
</step>
291343

292-
<step number="8">
344+
<step number="9">
293345
<name>Prepare Summary</name>
294346
<instructions>
295347
Create a comprehensive summary of the implementation:
@@ -341,7 +393,7 @@
341393
</instructions>
342394
</step>
343395

344-
<step number="9">
396+
<step number="10">
345397
<name>Prepare for Pull Request</name>
346398
<instructions>
347399
If user wants to create a pull request, prepare everything needed:
@@ -429,7 +481,7 @@
429481
</instructions>
430482
</step>
431483

432-
<step number="10">
484+
<step number="11">
433485
<name>Create Pull Request</name>
434486
<instructions>
435487
Once user approves, create the pull request using GitHub MCP:
@@ -492,7 +544,7 @@
492544
</instructions>
493545
</step>
494546

495-
<step number="11">
547+
<step number="12">
496548
<name>Monitor PR Checks</name>
497549
<instructions>
498550
After the PR is created, monitor the CI/CD checks to ensure they pass:

.roo/rules-issue-fixer/2_best_practices.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
- Update documentation when needed
1313
- Add tests for any new functionality
1414
- Check for accessibility issues (for UI changes)
15+
- Delegate translation tasks to translate mode when implementing user-facing changes
16+
- Always check for hard-coded strings and internationalization needs
17+
- Wait for translation completion before proceeding to final testing
1518
</best_practices>

0 commit comments

Comments
 (0)