Repository navigation
Conversation
All hardcoded English strings in the tab context menu are now routed through Bundle.module localizedString, with corresponding entries in en.lproj and ja.lproj Localizable.strings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthroughReplaced hard-coded tab context menu titles with localized key-based calls in TabItemView and added corresponding English, Japanese, Simplified Chinese, and Traditional Chinese localization entries. No public API changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryThis PR completes the localization of the tab context menu by replacing every hardcoded English string with
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["contextMenuContent (SwiftUI ViewBuilder)"] --> B["localizedContextButton(key, defaultValue, action)"]
B --> C["Bundle.module.localizedString(forKey: key, value: defaultValue, table: nil)"]
C -->|"key found in Localizable.strings"| D["Localized String\n(e.g. 'タブ名を変更…' / 'Rename Tab…')"]
C -->|"key missing"| E["defaultValue fallback\n(e.g. 'Rename Tab…')"]
D --> F["contextButton(resolvedTitle, action)"]
E --> F
F --> G{"shortcuts[action] set?"}
G -->|"yes"| H["Button(title).keyboardShortcut(shortcut)"]
G -->|"no"| I["Button(title)"]
Reviews (1): Last reviewed commit: "Localize tab context menu items with en/..." | Re-trigger Greptile |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Hi @anthhub 👋 Thanks for this PR! I'm currently working on Chinese (zh-Hans/zh-Hant) translations for the cmux project and noticed this has been open for a while with merge conflicts. Would you be able to resolve the conflicts so we can get this merged? The tab context menu is one of the last untranslated areas. Happy to help if needed! |
Summary
localizedContextButtoncalls that load translations fromBundle.moduleen.lproj/Localizable.stringsandja.lproj/Localizable.stringsTest plan
🤖 Generated with Claude Code
Summary by cubic
Localized the tab context menu and added English, Japanese, and Chinese (Simplified/Traditional) translations. Shortcuts and disabled states are unchanged.
localizedContextButtonviaBundle.module.en.lprojandja.lproj; addedzh-Hans.lprojandzh-Hant.lprojwith matching translations.Written for commit b70ba50. Summary will update on new commits.
Summary by CodeRabbit