Skip to content

Android: translate built-in leave and payslip names - #4

Merged
aminullah-dev merged 1 commit into
claude/worktrack-hrms-platform-tlar35from
claude/android-builtin-names
Sep 17, 2026
Merged

aminullah-dev merged 1 commit into
claude/worktrack-hrms-platform-tlar35from
claude/android-builtin-names

Conversation

@aminullah-dev

Copy link
Copy Markdown
Owner

Summary

  • Seeded leave types (ANNUAL, SICK) and payroll lines (BASIC, LOP, TAX) arrive from the server with Dari names, so the Android leave and payslip screens showed Dari in English and Pashto.
  • They are now shown in the chosen language, matching the iOS fix in iOS: keep session and English labels on language change (build 3) #3. A leave type the company renamed, and any company-defined pay component, keeps its own name.
  • Strings added for Dari, Pashto and English. The web portal does not render these names, so it needed no change.

Test plan

  • :feature:leave:testDebugUnitTest and :feature:payslips:testDebugUnitTest: pass, including 4 new tests
  • :app:compileDebugKotlin, and lint for both features
  • On a device: switch to English and check leave balances, a leave request, and a payslip

🤖 Generated with Claude Code

The server stores the seeded leave types and the payroll-written payslip
lines with Dari names, so English and Pashto screens showed Dari. They are
now translated by code, the same way the iOS app does it; names a company
typed stay as typed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@aminullah-dev
aminullah-dev merged commit 6fd3fb8 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