Skip to content

chore(i18n): refresh native locales - #138372

Merged
steipete merged 11 commits into
mainfrom
automation/native-app-locale-refresh
Sep 5, 2026
Merged

steipete merged 11 commits into
mainfrom
automation/native-app-locale-refresh

Conversation

@openclaw-mantis

@openclaw-mantis openclaw-mantis Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Refreshes 21 native app languages from the completed full translation run, covering Android phone and Wear resources, iOS/watchOS usage descriptions, and iOS/macOS catalogs. Users receive updated copy and translations for the 47 strings added since the full run began.

Why This Change Was Made

The full run succeeded, but its publisher correctly deferred output after source inputs advanced. This candidate preserves the existing automation ancestry, reconciles only those 47 new strings per locale, and retains 94,108 translations for unchanged sources, including the reviewed CJK punctuation corrections. Fifty-six canonical values receive deliberate review corrections: one Traditional Chinese password-recovery instruction, five filter labels, eleven French duration templates, and 39 Wear action labels.

The password instruction restores the complete existing recovery message. French and Japanese Android “Held” labels restore their distinct existing translations because the control reverse-maps display labels and otherwise selects the wrong proposal state. Arabic, Italian, and Japanese Apple “Held” labels are also made distinct from “Pending”; the Apple picker already uses separate canonical tags, so this fixes visible ambiguity. Each correction updates the canonical native input and regenerates its platform resource. French duration templates restore their exact existing number/unit spacing after the unchanged Android test exposed 1min in place of 1 min; the related day/hour and relative-time templates retain all words, units and placeholders.

Wear “Hold” and “Type” labels restore the existing press-and-hold and text-entry meanings across all 21 locales. Both inventory keys belong only to Wear resources. The correction restores 39 canonical values and their generated XML bindings; three already-correct “Hold” values remain identical. Voice/text-entry callbacks and accessibility action wiring are unchanged.

Apple catalogs preserve completed translations during ordinary generation. The initial one-time refresh replaces only complete units exactly matching canonical output from the old native inputs. All 1,405 differing units remain untouched, including explicitly completed source-equal labels. The three subsequently corrected Apple labels are proven generated units, outside that preserved set. The generator preservation policy remains unchanged.

User Impact

Native catalogs cover 4,531 entries per locale. Derived resources contain 1,793 iOS keys, 1,579 macOS keys, 1,675 Android phone keys, 122 Wear keys, and four flavor-specific keys. Source-owned generation adds current keys and retires obsolete ones.

Evidence

  • Full native translation workflow: all 21 locales succeeded; canonical incremental reconciliation added 987 translations.
  • Full native, Android, and Apple parity checks passed with zero Apple translation conflicts. All 62 focused owner tests passed.
  • Real Foundation bundle lookups matched all 34,738 macOS values across 22 locale bundles, with all six new Dock-icon design labels distinct in each language. The final nine-string catch-up added 189 values while preserving all 94,962 prior native translations; its 11 new macOS keys also reuse existing Light/Dark translations without additional translation calls. An additional before/after Foundation check loaded 39,446 iOS catalog values from binary .strings resources across 22 bundles: the 110 selector labels reproduced exactly three collisions before the Apple correction and none afterward. This proves resource lookup, not Xcode catalog compilation or native-screen layout.
  • Complete Codex semantic review covered all 135 changed files through a lossless representation with independent inverse verification. Subsequent source catch-up and deliberate corrections received focused reviews and hash-preservation checks. The final Apple correction passed a fresh P2 review and preserved 131 other reviewed files, 94,959 other native values, and all 1,405 Apple overrides.
  • The two Android variants both reproduced the duration-spacing regression in the unchanged AppLanguageTest. The exact two-file repair restores 11 baseline templates and their generated resources, preserves 95,140 other native values and 133 other files, and passes before/after resource-formatting proof. Both unchanged Android test variants passed on the spacing-corrected and final commits.
  • The late Wear action-label findings are repaired at the canonical locale-input owner. A complete before/after comparison reproduces 39 mismatched action labels before and zero afterward, preserving 95,112 other native values and 93 other files. Adjacent Tap, Double tap, Dictate, Talk, Live and Thread labels were checked across all 21 locales without further changes. Hosted Wear unit/build/lint checks passed on the final commit.
  • The source-inventory, Apple-label and Wear findings in ClawSweeper’s review are addressed. The final source catch-up covers the nine Dock-icon strings added on main after the previous CI snapshot; the complete inventory now matches the integrated main source. The Android test expectation fix and the startup performance repair landed separately and are inherited here; this PR is generated-data-only. Final exact-head CI passed, including native parity, Android/Wear tests and builds, iOS/macOS builds and tests, iPhone/iPad/Watch screenshot evidence, and the final aggregate gate. The latest ClawSweeper review independently confirms both Wear corrections and preserved Apple overrides, with no actionable findings.
  • Complete current-main comparison covers all 135 generated files: their baseline blobs are unchanged between the integrated main and the final fetched main, and the 4,531-entry source inventory matches byte-for-byte. This closes the partial-clone comparison gap noted by ClawSweeper.
  • Compatibility: native artifact version 2, locale identifiers, metadata shapes, Apple unit states, and resource formats remain unchanged across all 135 files. There are no user configuration, default, database schema, or migration changes.

