Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#552 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ruby

Línea de trabajo

El issue apunta a los registros de Symptom::Translation y Treatment::Translation y a etiquetas faltantes para cuentas existentes que no usan inglés. Empieza rastreando cómo se buscan las traducciones específicas de la configuración regional para síntomas y tratamientos, y luego reproduce el problema con una cuenta que use una configuración regional del navegador distinta del inglés. Se considera terminado cuando las traducciones faltantes tienen como alternativa el inglés y los síntomas y tratamientos aparecen en el historial y en los menús.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Ruby
Estrellas
50
Forks
21
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rubyforgood/Flaredown

Todos los issues de rubyforgood/Flaredown

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.