Repository navigation
Implement multilingual support and fix related issues - #42089
AInohogosya wants to merge 3 commits into
Conversation
Greptile SummaryThis PR adds Japanese and Chinese (Simplified/Traditional) localizations to the iOS and Android OpenClaw apps, alongside a comprehensive localization pass in
Confidence Score: 2/5
Last reviewed commit: 8aa883e |
| if lower.contains("unauthorized role") { | ||
| return "Connected, but some controls are restricted for nodes. This is expected." | ||
| return NSLocalizedString("settings.gateway.status.connected", comment: "Connected, but some controls are restricted for nodes. This is expected.") | ||
| } |
There was a problem hiding this comment.
Wrong localization key produces incorrect status message
The original code returned the full string "Connected, but some controls are restricted for nodes. This is expected." as an informational status message when the gateway reports an "unauthorized role". This replacement uses settings.gateway.status.connected, which maps to just "Connected" (or its translated equivalent).
This means users who hit the "unauthorized role" case will now see a generic "Connected" status rather than the original explanatory message, losing important context about why some controls are restricted.
A new, dedicated localization key should be added (e.g. settings.gateway.status.unauthorized_role) with the full original message text across all locale files, and then used here.
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/ios/Sources/Settings/SettingsTab.swift
Line: 898-900
Comment:
Wrong localization key produces incorrect status message
The original code returned the full string `"Connected, but some controls are restricted for nodes. This is expected."` as an informational status message when the gateway reports an `"unauthorized role"`. This replacement uses `settings.gateway.status.connected`, which maps to just `"Connected"` (or its translated equivalent).
This means users who hit the `"unauthorized role"` case will now see a generic `"Connected"` status rather than the original explanatory message, losing important context about why some controls are restricted.
A new, dedicated localization key should be added (e.g. `settings.gateway.status.unauthorized_role`) with the full original message text across all locale files, and then used here.
How can I resolve this? If you propose a fix, please make it concise.| HStack(spacing: 8) { | ||
| ProgressView() | ||
| .progressViewStyle(.circular) | ||
| Text("Connecting…") | ||
| Text(NSLocalizedString("settings.gateway.connecting", comment: "Connecting status")) | ||
| } |
There was a problem hiding this comment.
ProgressView spinner accidentally removed from "Connect last known" button
While replacing the hardcoded Text("Connecting…") with its localized equivalent in lastKnownButtonLabel, the ProgressView() and its .progressViewStyle(.circular) modifier were accidentally deleted. The connecting state for this button will now show only text and no spinner, unlike the other connect buttons in the view.
| HStack(spacing: 8) { | |
| ProgressView() | |
| .progressViewStyle(.circular) | |
| Text("Connecting…") | |
| Text(NSLocalizedString("settings.gateway.connecting", comment: "Connecting status")) | |
| } | |
| HStack(spacing: 8) { | |
| ProgressView() | |
| .progressViewStyle(.circular) | |
| Text(NSLocalizedString("settings.gateway.connecting", comment: "Connecting status")) | |
| } |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/ios/Sources/Settings/SettingsTab.swift
Line: 649-651
Comment:
`ProgressView` spinner accidentally removed from "Connect last known" button
While replacing the hardcoded `Text("Connecting…")` with its localized equivalent in `lastKnownButtonLabel`, the `ProgressView()` and its `.progressViewStyle(.circular)` modifier were accidentally deleted. The connecting state for this button will now show only text and no spinner, unlike the other connect buttons in the view.
```suggestion
HStack(spacing: 8) {
ProgressView()
.progressViewStyle(.circular)
Text(NSLocalizedString("settings.gateway.connecting", comment: "Connecting status"))
}
```
How can I resolve this? If you propose a fix, please make it concise.| CFBundleLocalizations: | ||
| - en | ||
| - ja | ||
| - zh-Hans |
There was a problem hiding this comment.
zh-Hant missing from CFBundleLocalizations
zh-Hant.lproj/Localizable.strings was added in this PR, but zh-Hant is not declared in the CFBundleLocalizations array. Without this declaration iOS may not correctly match Traditional Chinese system locales to the new strings file, causing Traditional Chinese users to fall back to the base English strings.
| CFBundleLocalizations: | |
| - en | |
| - ja | |
| - zh-Hans | |
| CFBundleLocalizations: | |
| - en | |
| - ja | |
| - zh-Hans | |
| - zh-Hant |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/ios/project.yml
Line: 111-114
Comment:
`zh-Hant` missing from `CFBundleLocalizations`
`zh-Hant.lproj/Localizable.strings` was added in this PR, but `zh-Hant` is not declared in the `CFBundleLocalizations` array. Without this declaration iOS may not correctly match Traditional Chinese system locales to the new strings file, causing Traditional Chinese users to fall back to the base English strings.
```suggestion
CFBundleLocalizations:
- en
- ja
- zh-Hans
- zh-Hant
```
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8aa883e3ea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if lower.contains("unauthorized role") { | ||
| return "Connected, but some controls are restricted for nodes. This is expected." | ||
| return NSLocalizedString("settings.gateway.status.connected", comment: "Connected, but some controls are restricted for nodes. This is expected.") |
There was a problem hiding this comment.
Keep unauthorized-role status explanatory
In friendlyGatewayMessage, the "unauthorized role" branch now returns the generic settings.gateway.status.connected string, which resolves to just “Connected” instead of the previous warning that node roles have restricted controls. When this backend response occurs, users are told everything is simply connected and lose the actionable explanation for missing controls, making troubleshooting and UX regressions likely.
Useful? React with 👍 / 👎.
| CFBundleLocalizations: | ||
| - en | ||
| - ja | ||
| - zh-Hans |
There was a problem hiding this comment.
Include zh-Hant in declared iOS localizations
This commit adds zh-Hant.lproj resources but the newly introduced CFBundleLocalizations list omits zh-Hant. With an explicit localization whitelist, leaving out Traditional Chinese can prevent the app from advertising/selecting that locale, so users with zh-Hant preferences may not get the translations that were added.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3fd0d7ed9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| ], | ||
| "apps/android/app/src/test/java/ai/openclaw/android/node/AppUpdateHandlerTest.kt": [ | ||
| ".git/FETCH_HEAD": [ |
There was a problem hiding this comment.
Remove local git metadata from committed secrets baseline
The baseline now includes .git/FETCH_HEAD, but that file is clone-local and changes on every fetch, so committing it makes .secrets.baseline non-deterministic across developers/CI runs and adds noisy churn unrelated to repository content. Keeping only tracked project files in the baseline avoids repeatedly re-diffing machine-specific secrets data and keeps detect-secrets updates reviewable.
Useful? React with 👍 / 👎.
|
Closing this as duplicate or superseded after Codex automated review. PR #42089 should close as superseded by the maintainer-owned canonical i18n/localization issue #3460. Current main has Control UI i18n for Japanese and Chinese, but the native iOS/Android localization requested by this PR is not implemented on main; the close is based on #3460's explicit maintainer policy that translation PRs are being consolidated/closed until the i18n architecture is ready. The PR branch also still has unresolved review findings and unrelated Best possible solution: Close this PR as superseded by #3460. Future native iOS/Android localization should wait for a maintainer-requested i18n path, then come back as a focused PR that avoids unrelated baseline changes, declares all iOS localizations, preserves existing status semantics/spinners, and includes native app coverage or clear manual verification. What I checked:
So I’m closing this here and keeping the remaining discussion on the canonical linked item. Codex Review notes: model gpt-5.5, reasoning high; reviewed against a57d681db9b2. |
PR Title: Multilingual Support for iOS and Android Apps
Summary
This PR adds comprehensive multilingual support to the OpenClaw iOS and Android applications, enabling users to experience the app in their preferred languages.
Changes Made
iOS Localization
Android Localization
Testing
Impact
This change makes OpenClaw accessible to users who prefer Chinese (Simplified/Traditional) and Japanese languages, significantly expanding the app's international reach.