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

non-english browsers for existing accounts using "en" translations are missing all labels

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby

Direzione di ricerca

La issue indica i record Symptom::Translation e Treatment::Translation e le etichette mancanti per gli account esistenti non in inglese. Inizia tracciando il modo in cui vengono cercate le traduzioni specifiche della lingua per sintomi e trattamenti, quindi riproduci il problema con un account che utilizza una lingua del browser diversa dall’inglese. Il lavoro è completato quando le traduzioni mancanti usano l’inglese come fallback e sintomi e trattamenti vengono visualizzati nella cronologia e nei menu.

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

Descrizione

Help Wanted

To fix this, re-add fallback to english for missing translations

Code I ran to fix this for one "de" user

user.checkins.last.symptoms.map { |x| Symptom::Translation.find_by(symptom_id: x.symptom_id).name } #  ["HWS", "Hände", "Ohrenweh"]
user.checkins.last.symptoms.map { |x| Symptom::Translation.find_by(symptom_id: x.symptom_id).update!(locale: "de") } # not "de" specific
user.checkins.last.treatments.flat_map { |x| Treatment::Translation.where(treatment_id: x.treatment_id).flat_map(&:name) }
user.checkins.last.treatments.map do |x|
  tt = Treatment::Translation.find_by(treatment_id: x.treatment_id)
  new_tt = tt.dup
  new_tt.locale = "de"
  new_tt.save!
end

This is the cause of this bug report:

Everything works better now, the only issue I still have is that I don’t see my treatments in the history anymore. They are also not visible in menu below. Any advise?

Add reaction
loganmerriam 😎

@Galatea hmm, I'll make a ticket for contributors to look into. I'm seeing them on my account right now so it must not be 100% universal which makes it harder to track down the source of the issue.

Add reaction
Galatea

Thanks, I just realized that only conditions are available in the history, symptoms and treatments are missing. Strangely I can see them in my patterns.

Add reaction

Lingua principale
Ruby
Stelle
50
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 rubyforgood/Flaredown

Tutte le issue di rubyforgood/Flaredown

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.