Skip to content

Portuguese everywhere, F*cking Health voice, postpartum research - #34

Merged
gabrielbr merged 6 commits into
mainfrom
ccr-67ccb970-dqwwqd
Oct 22, 2026
Merged

gabrielbr merged 6 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner
  • Portuguese, everywhere:
    • Template strings become trf("… {0} …", values). A sentence joined with + is one key.
    • Insight, notification and widget text now goes through tr().
    • Enum labels translate in getters.
    • Coach notifications follow the app language.
    • Catalog: 1,716 strings.
    • Text sent to the model, compared zone labels and annotations stay English.
  • F*cking Health: a new Settings → Language option.
    • AppLanguage is now a locale + a stack of catalogs + a Voice.
    • en-FH.json has 460 lines of attitude, with censored swearing, layered on plain English.
    • The picker warns before switching ("Bring it on").
    • The coach and its notifications get the persona, with a hard rule to drop it for serious topics.
    • FuckingHealthCatalogTest keeps safety text out of the catalog and checks that swearing is censored.
    • The Portuguese variant is one entry + one file (see AGENTS.md).
  • Research: docs/postpartum-breastfeeding-research.md.

Generated by Claude Code

…n text

Template strings become trf("… {0} …", values) so a translation can move
the value; plain literals in services, notifications and widgets go
through tr(); enum labels (cycle phases, readiness bands, drink types,
med states…) translate in a getter so a language change shows at once.
Coach notifications follow the app language too. Catalog entries follow.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
…arch

The meal-analysis prompt, its schema descriptions and a developer error
were re-wrapped by the second translation pass; they go to the model or
the log, not the screen.

docs/postpartum-breastfeeding-research.md: what ring-based apps can and
can't offer breastfeeding mothers, with sources and a prioritised list.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
Re-ran the conversion so a sentence split across '+' becomes one key with
its values as placeholders, instead of fragments translated separately.
Threshold zone labels stay English where they are compared; a const that
became translatable is a getter; the lint annotation is a constant again.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
Food-shaming lines were dropped on review (calorie targets, missed meals,
late meals), and the last fragment of the meal-analysis prompt is plain
English again.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit c02627a into main Oct 22, 2026
2 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.

2 participants