Add a Simplified Chinese localization of Transformer Explainer#86
Open
Jian1202 wants to merge 15 commits into
Open
Add a Simplified Chinese localization of Transformer Explainer#86Jian1202 wants to merge 15 commits into
Jian1202 wants to merge 15 commits into
Conversation
Translated user interface text, tooltips, and documentation to Simplified Chinese across all major Svelte components and the README. Updated meta tags, popovers, tooltips, and UI labels for a fully localized user experience. No changes to core logic or functionality.
Updated GitHub Actions workflow for deploying to GitHub Pages. Added Node.js setup, build steps, and adjusted artifact upload path.
Changed import statements in LinearSoftmax.svelte and OperationGroup.svelte to reference the 'Popovers' directory with a capital 'P' instead of 'popovers'. This ensures consistency with the directory naming and may resolve issues on case-sensitive file systems.
Updated README.md to enhance clarity and localization details.
Update Chinese README: insert separators and a new notice stating that this Chinese localization will stop syncing with the upstream project in 2026.
同步模型可视化、依赖与交互优化,保留中文分支现有部署配置,并排除上游自动同步工作流。
- 对齐 Svelte 5、SvelteKit 与 Vite 6 依赖并重建锁文件 - 部署流程改用 npm ci,保留中文版 GitHub Pages 基础路径 - 恢复预渲染 SSR,并补充 Sass、全局类型与汉化审计脚本
- 使用项目真实英文示例、词元切分与词元 ID - 区分位置编码概念与 GPT-2 可学习位置嵌入 - 修正 Pre-LN、推理期 Dropout 与 Top-p 归一化说明
- 集中管理界面与动态提示文案,补齐组件和弹窗中的英文残留 - 使用真实 GPT-2 分词器计数,并显示下载、缓存、就绪和失败状态 - 优化示例菜单、移动端预览、宽画布滚动和教程卡片的响应式行为
- 明确中文界面与英文 GPT-2 Small 的能力边界 - 说明模型体积、缓存、移动端行为和人工上游同步策略 - 更新中文版站点链接、分享元数据、目录结构与论文信息
- 增加关于中文字符在分词时显示为 `�` 的说明,澄清这是 GPT-2 的分词限制 - 确保原版功能问题链接的格式一致性
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #57.
Summary
This PR implements the Simplified Chinese (zh-CN) localization proposed in #57.
It aims to make Transformer Explainer more accessible to Chinese-speaking learners
while preserving the project’s interactive learning experience.
Included changes
Scope and limitations
�in per-token visualizations. This is a display limitation rather than a page encoding issue.Validation
npm cinpm run buildnpm run check:localization