Skip to content

Localize settings search aliases for all locales - #3296

Merged
lawrencecchen merged 2 commits into
mainfrom
feat-settings-search-aliases-all-locales
Apr 29, 2026
Merged

lawrencecchen merged 2 commits into
mainfrom
feat-settings-search-aliases-all-locales

Conversation

@lawrencecchen

@lawrencecchen lawrencecchen commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to https://github.com/manaflow-ai/cmux/pull/3294.\n\nAdds settings search alias localizations for every locale currently present in the string catalog and Xcode project locale set, including ar, bs, da, de, es, fr, it, ko, nb, pl, pt-BR, ru, th, tr, uk, zh-Hans, and zh-Hant. English config/search tokens remain in each locale so users can search by settings.json keys too.\n\nVerification:\n- /Applications/Xcode.app/Contents/Developer/usr/bin/xcstringstool compile --dry-run --output-directory /tmp/cmux-searchalias-all-locales-xcstrings Resources/Localizable.xcstrings\n- alias key coverage script: 87 alias keys, 19 locales, 0 missing, 0 empty\n- git diff --check\n- xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -destination 'platform=macOS' -derivedDataPath /tmp/cmux-searchalias-all-locales-unit -only-testing:cmuxTests/SettingsSearchIndexTests test\n- ./scripts/reload.sh --tag aliasloc


Summary by cubic

Localized settings search aliases for all locales to improve settings search. English settings.json keys still work in every locale, and the "sign out" alias phrase is preserved.

  • New Features
    • Added alias entries for all current locales, including: ar, bs, da, de, es, fr, it, ko, nb, pl, pt-BR, ru, th, tr, uk, zh-Hans, zh-Hant.

Written for commit 3d9c054. Summary will update on new commits. Review in cubic

@vercel

vercel Bot commented Apr 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cmux Ready Ready Preview, Comment Apr 29, 2026 9:37am
cmux-staging Building Building Preview, Comment Apr 29, 2026 9:37am

@coderabbitai

coderabbitai Bot commented Apr 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (1)
  • Resources/Localizable.xcstrings
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d55c0f27-c34e-4c09-b7fc-81da731f95cb

📥 Commits

Reviewing files that changed from the base of the PR and between fc7d6c7 and 3d9c054.

📒 Files selected for processing (1)
  • Resources/Localizable.xcstrings

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat-settings-search-aliases-all-locales

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
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps

greptile-apps Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds search alias localizations for 17 new locales (ar, bs, da, de, es, fr, it, ko, nb, pl, pt-BR, ru, th, tr, uk, zh-Hans, zh-Hant) across all 87 settings alias keys, and also normalizes the existing en/ja indentation from 6-space to 4-space. The change is mechanically complete and consistent across all keys and locales with one minor exception noted below.

Confidence Score: 4/5

Safe to merge; the change is a pure localization addition with no logic changes and the one found issue is a minor search alias quality gap.

Only P2 findings: the "sign in out" vs "sign in sign out" inconsistency in all non-en/non-ja section.account aliases is a search quality edge case (the synonym "logout" still covers the intent), not a runtime error or data loss. All 1,653 new string entries carry state "translated" and all 87 keys × 19 locales are covered.

Resources/Localizable.xcstrings — specifically the settings.search.alias.section.account value for the 17 new locales

Important Files Changed

Filename Overview
Resources/Localizable.xcstrings Adds settings search alias localizations for 17 new locales across 87 keys; also reformats existing en/ja indentation from 6-space to 4-space. One inconsistency: section.account in all new locales writes "sign in out" instead of "sign in sign out", potentially dropping the standalone "sign out" phrase token present in the en/ja anchors.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User types search query] --> B[SettingsSearchAliasIndex]
    B --> C{Locale}
    C -->|en / ja| D["section.account alias:\n'…sign in sign out email…'"]
    C -->|ar, bs, da, de, es, fr,\nit, ko, nb, pl, pt-BR,\nru, th, tr, uk, zh-Hans, zh-Hant| E["section.account alias:\n'…sign in out email…'\n⚠️ 'sign out' phrase missing"]
    D --> F[Tokenize alias string]
    E --> F
    F --> G[Match against query tokens]
    G --> H[Return matching settings sections]
Loading

Reviews (1): Last reviewed commit: "Localize settings search aliases for all..." | Re-trigger Greptile

Comment thread Resources/Localizable.xcstrings
@lawrencecchen
lawrencecchen merged commit 31a27c3 into main Apr 29, 2026
22 of 23 checks passed
@lawrencecchen
lawrencecchen deleted the feat-settings-search-aliases-all-locales branch April 29, 2026 09:58

This branch was successfully deployed

1 active deployment
Preview – cmux — 3d9c054d Deployed Apr 29, 2026 by vercel[bot]
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.

1 participant