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

Đang mở
#702 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
localization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

🤖 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.

Ngôn ngữ chính
Python
Star
0
Fork
8
Merge trung bình
13 giờ 26 phút
Pull request đã merge (30 ngày)
77

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenVoiceOS/ovos-date-parser

Tất cả issue của OpenVoiceOS/ovos-date-parser

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.