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

webv2: localize queue runtime error messages and notification titles

Aperta
#9,945 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
TypeScript
Stelle
28.8k
Fork
3.1k
Merge medio
3g 2h
PR unite (30g)
136

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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

Tutte le issue di invoke-ai/InvokeAI

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.