Skip to content

feat(i18n): add Simplified Chinese (zh-CN) - #1664

Merged
MBombeck merged 18 commits into
MBombeck:release/v1.50.0from
Remedy233:feat/150-zh-cn-locale
Nov 28, 2026
Merged

MBombeck merged 18 commits into
MBombeck:release/v1.50.0from
Remedy233:feat/150-zh-cn-locale

Conversation

@Remedy233

Copy link
Copy Markdown

What this does

Adds a complete Simplified Chinese bundle — 13,019 keys, key-for-key with
en.json
— and wires zh-CN into the configuration.

The bundle

messages/zh-CN.json. Placeholders, ICU plural blocks and the escaped HTML in
the Telegram copy are preserved verbatim. Every {count, plural, …} uses the
single other branch that CLDR asks for in Chinese; nothing was invented.

Kept in English on purpose, and why: brand and product names (Withings, WHOOP,
Oura, Fitbit, Polar, Garmin, Strava, Nightscout, Apple Health, Google Health,
Health Connect, Telegram), unit and format strings (mmHg, mg/dL, kg/m²,
mL/(kg·min), VO₂ max), the sample address, and the URL/UUID placeholders.
A computed check with the leak guard's own algorithm found one multi-word
value that needed an explicit allowlist entry (settings.chatId is "Chat ID"
in Chinese Telegram clients too).

The wiring

Adding zh-CN to locales makes every Record<Locale, …> incomplete, which
is the type checker doing its job. Each of those maps decides something a
reader sees. Where Chinese content is real, it is Chinese:

  • outbound-screen/locales/zh-cn.ts — the safety bank, written for Chinese
    rather than translated. \b is an ASCII word boundary and a Han character is
    not \w, so every edge is spelled out. Chinese usually puts the change verb
    before its target (加到 2000 mg) and attaches the dosage counter to the
    digit with no space (2片), so both orders are covered. 36 patterns.
  • coach/population-norms/zh-cn.ts — population-norm framing (正常范围是,
    多数人, 普通人群, 指南推荐).
  • citation-coverage.ts — normative vocabulary (目标, 应当, 正常范围,
    高于, 低于).
  • parse-reference-range.ts — reference-range prose (至, 低于,
    不超过, 不低于, 参考范围).
  • coach/system-prompt.ts + prompts/insights-reply-footers.ts — zh-CN is not
    a NativeCoachLocale (it has no safety-contract matrix), so it takes the
    same English body plus reply footer as ko, nl, pt-BR and ru, with a footer
    asking for Simplified Chinese and 你.
  • support/redact.ts — cn and sg join HOST_TLDS, so a Chinese host in a
    support report is recognised as a host at all.

Where Chinese wording cannot be honest yet, it reuses English and says so in
the code
: questionnaire items (mental-health/wording/index.ts) stay English
until a native speaker has reviewed them clinically, which is what the in-app
mentalHealth.wording.* disclosure already tells the reader. The Chinese
readers of zh-TW and zh-HK deliberately keep reading English rather than
being handed a Simplified bundle with mainland terminology.

Tag routing

localeFromLanguageTag gains an alias table: zh, zh-Hans and zh-SG map to
this bundle, and NON_GENERIC_PRIMARY keeps the generic primary-subtag
fallback away from zh, so zh-TW and zh-HK do not silently land on it.

Machine-translated, and marked as such

zh-CN stays out of MAINTAINED_LOCALES, so the existing maintainership
banner shows on the auth shell. That is accurate: this bundle has not had a
native-speaker review
, which this project asks for before a translation is
treated as final. I am happy to work through review comments.

Checks

  • tsc --noEmit: 0 errors across the repo (45 files touched: 1 new bundle,
    10 source maps, 29 test fixtures, 2 host-TLD tables)
  • Ported the repo's own i18n guard algorithms and ran them over all 13,019
    strings: findings=0 for ellipsis, dot-separator, typography glyphs, key
    parity, and the plural guard
  • The Chinese safety bank against the guard's expectations: no dead pattern,
    no \b beside a Han character, all eight withhold shapes block, none of the
    three harmless shapes does
  • vitest could not run on this machine (its config collects files with
    fs.globSync, which returns backslash paths on Windows, so no file matches
    the include patterns). CI on Linux is the real gate for the test suite;
    the two harnesses above cover the assertions that matter for this bundle.

