-
-
Notifications
You must be signed in to change notification settings - Fork 994
fix local en craft_name #4609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix local en craft_name #4609
Conversation
WalkthroughA single localization string in locales/en/messages.json was updated: the OSD tooltip for aircraft name now references the CLI variable craft_name instead of aircraft_name. No logic, behavior, or control-flow changes were made. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 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 |
|
Preview URL: https://e4add45b.betaflight-configurator.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
locales/en/messages.json (2)
5767-5768
: HTML nit: use
(or
) instead of
.Minor consistency/validity fix.
Apply this diff:
- "message": "Aircraft name as set in the Configuration tab.</br>Can also be set via the \"craft_name\" CLI variable." + "message": "Aircraft name as set in the Configuration tab.<br/>Can also be set via the \"craft_name\" CLI variable."
5464-5465
: Optional: rename UI label to “Craft name” for consistency with setting name.Issue #4607 suggested aligning the label; this keeps wording uniform across UI and CLI references. English-only change; other locales come via Crowdin.
- "osdSetupCraftNameTitle": { - "message": "Aircraft Name" + "osdSetupCraftNameTitle": { + "message": "Craft name" }, @@ - "osdTextElementCraftName": { - "message": "Aircraft name", + "osdTextElementCraftName": { + "message": "Craft name", "description": "One of the elements of the OSD" },Also applies to: 5762-5765
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
locales/en/messages.json
(1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: haslinghuis
PR: betaflight/betaflight-configurator#4490
File: locales/en/messages.json:1534-1545
Timestamp: 2025-05-26T11:37:09.758Z
Learning: In the Betaflight Configurator repository, only English messages should be added directly to `locales/en/messages.json`; other language translations are handled via Crowdin automation and should not be manually updated in PRs.
Learnt from: haslinghuis
PR: betaflight/betaflight-configurator#4567
File: locales/en/messages.json:7724-7728
Timestamp: 2025-08-11T19:10:56.992Z
Learning: In the Betaflight Configurator project, only English language entries are added directly to locales/en/messages.json. Translations for other languages are handled through an outsourced process and should not be suggested as part of code reviews.
📚 Learning: 2025-05-26T11:37:09.758Z
Learnt from: haslinghuis
PR: betaflight/betaflight-configurator#4490
File: locales/en/messages.json:1534-1545
Timestamp: 2025-05-26T11:37:09.758Z
Learning: In the Betaflight Configurator repository, only English messages should be added directly to `locales/en/messages.json`; other language translations are handled via Crowdin automation and should not be manually updated in PRs.
Applied to files:
locales/en/messages.json
📚 Learning: 2025-08-11T19:10:56.992Z
Learnt from: haslinghuis
PR: betaflight/betaflight-configurator#4567
File: locales/en/messages.json:7724-7728
Timestamp: 2025-08-11T19:10:56.992Z
Learning: In the Betaflight Configurator project, only English language entries are added directly to locales/en/messages.json. Translations for other languages are handled through an outsourced process and should not be suggested as part of code reviews.
Applied to files:
locales/en/messages.json
🔇 Additional comments (1)
locales/en/messages.json (1)
5767-5768
: Correct CLI variable referenced (aircraft_name → craft_name).Matches existing usage elsewhere in this file (e.g., configurationCraftNameHelp, display_name, pilot_name), so this is consistent.
The linked issue text mentions “CRAFT_NAME”. Confirm we intend to show the literal CLI variable token (craft_name) rather than an uppercase label. If we must mirror the issue text verbatim, we can switch to CRAFT_NAME, but that would be inconsistent with other CLI mentions here.
resolves #4607
Summary by CodeRabbit
New Features
Bug Fixes
Documentation