Skip to content

Audit and correct translations in Capgo#1177

Merged
riderx merged 1 commit intomainfrom
cursor/audit-and-correct-translations-in-capgo-68c9
Aug 3, 2025
Merged

Audit and correct translations in Capgo#1177
riderx merged 1 commit intomainfrom
cursor/audit-and-correct-translations-in-capgo-68c9

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented Aug 3, 2025

Summary

This PR focuses on enhancing the platform's internationalization (i18n) by correcting existing translation typos and integrating the translation system for previously hardcoded strings. This improves the user experience for non-English speakers and increases codebase maintainability.

Key changes include:

  • Typo Corrections: Fixed common spelling errors in translation keys across all language files (e.g., "your-ussage" to "your-usage", "montly-active" to "monthly-active", "allow-develoment-bui" to "allow-development-bui").
  • Hardcoded Text Translation:
    • Translated hardcoded units ("Users", "GB") in Usage.vue and src/components/dashboard/Usage.vue.
    • Translated the "Password:" label and "Enter your password" placeholder in invitation.vue.
    • Extensively translated various UI elements, labels, placeholders, and select options within demo_dialog.vue.
  • New Translation Keys: Added all necessary new translation keys to the respective language files to support the newly translated strings.

Test plan

  1. Verify Typo Corrections:
    • Navigate to the "Usage" section in the dashboard and organization settings. Confirm "Your usage:" and "Monthly active" are correctly displayed.
    • Check any UI elements related to "development build" to ensure the spelling is correct.
  2. Verify Translated Units:
    • On the dashboard and organization "Usage" pages, confirm that "Users" and "GB" units are translated according to the selected language.
  3. Verify Invitation Page Translations:
    • Access the invitation page (e.g., by simulating an invitation flow). Confirm "Password:" label and "Enter your password" placeholder are translated.
  4. Verify Demo Dialog Translations:
    • Open the demo dialog. Verify all text elements, including input labels, placeholders, button text ("Read Value"), and select options ("Developer", "Designer", "Manager", "Select a role"), are translated.

Screenshots

Checklist

  • My code follows the code style of this project and passes bun run lint-backend && bun run lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • My change has adequate E2E test coverage.
  • I have tested my code manually, and I have provided steps how to reproduce my tests

Open in Cursor Open in Web

Learn more about Cursor Agents

Summary by CodeRabbit

  • New Features

    • Added new localization entries for password fields and unit labels across all supported languages.
    • Expanded demo page with additional localized placeholders, labels, and role descriptions.
  • Bug Fixes

    • Corrected typographical errors in multiple translation keys for all languages, improving consistency and accuracy.
    • Fixed misspelled translation keys for "monthly active" and "usage" throughout the interface.
  • Style

    • Updated UI components to use localized strings for input fields, labels, and units, enhancing internationalization support.

Co-authored-by: martin.donadieu <martin.donadieu@hey.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 3, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update standardizes and expands localization across multiple languages. It corrects typographical errors in translation keys, adds missing keys for password fields and unit labels, and ensures all user-facing strings in relevant Vue components utilize internationalization functions instead of hardcoded text. No logic or control flow changes are present.

Changes

Cohort / File(s) Change Summary
Localization: English
messages/en.json
Fixed typos in keys, added new keys for demo fields, password fields, units, and placeholders.
Localization: German
messages/de.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Spanish
messages/es.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: French
messages/fr.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Indonesian
messages/id.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Italian
messages/it.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Japanese
messages/ja.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Korean
messages/ko.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Polish
messages/pl.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Portuguese (BR)
messages/pt-br.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Russian
messages/ru.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Turkish
messages/tr.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Vietnamese
messages/vi.json
Corrected key typos, added password and unit keys, updated existing entries.
Localization: Chinese (Simplified)
messages/zh-cn.json
Corrected key typos, added password and unit keys, updated existing entries.
Dashboard Usage Card
src/components/dashboard/Usage.vue
Switched hardcoded unit labels and title key to use translation keys.
Demo Dialog Page
src/pages/demo_dialog.vue
Replaced all hardcoded UI text with translation function calls for full internationalization.
Invitation Page
src/pages/invitation.vue
Changed password label and placeholder to use translation keys instead of hardcoded English.
Organization Usage Page
src/pages/settings/organization/Usage.vue
Fixed typo in translation key for usage dialog header.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI_Component
    participant i18n_Library
    participant Localization_Files

    User->>UI_Component: Loads page/component
    UI_Component->>i18n_Library: Requests translation for key (e.g., "password-placeholder")
    i18n_Library->>Localization_Files: Fetches translation string for user's language
    Localization_Files-->>i18n_Library: Returns localized string
    i18n_Library-->>UI_Component: Provides localized string
    UI_Component-->>User: Displays UI with localized text
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

A bunny hopped through fields of code,
Fixing typos in every node.
Passwords, units, all translated—
Now every user’s celebrated!
No more “ussage” in the grass,
Just perfect language—what a class!
🐇🌍✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7c452f3 and 60a3414.

📒 Files selected for processing (18)
  • messages/de.json (5 hunks)
  • messages/en.json (8 hunks)
  • messages/es.json (5 hunks)
  • messages/fr.json (5 hunks)
  • messages/id.json (4 hunks)
  • messages/it.json (5 hunks)
  • messages/ja.json (4 hunks)
  • messages/ko.json (4 hunks)
  • messages/pl.json (4 hunks)
  • messages/pt-br.json (4 hunks)
  • messages/ru.json (4 hunks)
  • messages/tr.json (4 hunks)
  • messages/vi.json (4 hunks)
  • messages/zh-cn.json (4 hunks)
  • src/components/dashboard/Usage.vue (2 hunks)
  • src/pages/demo_dialog.vue (2 hunks)
  • src/pages/invitation.vue (1 hunks)
  • src/pages/settings/organization/Usage.vue (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/audit-and-correct-translations-in-capgo-68c9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@riderx riderx marked this pull request as ready for review August 3, 2025 15:13
@riderx riderx merged commit fe893b6 into main Aug 3, 2025
9 of 10 checks passed
@riderx riderx deleted the cursor/audit-and-correct-translations-in-capgo-68c9 branch August 3, 2025 15:14
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 3, 2025

🧹 Preview Environment Cleaned Up

The preview environment for this PR has been successfully removed from Cloudflare.

Deleted:

  • Frontend: capgo-preview-1177
  • API Worker: capgo-api-preview-1177
  • Files Worker: capgo-files-preview-1177
  • Plugin Worker: capgo-plugin-preview-1177

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants