Web i18n: port the gui/i18n.py EN/FR catalog or remove the vestigial language toggle

Aperta
#49 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
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, react, typescript

Direzione di ricerca

Start by reading components/StatusBar.tsx (lines 140-166) and App.tsx (lines 93, 1440-1441) to see the dead language toggle and state. Check src/profiles/gui/i18n.py for the EN/FR catalog before any gui removal. Decide whether to port to web/src/i18n.ts (with index.html lang update) or remove the toggle; done means either real i18n context wired or no toggle and dead state deleted.

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

Descrizione

enhancement frontend

The web UI has a language toggle in the StatusBar (components/StatusBar.tsx:140-166) wired to language state (App.tsx:93, :1440-1441) — but nothing consumes the value: every user-facing string in all 23 components is hardcoded English, and index.html declares lang="en". The toggle is decorative.

The real EN/FR catalog lives in the deprecated Tkinter app (src/profiles/gui/i18n.py), which dies at phase 2 (gui removal tracking issue).

Decision needed

  1. Port the catalog to web/src/i18n.ts (small typed dict + useI18n context), translate the web strings to French, and make the toggle real — the app ships French docs, so this is plausible.
  2. Remove the toggle until real i18n exists, and delete the dead state — the status bar currently advertises a feature that does nothing.

Either way, don't let the only i18n catalog be deleted with gui/ before deciding.

Lingua principale
Python
Stelle
1
Fork
1
Merge medio
4h 46m
PR unite (30g)
55

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 falbany/ProFiles

Tutte le issue di falbany/ProFiles

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.