Localized native-screen review remains unavailable locally: the simulator requires host-wide initialization, and no Android emulator or device is available. Hosted English screenshot checks passed; they and the resource-loading checks above do not establish visual coverage of all translated languages. Local Swift linting was unavailable because the host lacks the SourceKit framework; hosted platform CI passed on the final commit.

Generated data: +61,510/-59,145 lines across 135 files. Runtime implementation and tests: +0/-0.

Follow-ups: enrich ambiguous native action strings with their resource/control context; reject resource identifiers in native translation output validation; use stable selection keys instead of translated labels in Android segmented controls; add permanent selector-label uniqueness coverage at the native control owners. This data rollout includes failing/passing resource-level selector proof; permanent test changes remain separate to preserve generated-artifact isolation. No translation prompt, engine, or selection API changes are included.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-mantis
openclaw-mantis Bot enabled auto-merge (squash) September 4, 2026 15:42
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 7:46 PM ET / 23:46 UTC.

ClawSweeper review

What this changes

Refreshes translations for 21 native-app languages and regenerates Android, Wear OS, iOS, watchOS, and macOS localization resources.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open as useful locale maintenance that is not yet on main. Both prior Wear findings are resolved, the source inventory matches pinned main, and no blocking correctness finding remains.

Priority: P3
Reviewed head: 9328f783958f83cb9a2199c8f5ce1f4813cf142d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused generated-data refresh with both prior Wear findings resolved, verified inventory alignment, preserved Apple overrides, and no remaining blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This bot-authored generated-resource refresh is exempt from the external-contributor proof gate and changes no authority boundary. The captured Foundation checks provide positive Apple resource-lookup evidence, not screen-layout proof; simulator/device infeasibility is explicitly documented.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored generated-resource refresh is exempt from the external-contributor proof gate and changes no authority boundary. The captured Foundation checks provide positive Apple resource-lookup evidence, not screen-layout proof; simulator/device infeasibility is explicitly documented.
Evidence reviewed 10 items Pinned introduction and generated-only scope: The complete local base-to-head comparison contains 135 generated localization files, including the generated Kotlin resource map. No runtime implementation, test, workflow, dependency, configuration, or permission declaration changes are introduced. The checkout matches the supplied original head; its raw recorded parent is the previously reviewed head.
Current-main comparison closes the inventory concern: Read-only Git-tree comparison found identical baseline blobs on pinned base and fetched main for all 135 introduced paths. The PR and fetched main also have the identical native-source inventory blob, containing 4,531 entries. Every one of the 21 locale artifacts contains exactly those identifiers, with zero missing or extra entries. This refresh remains distinct from main.
Both previous Wear findings are addressed: Independent JSON/XML inspection confirms that all 42 Hold/Type values across 21 locales match the pre-refresh baseline and their generated Wear resources. French now uses Maintenir/Saisir and Japanese uses 長押し/入力. The two canonical identifiers are scoped to Wear resources in the source inventory.
Findings None None.
Security None None.

How this fits together

The native localization pipeline turns source strings and canonical translations into Android resources and Apple catalogs. Native controls load these resources to display localized labels, instructions, and permission descriptions.

flowchart LR
  A[Native source strings] --> B[Source inventory]
  B --> C[Canonical locale translations]
  C --> D[Android resource generation]
  C --> E[Apple catalog generation]
  F[Reviewed Apple translations] --> E
  D --> G[Native app text]
  E --> G
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Executable versus generated growth Runtime implementation +0/-0; tests +0/-0; generated data net +2,365 lines The apparent code growth is localization data and generated bindings, not additional runtime logic.
Review correction coverage 42/42 Wear action values match baseline; 1,405 Apple overrides preserved Independent data comparisons substantiate the prior-finding repairs and preservation claim.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Use the existing native-localization pipeline with corrected canonical action labels, preserved Apple overrides, and no parallel runtime or translation-policy changes.

Do we have a high-confidence way to reproduce the issue?

Not applicable to the locale refresh itself. The prior Wear defects are no longer present in the inspected canonical values and generated resources; this review performed read-only comparisons, not a native-app reproduction.

Is this the best way to solve the issue?

Yes: correcting canonical translations and regenerating their platform resources addresses the wording defects at their owner. Changing runtime selection APIs or generator policy would unnecessarily broaden this data-only rollout.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 66fa0bd2be4f.

Labels

Label justifications:

  • P3: This is a generated native-language refresh with the previously identified action-label defects repaired and no remaining urgent runtime regression established.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored generated-resource refresh is exempt from the external-contributor proof gate and changes no authority boundary. The captured Foundation checks provide positive Apple resource-lookup evidence, not screen-layout proof; simulator/device infeasibility is explicitly documented.

Evidence

