Skip to content

fix(locales): align zh-CN translations with English source#200

Open
whtis wants to merge 1 commit intoSnouzy:mainfrom
whtis:night-shift/20260502-zh-cn-i18n-fixes
Open

fix(locales): align zh-CN translations with English source#200
whtis wants to merge 1 commit intoSnouzy:mainfrom
whtis:night-shift/20260502-zh-cn-i18n-fixes

Conversation

@whtis
Copy link
Copy Markdown

@whtis whtis commented May 1, 2026

📝 Description

Brings the simplified Chinese (zh-CN) locale up to parity with en.ts by translating the entries that were missing or unreachable, and re-locating one block that was nested in the wrong section.

Missing keys translated

  • bmi-calculator.health_risks.{overweight,underweight}.* (25 keys, on the BMI results page)
  • tools.calorie-calculator.body_fat_percentage and body_fat_info_title
  • tools.heart-rate-zones.results.overview
  • heatmap.no_workout, heatmap.one_workout_unit, heatmap.multiple_workouts_unit
  • premium.premium_feature, premium.upgrade_to_access_feature, premium.unlock_all_features
  • workout_builder.muscles.lats
  • commons.refresh

Block re-location

The health_risks block was nested under premium.hero in zh-CN.ts, but in en.ts it lives under bmi-calculator. As a result, the BMI calculator's health-risk list fell back to English for zh-CN users. The block is moved to bmi-calculator.health_risks to match the canonical structure (and the existing translations are preserved, with two minor wording polishes for body_pains / low_quality_life).

Translation notes

  • Followed the existing tone and term choices in zh-CN.ts (e.g. 2型糖尿病, 背阔肌, 骨关节炎, 胆囊疾病, 心率储备).
  • body_fat_info_title is a descriptive paragraph, not a heading — translated as such to match the source.

📋 Checklist

  • My code follows the project conventions
  • This PR includes breaking changes
  • I have updated documentation if necessary

🗃️ Prisma Migrations (if applicable)

  • I have created a migration
  • I have tested the migration locally

📸 Screenshots (if applicable)

N/A — strings only, no UI changes.

🔗 Related Issues

None — this is a follow-up sweep on an existing locale file.

Drafted with AI assistance; verified by author before publishing.

Adds missing zh-CN entries for the BMI calculator health-risks block,
calorie calculator body-fat fields, heart-rate-zones overview, heatmap
unit labels, the premium gate, the workout-builder lats muscle, and
commons.refresh.

The bmi-calculator.health_risks block was previously misplaced under
premium.hero in zh-CN.ts (where en.ts has no such key), so the lookups
in the BMI calculator UI fell back to English. The block is moved to
match the en.ts structure under bmi-calculator.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

@whtis is attempting to deploy a commit to the Workoutcool Team Team on Vercel.

A member of the Team first needs to authorize it.

@whtis whtis marked this pull request as ready for review May 2, 2026 23:33
@lucasnevespereira lucasnevespereira self-requested a review May 4, 2026 22:54
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