Clarify translatable copy for i18n rules - #774
Conversation
Made-with: Cursor
|
Warning This pull request changes a CodeRabbit configuration file. Because it comes from a fork or its author is not a repository collaborator, reviews use only the configuration from the target branch. The proposed configuration will take effect after it is merged. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. WalkthroughThe pull request updates ChangesInternationalization guidance
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This is a localized configuration clarification for translatable-copy rules, with no actionable merge-blocking risk remaining beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) Full details: No-Hardcoded-SecretsExplanation PASS — The pull request changes only Full details: No-Weak-CryptoExplanation PASS. The PR changes only Full details: No-Injection-VectorsExplanation PASS — The pull request changes only Full details: Container-PrivilegesExplanation PASS. The pull request changes only Full details: No-Sensitive-Data-In-LogsExplanation PASS. The pull request changes only Full details: Resource-LeaksExplanation PASS: The pull request changes only Full details: Unchecked-ErrorsExplanation PASS — The pull request changes only Full details: Generated-Files-Not-Hand-EditedExplanation PASS. The pull-request commit changes only Full details: I18n-ComplianceExplanation PASS. The pull request changes only ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Coderabbit produces false positives for several use cases of the "All user-visible strings must use t()" rule:
(<appName>), whereappNameis a variable. This is not a translatable string, but rather a construct that should be displayed as-is regardless of the locale.cloud-initcode snippet used by default in the form for creating new VM apps. This is not a translatable string.Summary
.coderabbit.yamli18n guidance and compliance checks."-"tokens, variable-based values such as(<appName>), and literal code or configuration snippets from translation findings.