Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Warn on unsupported pack languages and document how to add a game language

Aperta
#39 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: engine help wanted priority: medium type: feature

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 of language has 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: fr gets the warning; de, de-AT, en and en-GB do 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
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
28m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nullthrone/lexvm

Tutte le issue di nullthrone/lexvm

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.