Skip to content

refactor: move screen text into strings.xml - #65

Merged
Tarquinen merged 11 commits into
devfrom
strings-xml-migration
Nov 14, 2026
Merged

Tarquinen merged 11 commits into
devfrom
strings-xml-migration

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Reviews ask for more languages, but almost all of the app's text was written as English literals in Kotlin, so there was nothing to translate.

Now the text written inside composables, plus notifications, Quick Settings tiles and launcher shortcuts, comes from each module's strings.xml (about 700 strings). The English wording is unchanged, so the app looks the same. Shared words like Cancel and Done live once in core as common_*.

  • Not moved yet: text built in reducers, enums, models and exceptions (error titles, status words, menu labels). That needs a way to carry a string ID through state and comes in a follow-up.
  • Not moved on purpose: developer screens, logs, model prompts and What's New entries.
  • The app still ships English only; localeFilters += "en" stays until there are translations.
  • Unit tests now include Android resources in every module, so Robolectric tests can read the strings.
  • AGENTS.md no longer says Android must match iOS, and gains a rule for where UI text goes.

Verification:

  • scripts/check.sh passes on the Android VM (assembleDebug, lintDebug, testDebugUnitTest).
  • A script compared every removed literal with the resource values; the only differences are counts that became plurals.
  • Not run on an emulator.

Android is no longer required to behave exactly like the iOS app. AGENTS.md and
docs/parity/README.md now describe iOS as a reference the app was ported from:
the "Behave exactly like iOS" rule, "behaviour, flows and copy still follow iOS"
and "a ported test that fails is a parity bug" are removed. The parity tables stay
as a map between the two codebases, with deliberate differences noted in the row.

Adds the rule for UI text: string resources per module, module-prefixed names,
shared common_* words in :core.

Docs only; nothing to build.
Screen text is moving out of Kotlin into strings.xml so the app can be translated.
core gets the common words other modules share (strings_common.xml) and its own
few composable strings. Unit tests now include Android resources so Robolectric
tests can read them.

Verified with the full check on the Android VM (assembleDebug, lintDebug,
testDebugUnitTest), run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
@Tarquinen
Tarquinen merged commit 5906716 into dev Nov 14, 2026
3 checks passed

This branch was previously deployed

1 inactive deployment
release — 369534e9 Deployed Nov 14, 2026 by Tarquinen via check #200
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