an, fy, id and ms: some nice_* writers raise NotImplementedError

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
localization

Direzione di ricerca

Start in ovos_date_parser/res/, which has no date_time.json for id or ms and no duration words for an or fy. Compare these with the existing res/<lang>/ files that already work for the same writers. Run the reproduce snippet in the issue to see which of the 10 cells still raise NotImplementedError. Done means every writer returns text for these four languages without errors, and the translations need a reviewer fluent in each language.

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

Descrizione

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting. I ran the calls below in a fresh uv venv with ovos-date-parser 0.41.5a1 and chronologia 0.43.16a1. The docs round on #701 found the cells; I re-ran each one.

Observed

Four languages have writers for some nice_* functions, and the other functions raise NotImplementedError.

lang works raises
an nice_date, nice_date_time, nice_year, and the other date writers nice_duration, nice_relative_time ("Unsupported language: an - please translate ...")
fy nice_date, nice_date_time, nice_year, and the other date writers nice_duration, nice_relative_time
id nice_duration ("lima menit"), nice_relative_time nice_date, nice_date_time, nice_year ("Unsupported language: id"), after the warning "could not find .../res/id/date_time.json"
ms nice_duration ("lima minit"), nice_relative_time nice_date, nice_date_time, nice_year, after the same warning for res/ms

Expected

Every writer works for a language that the package lists. id and ms need res/<lang>/date_time.json. an and fy need the duration words in res/<lang>/.

Reproduce

import datetime as dt, ovos_date_parser as o
d = dt.datetime(2026, 11, 25, 15, 10)
for lang in ("an", "fy", "id", "ms"):
    for f in (lambda: o.nice_date(d, lang), lambda: o.nice_duration(dt.timedelta(minutes=5), lang)):
        try: print(lang, f())
        except NotImplementedError as e: print(lang, "NotImplementedError:", e)

Where

ovos_date_parser/res/: id and ms have no date_time.json; an and fy have no duration data for the shared writer. The writer matrix of #701 (docs/img/writer_coverage.png) shows the same 10 cells.

Lingua principale
Python
Stelle
0
Fork
8
Merge medio
13h 26m
PR unite (30g)
77

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 OpenVoiceOS/ovos-date-parser

Tutte le issue di OpenVoiceOS/ovos-date-parser

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.