Skip to content

feat(protocol): accept localized course descriptions - #81

Merged
RJiazhen merged 2 commits into
mainfrom
feat/79-course-description-locales
Oct 18, 2026
Merged

RJiazhen merged 2 commits into
mainfrom
feat/79-course-description-locales

Conversation

@RJiazhen

Copy link
Copy Markdown
Owner

Summary

  • description stays optional. A string is language-neutral, and an object maps BCP 47 tags to text.
  • The demo course stores en, zh-CN, zh-TW, and ja. Each course page shows the tag for that page.
  • The chibivue Simplified Chinese course keeps its original single-string description.

Closes #79

Test plan

  • pnpm exec vp run @learn-by-diff/protocol#test
  • pnpm --dir apps/website exec vitepress build docs
  • Open /courses/, /zh/courses/, /zh-tw/courses/, and /ja/courses/ and confirm the demo description matches the page language.
  • Confirm the chibivue course still shows its original Simplified Chinese description on every locale page.

Made with Cursor

A single string cannot hold the same course blurb in each site language. The field stays optional, and a plain string still means one language-neutral description.
A locale map would otherwise appear as one string on every course page. The demo course stores en, zh-CN, zh-TW, and ja, and each page selects its own tag. A plain string still shows on every page.
@RJiazhen
RJiazhen merged commit b46c3c4 into main Oct 18, 2026
1 check passed
@RJiazhen
RJiazhen deleted the feat/79-course-description-locales branch October 18, 2026 13:24
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.

Extend course config description to hold multiple languages

1 participant