Skip to content

feat(i18n): carry the medication-detail strings into zh-CN - #1676

Merged
1 commit merged into
MBombeck:release/v1.50.0from
Remedy233:feat/150-zh-cn-medication-detail
Nov 28, 2026
Merged

1 commit merged into
MBombeck:release/v1.50.0from
Remedy233:feat/150-zh-cn-medication-detail

Conversation

@Remedy233

Copy link
Copy Markdown

Why

release/v1.50.0 is red on the plural guard, and it was red before this series touched anything:

i18n-count-plural-guard > count strings agree with their number > zh-CN has a plural block
  medications.detail.settingsTab.intakeCount: count
  medications.detail.settingsTab.courseCount: count
  … 11 more

feat/150-medication-detail (#1628) landed after #1664 synced the bundle with the
release, so 52 English keys have no Chinese counterpart. A Chinese reader sees the new
medication detail screen — its intake log, plan section and efficacy sentence — in English.

What this does

Adds those 52 strings, inside medications.detail.*, medications.efficacy.*,
medications.leaflet.* and serverText.efficacyResult.*.

Two conventions hold:

  • Chinese has one plural form, so each ICU block carries other only. That is what the
    guard asks for: a block on the same parameter with an other branch.
  • No space before a measure word, the rule the typography change wrote down:
    {days}天, {count}次, {minutes}分钟, 近{days}天.

The vocabulary is the bundle's own: 用药 for medication, 疗程 for course, 已服 / 迟服 / 漏服 /
跳过 for the four dose states, 方案 for the plan, 服药记录 for the intake log.

Parity

Before After
keys in English 13070 13070
keys missing from zh-CN 52 0

32 keys remain in zh-CN that English no longer has — strays from the release renames, referenced
by no code. They are left alone here so this stays a catch-up rather than a clean-up; say the
word and I will remove them in the same PR.

Checks

The plural guard, and the rest of the i18n family with it: drift, reverse coverage, English leak,
typography and glyphs, title sentence case, dose vocabulary, glossary. 327 cases, green.

Stacked on nothing — this is release/v1.50.0 plus one commit, and it does not touch the
typography change (#1673).

Refs #1528, #1628.

eat/150-medication-detail (MBombeck#1628) landed on `release/v1.50.0` after the
bundle was synced, so 52 English keys have no Chinese counterpart. `release`
is red on the plural guard because of it:

    i18n-count-plural-guard > zh-CN has a plural block
    migrations.detail.settingsTab.intakeCount: count

These are those 52, inside `medications.detail.*`, `medications.efficacy.*`,
`medications.leaflet.*` and `serverText.efficacyResult.*` — the new
medication detail screen, its intake log, its plan section and the efficacy
sentence the server writes.

Chinese has one plural form, so each block carries `other` only, which is what
the guard asks for. The measure-word rule from the typography change holds here
too: `{days}天`, `{count}次`, `{minutes}分钟`, never a space.

The bundle is now key for key with English again: 0 missing. 32 keys remain in
zh-CN that English no longer has — they are strays from the release renames, not
references from code, and they are left alone here so this change stays a
catch-up rather than a clean-up.

Verified: the plural guard and the rest of the i18n family (drift, reverse
coverage, English leak, typography and glyphs, title case, dose vocabulary,
glossary) are green, 327 cases.
MBombeck added a commit that referenced this pull request Nov 28, 2026
Their wording wins for every key both sides added. On top: the two tile
comparison lines, the 32 retired keys removed, and the link expiry options
back in catalogue order.
@MBombeck

Copy link
Copy Markdown
Owner

Thanks, these read much better than what I had. #1676 on its own still misses the two dashboard.tileComparison keys that landed in parallel, so its unit shard stays red. I merged your branch into #1677, which adds those two, removes the 32 retired keys and keeps your wording for every key; your commit lands with your authorship when #1677 merges, and this PR then shows as merged.

@MBombeck MBombeck closed this pull request by merging all changes into MBombeck:release/v1.50.0 in 78218d6 Nov 28, 2026
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