Depends on

Nothing. Optional follow-ups stack on top of it: the leak guard entry and the
chi_sim OCR pack.

Remedy233 and others added 17 commits November 28, 2026 10:32
Adds a complete `zh-CN` message bundle and wires the locale into the
configuration, formatter map and Telegram bare-word aliases.

- `messages/zh-CN.json`: all 13,019 keys, key-for-key with `en.json`.
  Placeholders, ICU plural blocks and escaped HTML in the Telegram copy are
  preserved verbatim; every `{count, plural, …}` uses the single `other`
  branch that CLDR asks for in Chinese.
- `locales`: `zh-CN` appended to the shipped list (`config.ts` and
  `project.inlang/settings.json`), so the language picker and the boot
  script pick it up without further edits.
- `localeLanguageNames["zh-CN"]` is the English name "Simplified Chinese"
  (model-facing directives have to be written in the prompt's own language);
  `localeLabels["zh-CN"]` is the endonym 简体中文 for the picker.
- `localeFromLanguageTag`: an explicit alias table maps `zh`, `zh-Hans` and
  `zh-SG` to this bundle, and `NON_GENERIC_PRIMARY` keeps the generic
  primary-subtag fallback away from `zh`, so `zh-TW` and `zh-HK` keep
  reading English rather than being handed a Simplified bundle with
  mainland terminology.
- `INTL_LOCALE_MAP["zh-CN"] = "zh-CN"` so numbers, dates and times render
  through the reader's own locale instead of falling back to `en-US`.
- Telegram bare words: 帮助 / 帮忙 / 求助 and 你好 / 您好 / 嗨.

The bundle is machine-translated, so `zh-CN` stays out of
`MAINTAINED_LOCALES` and the existing maintainership banner shows on the
auth shell until a native speaker has reviewed it.

Kept in English on purpose: brand and product names (Withings, WHOOP, Oura,
Fitbit, Polar, Garmin, Strava, Nightscout, Apple Health, Google Health,
Health Connect, Telegram), unit and format strings (`mmHg`, `mg/dL`,
`kg/m²`, `mL/(kg·min)`, `VO₂ max`), the sample address and the URL/UUID
placeholders. Questionnaire item wording stays English until a native
clinical review, which is what the existing `mentalHealth.wording.*`
strings already disclose in-app.
Adding `zh-CN` to `locales` makes every `Record<Locale, …>` incomplete, which
is the type checker doing its job: each of those maps decides something a
reader sees. This fills all of them, and every place where Chinese cannot be
filled in honestly yet reuses English on purpose.

Real Chinese content:

- `outbound-screen/locales/zh-cn.ts`: the safety bank, written for Chinese
  rather than translated. `\b` is an ASCII word boundary and a Han character
  is not `\w`, so every edge is spelled out; Chinese usually puts the change
  verb before its target ("加到 2000 mg") and attaches the dosage counter to
  the digit with no space ("2片"), so both orders are covered. 36 patterns:
  dose changes, seven risk shapes, nine causal connectives, a maintenance
  anchor and its change stem. Verified against the guard's own expectations —
  every pattern matches a real Chinese sentence, no pattern puts `\b` beside a
  Han character, all eight withhold shapes block and none of the three
  harmless shapes does.
- `coach/population-norms/zh-cn.ts`: the population-norm framing patterns
  ("正常范围是", "多数人", "普通人群", "指南推荐").
- `citation-coverage.ts`: the normative vocabulary a claim is checked for
  ("目标", "应当", "正常范围", "高于", "低于").
- `parse-reference-range.ts`: the reference-range prose Chinese lab sheets
  print ("至", "低于", "不超过", "不低于", "参考范围").
- `coach/system-prompt.ts` and `prompts/insights-reply-footers.ts`: zh-CN is
  not a `NativeCoachLocale` (no safety-contract matrix), so it takes the
  same English body plus reply footer that ko, nl, pt-BR and ru take, with a
  footer that asks for Simplified Chinese and 你.
- `support/redact.ts`: `cn` and `sg` join `HOST_TLDS`, so a Chinese host in a
  support report is recognised as a host at all.

Deliberately English until a native speaker has reviewed the wording:
`mental-health/wording/index.ts` (questionnaire items),
`ai/safety/outbound-screen.ts` is NOT one of them — its bank is Chinese — but
`medications/medicine-registry-default.ts` maps to an empty list because none
of the registries in that table covers mainland China.

Test fixtures gain `zh-CN` rows throughout: the safety tables (dose, risk,
causal, withhold shapes, named medications), the liveness sentence lists, the
language-name and prompt-body contract tables, the morning-copy blocklist, the
citations sentences, and the host-TLD regions.

`tsc --noEmit` reports no error.
The typography guard bans U+2192 outright: a menu path is written
`Settings > Account`, not with an arrow, because the arrow reads as a
transformation rather than a location. Nine occurrences slipped into the
calendar-subscription help and the next-day shortcut, which the guard catches
on CI and which this fixes here:

- `cycle.feed.help.google`, `.apple`, `.outlook`: `→` becomes `>`.
- `day.nextDayShortcut`: `Alt + →` becomes `Alt + 右方向键`, since there
  the arrow names a key rather than a path.

Verified with the guard's own algorithm over all 13,019 strings: no U+2192, no
`...`/`….`, no spaced middle dot or dash, no en dash outside a range, and
every English plural block carried over with an `other` branch.
`LOCALE_LANGUAGE` is the map that decides which traineddata a document scan
is read with, so adding the locale without an entry made the branch fail to
typecheck on its own. Chinese now points at `eng`: the reader falls back to
what every build carries, which is what a build without the Chinese pack did
before this branch existed.

The chi_sim pack and the one-line swap to it are a separate change, because
staging it adds a multi-megabyte traineddata to the image.
The unreleased section documents every user-visible addition, and a new
language is the most visible one there is. Both entries sit under
`[Unreleased]`: `Added` for the language, `Changed` for the OCR language
list that the existing entry already describes as "the account's own language".

Both say what the bundle is not: machine-translated and not yet reviewed, so it
stays out of the maintained set and the questionnaire item wording stays
English.
…hinese

Running the guard suite against the new bundle found eleven failures, and
eight of them were the bundle's fault rather than the guard's.

The bundle:

- One word per dose state. `medications.phaseGreen` said 待服 (the pending
  state) where the phase announces the due state, `phaseYellow` did not
  contain 到期 at all, and the three reminder titles used a fourth wording.
  Every missed state now reads 漏服 — `doctorReport.colMissed`, the Telegram
  help, the confirm button — instead of 漏服 and 遗漏 side by side, which is
  exactly the drift this guard was written for.
- A prohibition of the *omission* is not a hold. "不要漏服你的雷米普利" is the
  opposite advice to "今晚不要服用阿托伐他汀", and the negated shape now
  refuses to read 漏, 跳 or 忘 as its verb.
- The causal bank lists 因为, 由于, 因此, 于是 and 之所以 on their own, the way
  the English bank lists `because`.
- The population-norm bank accepts 健康成年人, not only 健康人.
- The false-positive corpus carries seventeen harmless replies rather than
  three: a question, a reading, a medication fact, a habit, a clinician
  deferral — the shapes a real reply takes.

Three rules were written for languages that put spaces between words, and a
Chinese sentence cannot satisfy them:

- `detectsNormativeClaim` required "not preceded by a letter" before a
  keyword. 应当 is always preceded by a Han character, so the whole Chinese
  keyword bank matched nothing. `NO_WORD_BOUNDARY_LOCALES` builds the
  alternation without that edge for Chinese, where a multi-character keyword
  is specific enough on its own.
- `i18n-dose-vocabulary` required the dose participle at the start of a word.
  Chinese has no word spaces, so the same set makes it match the stem anywhere.
- `targetLanguageName` is a second switch next to `localeLanguageNames` and
  returned "English" for zh-CN, which the assessment prompt then asked for.

Verified: 19 test files, 1843 cases, 0 failures; `tsc --noEmit` clean. The
local vitest config that made this runnable on Windows is not committed.
Landing the bundle made four guards discover work they could not see before.

The glossary (`src/lib/i18n/glossary.json`) is the project's one source of
terminology: 177 concepts, each with anchors into the bundle, and the guard
holds the two together. The Chinese column is **derived from the bundle**
rather than transcribed — for every concept the anchor key's zh-CN value *is*
the term, so the glossary and the bundle cannot drift by construction. The
seven concepts that carry only `contains` anchors needed a word chosen by
hand (剂量, 服药, 症状, 监护人, 分享链接, 数据来源, 体检提醒), and the short
forms come from each concept's short key, dropped entirely where the short form
is the same word as the name.

That surfaced two real inconsistencies in the bundle, both fixed here:

- `nav.seizures` said 发作日记 while the page title and the module label said
  癫痫日记.
- Three event metrics kept the notification word in their full name and lost it
  in the short form (高心率通知 / 高心率). Now 高心率事件通知 / 高心率提醒, the
  same shape English uses ("High heart rate notification" / "High heart rate
  alert"), and 高血压/低心率 likewise.

`normaliseLabKey` kept `[a-z0-9]` plus Cyrillic and Hangul, so every Chinese
analyte name folded to the empty string and no LOINC code resolved for a
zh-CN account — the same failure the comment there already records for Korean.
Han ideographs join the kept ranges, and `resolveLabCoding('总胆固醇')` now
answers 2093-3 like every other locale's name does.

Test fixtures gain their zh-CN rows: the two screen tests (a dose change and a
causal claim to withhold, one clean sentence to pass through), the ten-locale
lists become eleven, the surface-registry guard imports the new bundle, and the
source-size baseline records `insight-generator.ts` at 1116 lines.

Verified with the real suite: glossary 114/114, the two screen tests 64/64,
lab-loinc 39/39, source-size-ratchet 7/7.
The language-list guard asserts that every app locale reads with deu + eng +
its own pack. zh-CN is the one locale whose pack the image does not carry on
this branch: it maps to `eng` so the bundle can land on its own, which leaves
it reading with two languages.

This records that exception by name and says where it goes back to three, so
the OCR change that stages `chi_sim` has one line to flip.
Four guards pinned the shipped-locale count at ten, and the AUDIT-C instrument
carries a standard-drink sentence per language: adding zh-CN made five tests
discover gaps the branch had not filled.

- clinician-view-locales, context-vocabulary, irst-result-config: ten
  becomes eleven, and the clinician-view case names the count once instead of
  asserting it twice.
- AUDIT_C_STANDARD_DRINK gains the Chinese sentence. It states the WHO
  definition the other languages state — 10 g of pure alcohol, with the beer,
  wine and spirits equivalents — because that sentence is what the drinker
  counts their drinks against.

Verified: those five files 94/94, and the 76 test files that iterate locales
run 4,259 cases with only the two Windows-only pre-existing failures left
(manage-activity-inventory, dashboard-hrv-rmssd-fallback, both failing on
the baseline branch as well).
Bring the bundle level with release: drop the 50 retired keys, word the
81 new ones and re-word the 17 whose English changed. The glossary takes
release's score short forms and gains their Chinese short names.
…ice accepts

The signing service refuses a manifest with an .lproj it does not list, for every account. With zh-CN in the app's locales every pass carried zh-CN.lproj and every signing failed. The pass now carries the languages the manifest rules list; a Chinese reader sees the pass in English until the service accepts the language.
The generator kept its own list of locales and wrote no zh-CN catalog, so the layout loaded a file that did not exist. It now reads the locales from the inlang project, which a test already holds equal to the config, and so does the key tool. A test runs the generator and checks every locale's file.
The report fonts covered Latin and Hangul, so a Chinese report drew every string as a box. ReportSansSC adds the GB2312 characters, CJK punctuation and the fullwidth forms from Noto Sans SC, and is loaded only for a Chinese report or Han text in the data. A test checks that every doctorReport string of every locale has a glyph in the font that locale's report is drawn in.
Every language but English and Russian was read with a decimal comma, so 5.4 in a Chinese reply became 54 and a correct figure was flagged as invented.
…slation template

Regenerate the OpenAPI document for the new locale value, give the date picker its Chinese month and weekday names, offer zh-CN in the translation issue form, and describe the PDF font and the Wallet fallback in the changelog.
@MBombeck

Copy link
Copy Markdown
Owner

Thank you, @Remedy233. This is careful work. The safety bank written for Chinese word order, the alias table that keeps zh-TW and zh-HK away from a Simplified bundle, and the questionnaires pointing at English on purpose are exactly the calls I would have asked for.

The branch had fallen 200 commits behind release/v1.50.0, so I merged release into it myself instead of sending it back to you, and fixed what turned up along the way. Here is what I pushed, so nothing on your branch surprises you:

  • Merge. CHANGELOG.md kept both sides. In glossary.json I took release's version and put your zh-CN terms back on every concept, plus Chinese short forms for the six scores that gained one (健康, 准备度, 睡眠评分, 恢复, 压力, 负荷). The bundle is key for key with English again: release retired 50 keys, added 81 and reworded 17. Those 98 strings are my Chinese, not yours, so please read them when you have a moment (git diff 17554aca3 -- messages/zh-CN.json).
  • Wallet passes. Every pass carried a zh-CN.lproj, and the signing service refuses a file it doesn't list, so passes would have failed for every account, not only Chinese ones. A pass now carries only the languages the service accepts. A Chinese reader sees the pass in English until the service learns the language; that part is on me.
  • Boot catalog. scripts/generate-i18n-boot.mjs kept its own list of languages and wrote no zh-CN.js, so the page asked for a file that wasn't there. It reads the list from project.inlang/settings.json now, with a test.
  • PDF font. The doctor report and the emergency card PDF had no Han glyphs and drew boxes. ReportSansSC (GB2312 plus CJK punctuation and the fullwidth forms, from Noto Sans SC) loads only for a Chinese report or Han text in the data, the same way the Korean font works. A test checks that every report string of every language has a glyph.
  • Coach numbers. The number check read every language except English and Russian with a decimal comma, so 5.4 in a Chinese reply became 54 and a correct figure was flagged as made up.
  • Small things. The regenerated OpenAPI document, Chinese month names in the date picker, zh-CN in the translation issue form, a duplicate 不超过, 如果……那么 with the full ellipsis, Prettier on the touched files and one unused constant in the safety bank.
  • I took out the changelog line about documents being read in Chinese. The PR keeps zh-CN on the English OCR pack, as your own comment in server-ocr.ts says, so it goes back in with the chi_sim PR.

One thing from #1528 is still open, and it's yours if you'd like it: the typography guard. I asked for the list in the description and it isn't there yet. The rule that matters most is no space between a number and its measure word. Right now about a thousand values write {count} 条 or 3 天. A small zh-CN-only guard next to src/__tests__/i18n-typography-glyphs.test.ts (……, 、 in lists, no space before a measure word, 「」 and 『』 exempt), plus the pass over the bundle that makes it green, would settle it. Put the list in that PR's description and I'll agree to it there. If it's in by Wednesday evening it ships with the rest on Saturday. If not, it goes into January and nothing else waits for it.

The full-width fold (#1655) is still open on its own and doesn't block this one.

I'll merge this once the checks are green. Thanks again.

Read the bundles through an import instead of the file system, check the boot catalogs by size, and fold the decimal-point rule into one set so the grounding file stays at its baseline.
@Remedy233

Copy link
Copy Markdown
Author

Thank you — both for the merge and for reading the bundle closely enough to fix what the release had moved underneath it.

Your Chinese: I read all 98. The short forms for the six scores (健康, 准备度, 睡眠评分, 恢复, 压力, 负荷), 测量(CSV)/ 用药(CSV)/ 心情(CSV), JSON 文件, Health Connect, Gadgetbridge, 医生报告 and the 如果……那么 full ellipsis are all better than what I had — the fullwidth parens restore the concept word the CSV cards were missing, and …… is the correct mark where I wrote …. Two that I would change back, and one where I want to check my reading of the intent:

  1. emergencyCard.link.disclosure now reads 任何扫码的人无需登录即可看到你勾选的项目。 and stops there. Mine said 你可以为链接设定到期时间并随时撤销;每次打开都会为你记录。 That second sentence is a privacy disclosure about the person's own controls — that the link can be set to expire, revoked at any time, and that each open is logged for them. Dropping it leaves a reader told what others can see but not what they can do about it. If the reason is length, I would rather split the key than lose it.

  2. settings.identity.insuranceNumber now reads 保险号. The field is labelled 保险号(KVNR) for a reason: the number is the German Krankenversichertennummer, and 保险号 alone is what a Chinese reader would take as a domestic policy number. The acronym is the only thing that says which number to type.

  3. settings.sections.health-record.title is now 医生报告 while the section also holds the exports and FHIR. Reading it as the rail label, fine; as the section heading it now promises less than the page delivers. Your call — I only want to be sure it is a deliberate shorten and not the merge taking the shorter side.

Everything else I agree with, including 下一个值 for the save-and-next button and 保存离线副本 → 离线副本.

The wallet-pass finding is the one I should have caught. A zh-CN.lproj in every pass failing the signing service for every account is exactly the kind of thing a bundle-shaped change hides. Thank you for taking it.

#1670 is now redundant with your own work. You added ReportSansSC to the doctor report and the emergency card inside this PR, with the glyph test; mine only had the two faces, one report path and no glyph coverage. Unless there is something in it you want to keep, I will close it and note why, so the timeline does not carry a duplicate. Tell me if you would rather I rebase it against release/v1.50.0 instead.

The typography guard is mine, and it will be there before Wednesday evening. I have already sized it against your branch:

  • 664 values put a space between a number or placeholder and its measure word — 天 237, 个 97, 条 80, 次 74, 小时 56, 分钟 35, and the rest in 周 份 月 年 步 岁 秒 片. Some are inside plural bodies (# 条测量 in json.partialCounts, {total} 个中的 {done} 个 in fit.batch.progress), which is why a plain find-and-replace will not do.
  • 113 values carry a single … where …… belongs.
  • Lists already use 、: 0 values have a half-width comma between Han characters, so that rule is a guard against regression rather than a cleanup.

So the PR is one new zh-CN-scoped test beside i18n-typography-glyphs.test.ts — no space before a measure word, …… not …, 、 in lists, 「」/『』 exempt — plus the pass over the bundle that turns 777 findings into zero, and the rule list in the description as you asked. I will send it against release/v1.50.0 and reference #1528.

@MBombeck
MBombeck merged commit 5bfd9a0 into MBombeck:release/v1.50.0 Nov 28, 2026
40 checks passed
@Remedy233

Copy link
Copy Markdown
Author

The typography guard you asked for is up, in the branch that will retarget to release/v1.50.0 once this one lands: Remedy233#3 (based on this branch, since the bundle it reads only exists here).

Against your merged state it found:

Rule Findings Now
space before a measure word 1190 0
lone … 3 0
half-width comma between Han characters 0 0

By measure word: 天 237, 个 97, 条 80, 次 74, 小时 56, 分钟 35, 周 20, 份 19, 月 13, 年 12, 步 9, 岁 7, 秒 4, 片 1. Three of the shapes had to handle a count arriving as a placeholder, as an ICU plural body's #, and as digits — your own json.partialCounts (# 条测量) and fit.batch.progress ({total} 个中的 {done} 个) are two of the 1190.

82 kg, 120 mmHg, 10 mg/dL and 5 % keep their space, and the test asserts that, so nobody later "fixes" the guard into stripping Latin units.

One thing moved with the bundle: the snooze glossary anchor read 稍后提醒我({minutes} 分钟) and now reads …({minutes}分钟). The glossary guard caught the disagreement, which is the mechanism working.

Also: #1670 is closed as superseded by your own PDF work in this PR — thank you for taking it on. And the two Chinese strings I would change back are in my previous comment: emergencyCard.link.disclosure (the expiry/revocation/logging sentence) and settings.identity.insuranceNumber (the KVNR).

@MBombeck

Copy link
Copy Markdown
Owner

@Remedy233 thank you for reading all of it, and for the guard. Your three points:

  1. The disclosure sentence isn't lost, it moved. The on-screen line is now one sentence in every language, and the part about the end date, revoking and the access log lives in its own key, emergencyCard.link.disclosureMore, one tap away next to it. Your original wording is exactly right for that key, so it's going in as 你可以为链接设定到期时间并随时撤销;每次打开都会为你记录。

  2. The insurance number is no longer German only. As of today the field takes a country next to the number: Germany, Austria, Switzerland, the Netherlands and France are checked by their check digit, and every other country takes the number as it's printed on the card. So the label is the plain word in every language now, and the country beside it says which number it is. 保险号 is deliberate.

  3. 医生报告 is deliberate too. English and German were shortened to "Doctor report" for the same section, and the exports now live under Export & Import, so the heading promises what's there.

Closing #1670 makes sense, thank you for keeping the timeline clean. And 1190 findings with Latin units protected is great. I'll review Remedy233#3 as soon as it's pointed at the release branch.

Refs #1528

@Remedy233

Copy link
Copy Markdown
Author

One thing your merge made visible, and it is not mine to guess at: release/v1.50.0 is red on the plural guard, and was before this series touched anything.

i18n-count-plural-guard > 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 the bundle was synced, so 52 English keys have no Chinese counterpart — the new medication detail screen, its intake log, the plan section, and the serverText.efficacyResult.* sentence the server writes. A Chinese reader sees that screen in English today.

I have translated those 52 and opened them on their own so they do not muddy the typography change: #1676, one commit on release/v1.50.0. The bundle is key for key with English again (0 missing). 32 keys remain in zh-CN that English no longer has — strays from your renames, referenced by no code — and I left them rather than widen the diff; tell me if you want them gone in the same PR.

So the follow-ups are:

PR What Base
#1673 the zh-CN typography guard and the bundle pass release/v1.50.0
#1674 zh-CN under the English-leak guard release/v1.50.0
#1675 chi_sim for the document reader release/v1.50.0
#1676 the 52 medication-detail strings release/v1.50.0

All four are single commits on release/v1.50.0 and none of them touch each other's files, so they can land in any order. #1673 is the one you asked for; the rest are the pieces #1664's own body said were coming separately.

Also: #1670 is closed — your ReportSansSC work inside #1664 covers it, and better (the emergency card and the glyph test).

@MBombeck

Copy link
Copy Markdown
Owner

@Remedy233 good catch, and thank you for getting there first. Two pieces landed side by side and the plural guard caught the gap, which is what it's there for. Your #1676 goes in first, since your Chinese beats ours, and a small follow-up then removes the 32 stray keys and fills in the few strings that arrived after your sync. After that the release branch should be green again.

I'll go through #1673, #1674 and #1675 next. Splitting them by concern makes them very easy to review, thank you for that.

Refs #1528

@MBombeck

Copy link
Copy Markdown
Owner

All three follow-ups are in release/v1.50.0 now: the zh-CN typography guard (#1673), zh-CN under the English-leak guard (#1674) and Simplified Chinese OCR (#1675). Thank you, @Remedy233. The measure-word pass alone touched over a thousand strings, and the size table in the OCR PR saved us from shipping a 19 MB build for no reason. I merged the release branch into each of them and brought the strings that arrived on release in the meantime in line with your measure-word rule, so they pass your own guard.

They ship with the next release, which will most likely come out next Saturday.

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