waseefakhtar/dose-android

Extract Daily, Weekly, and Monthly enum values to strings.xml

Offen

#136 geöffnet am 22.12.2023

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (107 Forks)auto 404
good first issuelocalization

Repository-Metriken

Stars
 (635 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

https://github.com/waseefakhtar/dose-android/blob/10b015513497b069fdaf965cbb8d250e90d0c54d/app/src/main/java/com/waseefakhtar/doseapp/feature/addmedication/AddMedicationRoute.kt#L288

https://github.com/waseefakhtar/dose-android/blob/10b015513497b069fdaf965cbb8d250e90d0c54d/app/src/main/java/com/waseefakhtar/doseapp/feature/addmedication/AddMedicationRoute.kt#L268

Also for the Recurrence Dropdown, you're using its enum name instead of providing a translated text.
I fixed this problem in one of my apps by introducing an integer variable inside the enum which refers to the resource id of the string equal to the current enum value.

Contributor Guide