Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Support Toki Pona

Offen
#105 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python

Rechercherichtung

Start with I18n.load_all in hexdoc/minecraft/i18n.py, where the traceback shows language tags are validated. Check how the validation handles tok and what language-tag support is appropriate. Done looks like the build accepting Toki Pona without raising the invalid-language error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

https://github.com/FallingColors/HexMod/actions/runs/31510000119/job/93841252641?pr=1248

[INFO] Loading hexdoc.
    Python:         3.11.15 (linux)
    hexdoc:         1!0.1.0a40
    plugins:        minecraft-1.20.1.1.0.dev1, hexcasting-0.11.3.1.0
    mod_plugin:     hexcasting-0.11.3.1.0
    cwd:            /home/runner/work/HexMod/HexMod
    props_dir:      ./doc
    mod_templates:  ./doc/src/hexdoc_hexcasting/_templates
    site_url:       https://hexcasting.hexxy.media/
  [INFO] Exporting resources.
  [INFO] Loading and rendering textures to _site/src/docs/v/latest/1248/merge.
  ╭───────────────────── Traceback (most recent call last) ──────────────────────╮
  │ /opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/hexdoc/ │
  │ cli/ci.py:50 in build                                                        │
  │                                                                              │
  │    47 │   │   pages_url = get_pages_url(env.repo)                            │
  │    48 │   os.environ["GITHUB_PAGES_URL"] = pages_url                         │
  │    49 │                                                                      │
  │ ❱  50 │   site_path = hexdoc_app.build(                                      │
  │    51 │   │   Path("_site/src/docs"),                                        │
  │    52 │   │   clean=True,                                                    │
  │    53 │   │   branch=env.branch,                                             │
  │                                                                              │
  │ /opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/hexdoc/ │
  │ cli/app.py:212 in build                                                      │
  │                                                                              │
  │   209 │   │                                                                  │
  │   210 │   │   book_id, book_data = book_plugin.load_book_data(props.book_id, │
  │   211 │   │                                                                  │
  │ ❱ 212 │   │   all_i18n = I18n.load_all(                                      │
  │   213 │   │   │   loader,                                                    │
  │   214 │   │   │   enabled=book_plugin.is_i18n_enabled(book_data),            │
  │   215 │   │   )                                                              │
  │                                                                              │
  │ /opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/hexdoc/ │
  │ minecraft/i18n.py:132 in load_all                                            │
  │                                                                              │
  │   129 │   │   │   lang = lang_id.path                                        │
  │   130 │   │   │   if not langcodes.tag_is_valid(lang):                       │
  │   131 │   │   │   │   modid = resource_dir.modid or lang_id.namespace        │
  │ ❱ 132 │   │   │   │   raise ValueError(                                      │
  │   133 │   │   │   │   │   textwrap.dedent(f"""\                              │
  │   134 │   │   │   │   │   │   Attempted to load invalid lang (provided by {m │
  │   135 │   │   │   │   │   │   Resource dir: {resource_dir.path}              │
  ╰──────────────────────────────────────────────────────────────────────────────╯
  ValueError: Attempted to load invalid lang (provided by hexcasting): tok
  Resource dir: /home/runner/work/HexMod/HexMod/doc/../Common/src/main/resources
Vorherrschende Sprache
Python
Sterne
7
Forks
10
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus hexdoc-dev/hexdoc

Alle Issues in hexdoc-dev/hexdoc

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.