fix: address PR feedback for slash commands tip

- Add TRANSLATION_TODO.md documenting missing translations for 11 languages
- Update test to expect 4 links instead of 3 (3 tips + 1 docs link)
- Document that slash commands documentation link is consistent with existing usage
This commit is contained in:
Roo Code 2025-08-01 00:12:13 +00:00
parent e8bdd83ffe
commit e63b5a6b14
2 changed files with 78 additions and 3 deletions

View file

@ -38,9 +38,9 @@ describe("RooTips Component", () => {
render(<RooTips />)
})
test("renders only the top two tips", () => {
// Ensure only two tips are present plus the docs link in the Trans component (3 total links)
expect(screen.getAllByRole("link")).toHaveLength(3)
test("renders all three tips", () => {
// Ensure three tips are present plus the docs link in the Trans component (4 total links)
expect(screen.getAllByRole("link")).toHaveLength(4)
})
})
})

View file

@ -0,0 +1,75 @@
# Translation TODO for Slash Commands Feature
The following languages need proper translations for the slash commands tip in the RooTips component:
## Languages needing translation
### Portuguese (pt-BR)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Portuguese translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Portuguese translation
### Korean (ko)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Korean translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Korean translation
### Hindi (hi)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Hindi translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Hindi translation
### Italian (it)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Italian translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Italian translation
### Dutch (nl)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Dutch translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Dutch translation
### Turkish (tr)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Turkish translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Turkish translation
### Indonesian (id)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Indonesian translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Indonesian translation
### Polish (pl)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Polish translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Polish translation
### Russian (ru)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Russian translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Russian translation
### Vietnamese (vi)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Vietnamese translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Vietnamese translation
### Chinese Traditional (zh-TW)
- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Chinese Traditional translation
- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Chinese Traditional translation
## Languages with proper translations
The following languages already have proper translations:
- Spanish (es): "Comandos de Barra"
- French (fr): "Commandes Slash"
- German (de): "Slash-Befehle"
- Japanese (ja): "スラッシュコマンド"
- Catalan (ca): "Ordres de Barra"
- Chinese Simplified (zh-CN): "斜杠命令"
## Notes
This is a known limitation that should be addressed in a follow-up PR to provide proper internationalization support for all languages.