Warn on unsupported pack languages and document how to add a game language
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 54/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Start with packages/engine/src/messages/index.ts and packages/engine/src/analyze.ts to see how catalogs and analyzer warnings are handled; check packages/engine/src/playtime.ts for the default reading speed. Read CONTRIBUTING.md and the prompt kit to find where language guidance belongs, then use the existing analyzer tests as a starting point. Done means unsupported primary language tags warn, supported tags do not, and the guide lists the files a new language touches.
由索引模型根据 Issue 内容生成。
描述
Context
The schema accepts any BCP 47 tag in language, but the engine has message catalogs and parser vocabularies only for German and English (packages/engine/src/messages). Any other language silently falls back to English engine messages and parser words, so a French pack would mix French story text with English system messages and an English parser. ADR 0008 and docs/architecture.md (section 9) describe a new game language as an additive change, and the v0.2 milestone includes more engine messages and languages.
Scope
- Analyzer: a warning (for example
language.unsupported) when the primary subtag oflanguagehas no catalog, naming the supported languages; listed in Appendix A. - A section "Adding a game language" in CONTRIBUTING.md: message catalog, parser vocabulary (verbs, directions, stop words, prepositions, particles, meta words), default reading speed for the play-time estimate, parser tests, and accepting the code in the docs.
- A first additional language is tracked in its own issue once a native-speaking contributor volunteers.
Acceptance criteria
- A pack with
language: frgets the warning;de,de-AT,enanden-GBdo not. - The guide section exists and lists every file a new language touches.
- The prompt kit tells LLMs which pack languages are supported.
References
- packages/engine/src/messages/index.ts
- packages/engine/src/analyze.ts
- packages/engine/src/playtime.ts
- docs/adr/0008-language-policy.md
- docs/architecture.md (section 9)
- CONTRIBUTING.md
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 1 小时 24 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nullthrone/lexvm 的其他 Issue
-
area: web good first issue priority: low type: bug
难度 2/5 1-3 小时 新手友好度 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
难度 2/5 1-3 小时 新手友好度 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
难度 2/5 1-3 小时 新手友好度 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
难度 5/5 一周以上 新手友好度 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
难度 5/5 一周以上 新手友好度 38/100
nullthrone/lexvm#62 ·
相似的 Issue
-
🐛 bug
难度 2/5 1-3 小时 新手友好度 68/100
LibreChat-AI/LibreChat#17733 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
TypeStrong/typedoc#3150 ·
-
accessibility bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
Normalize image-source MIME types before SVG dispatch可能已有人在做 @HarsH-1877 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
tscircuit/image-utils#58 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 2 天内回复