What I checked:

  • Pinned introduction and generated-only scope: The complete local base-to-head comparison contains 135 generated localization files, including the generated Kotlin resource map. No runtime implementation, test, workflow, dependency, configuration, or permission declaration changes are introduced. The checkout matches the supplied original head; its raw recorded parent is the previously reviewed head. (apps/android/app/src/main/java/ai/openclaw/app/i18n/NativeStringResources.kt:6, 9328f783958f)
  • Current-main comparison closes the inventory concern: Read-only Git-tree comparison found identical baseline blobs on pinned base and fetched main for all 135 introduced paths. The PR and fetched main also have the identical native-source inventory blob, containing 4,531 entries. Every one of the 21 locale artifacts contains exactly those identifiers, with zero missing or extra entries. This refresh remains distinct from main. (apps/.i18n/native-source.json:1, 66fa0bd2be4f)
  • Both previous Wear findings are addressed: Independent JSON/XML inspection confirms that all 42 Hold/Type values across 21 locales match the pre-refresh baseline and their generated Wear resources. French now uses Maintenir/Saisir and Japanese uses 長押し/入力. The two canonical identifiers are scoped to Wear resources in the source inventory. (apps/.i18n/native/fr.json:1202, 9328f783958f)
  • Wear labels match their actual controls: WearScreens displays Hold beside Dictate at line 822 and connects the orb's long-click to startDictate at line 865. The Type action invokes onType at lines 538–540 and 1108–1110. These unchanged consumers establish the gesture and text-entry meanings restored by the locale correction. (apps/android/wear/src/main/java/ai/openclaw/wear/WearScreens.kt:822, 9328f783958f)
  • Apple preservation and selector checks: The existing generator preserves completed translation units. Independent comparison against the baseline canonical translations confirms that all 1,405 completed overrides on retained source keys remain unchanged. Catalog metadata is unchanged, shared Apple formatting tokens show no drift, and the iOS Held/Pending labels are distinct in every catalog locale. (scripts/apple-app-i18n.ts:661, 9328f783958f)
  • Resource structure and existing regression coverage: Read-only parsing succeeded for all 80 changed XML files and found no formatting-token drift on shared string keys. Canonical artifact metadata remains unchanged. Existing tests cover Wear/flavor resource completeness and placeholders, Apple translation preservation, native placeholder rejection, and French duration spacing; no tests were executed during this review. (test/scripts/android-app-i18n.test.ts:49, 9328f783958f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-04T15:50:04.982Z sha ad6a5c3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-04T17:44:29.604Z sha 0f6bf65 :: blocked before merge. :: [P1] Regenerate locales from the current inventory
  • reviewed 2026-09-04T18:03:17.431Z sha 02fc2c6 :: blocked before merge. :: none
  • reviewed 2026-09-04T20:04:35.491Z sha 3f505d1 :: blocked before merge. :: [P2] Restore distinct Apple Held and Pending labels
  • reviewed 2026-09-04T22:08:37.404Z sha 7358022 :: blocked before merge. :: none
  • reviewed 2026-09-04T22:52:38.752Z sha 4b463d5 :: blocked before merge. :: [P2] [P2] Restore the press-and-hold meaning of the Wear gesture label | [P2] [P2] Translate the Wear text-entry action as a verb

@steipete
steipete disabled auto-merge September 4, 2026 16:19
Reconcile the completed full refresh across 21 native locales, preserve
differing Apple translation units, and restore the Traditional Chinese
Gateway password recovery message found during review.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@steipete steipete self-assigned this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: wearos App: wearos label Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

This PR now includes the completed full native locale refresh, reconciled against current source inputs while preserving the original automation commit. The body records the full data review, the corrected password-recovery message, preservation proofs, and validation scope.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
Translate the newly added dashboard reconnection instruction across all
21 native locales and regenerate its macOS catalog entry. Preserve every
previously reviewed native value and Apple catalog entry.
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

The native inventory finding is addressed. Follow-up Android validation found French and Japanese filter-label collisions; the existing distinct translations are restored, and the locale test now reads its connection-status expectation from an explicitly French packaged resource. The focused correction passed Codex review and local guards. Exact-head CI is running before landing.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 4, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 4, 2026
@steipete
steipete merged commit 84d8f5c into main Sep 5, 2026
146 of 149 checks passed
@steipete
steipete deleted the automation/native-app-locale-refresh branch September 5, 2026 00:02
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot added a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
* chore(i18n): refresh native locales

* chore(i18n): refresh native app translations

Reconcile the completed full refresh across 21 native locales, preserve
differing Apple translation units, and restore the Traditional Chinese
Gateway password recovery message found during review.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(i18n): catch up native dashboard recovery copy

Translate the newly added dashboard reconnection instruction across all
21 native locales and regenerate its macOS catalog entry. Preserve every
previously reviewed native value and Apple catalog entry.

* fix(i18n): keep native filter labels distinct

* fix(i18n): distinguish Apple proposal filter labels

* chore(i18n): catch up native icon picker translations

* fix(i18n): restore French duration spacing

* fix(i18n): preserve Wear gesture and text-entry labels

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: macos App: macos app: wearos App: wearos P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant