Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

webv2: localize queue runtime error messages and notification titles

Đang mở
#9,945 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 2 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript

Hướng nghiên cứu

Start with invokeai/frontend/webv2/src/features/queue/runtime.ts, QueueItemDetails.tsx, and workbenchState.ts, then read the review context in #9858 and the locale structure in public/locales/en.json. Trace how runtime errors and run-outcome notifications reach the React views. Done when runtime error messages and notification titles use translation keys while server details remain available as secondary text.

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

Mô tả

Follow-up from the review of #9858.

The webv2 queue runtime (invokeai/frontend/webv2/src/features/queue/runtime.ts) stores failure text as plain strings in the queue item's errorMessage via commands.setStatus({ error }). That text is then shown as-is:

  • in QueueItemDetails.tsx (item.errorMessage)
  • in the run-outcome notifications in workbenchState.ts, whose titles are also hard-coded English (e.g. 'Invocation failed')

The runtime has no i18n hook outside React, so none of these strings can be translated today. This covers the server-error (5xx) failure from #9858, but also the other runtime error strings.

Possible approach: store a stable error code alongside the raw server detail, e.g. { code: 'server_error', detail }, and have the React views render a localized string from public/locales/en.json, with the server text as secondary detail. The notification titles would move to translation keys the same way.

Ngôn ngữ chính
TypeScript
Star
28.8k
Fork
3.1k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
156

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 invoke-ai/InvokeAI

Tất cả issue của invoke-ai/InvokeAI

Issue tương tự

Thêm issue về TypeScript

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.