Skip to content

Localize hardcoded UI strings#9

Merged
Xitee1 merged 1 commit into
mainfrom
fix/localize-hardcoded-strings
Apr 18, 2026
Merged

Localize hardcoded UI strings#9
Xitee1 merged 1 commit into
mainfrom
fix/localize-hardcoded-strings

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 18, 2026

Summary

  • Replace hardcoded English strings in TimeDisplay (minute/minutes/hour/hours/hr · min) with string resources — this is what actually rendered as MINUTES in the UI; the existing minutes_label resource was never referenced.
  • Localize +/- button contentDescriptions (previously hardcoded "Minus"/"Plus").
  • Convert AppTheme.label: String to @StringRes labelRes: Int and translate theme names (Midnight/Ocean/Ember/Light/Basic → Mitternacht/Ozean/Glut/Hell/Einfach).
  • Remove unused minutes_label entries from both app/ and feature/timer/ string resources.

Test plan

  • Launch app with system locale set to English — time unit under the dial reads MINUTES / HOURS / HR · MIN, theme cards read Midnight/Ocean/Ember/Light/Basic.
  • Launch with system locale set to German — time unit reads MINUTEN / STUNDEN / STD · MIN, theme cards read Mitternacht/Ozean/Glut/Hell/Einfach.
  • TalkBack reads localized labels for the +/- step buttons.

🤖 Generated with Claude Code

Replace hardcoded English strings in TimeDisplay (minute/minutes/hour/
hours/hr · min), ActionRow content descriptions, and theme labels with
string resources, and add German translations. Remove unused
minutes_label entries.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit b3d1078 into main Apr 18, 2026
1 check passed
@Xitee1 Xitee1 deleted the fix/localize-hardcoded-strings branch April 18, 2026 16:04
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