Skip to content

iOS: keep session and English labels on language change (build 3) - #3

Merged
aminullah-dev merged 1 commit into
claude/worktrack-hrms-platform-tlar35from
claude/go-fix-3f657b
Sep 17, 2026
Merged

aminullah-dev merged 1 commit into
claude/worktrack-hrms-platform-tlar35from
claude/go-fix-3f657b

Conversation

@aminullah-dev

Copy link
Copy Markdown
Owner

Summary

  • Switching language rebuilt the root view and re-ran session restore, which could sign the worker out and also reset the open tab. AuthStore.start() now runs only while loading, and the selected tab lives in AppState.
  • Built-in leave types (ANNUAL, SICK) and payroll lines (BASIC, LOP, TAX) come from the server with Dari names, so English and Pashto screens showed Dari. They are now translated by code; names a company typed stay as typed.
  • Build number 2 → 3. This build was uploaded and resubmitted to App Review for 1.0.

Test plan

  • xcodebuild test: 108 tests pass, including 3 new name-translation tests
  • check-strings.py: all keys present in Dari, Pashto and English
  • On a physical iPhone with build 3: switching to English keeps the session; leave and payslip labels show in English

🤖 Generated with Claude Code

Switching language rebuilt the root view, which re-ran session restore and
could end a live session; it also reset the open tab. Built-in leave types and
payroll lines arrived with Dari names from the server and showed as Dari on
English and Pashto screens; they are now translated by code, while names a
company typed stay as typed. Build 3 for App Review.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@aminullah-dev
aminullah-dev merged commit 5ec09c8 into claude/worktrack-hrms-platform-tlar35 Sep 17, 2026
6 checks passed
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