IFRCGo / go-web-app

GO Web application! GO is a Red Cross Red Crescent platform to connect information on emergency needs with the right response.
https://go.ifrc.org
MIT License
6 stars 1 forks source link

The user enters text not in the UI language, which doesn't allow the auto-translations: https://go.ifrc.org/emergencies/6541#surge #530

Open udaynwa opened 8 months ago

udaynwa commented 8 months ago

DEV comment

This is feasible, but it will add extra cost/time to the translation as we need to send multiple requests for language checks and translation.

cc @tovari

thenav56 commented 7 months ago

We should discuss this on our dev call.

Challenges:

tovari commented 7 months ago
tovari commented 6 months ago

I think, it should happen on the Frontend before saving the data.

Submission workflow options:

I believe Option 2 would be easier and nicer solution, however we need to check how effective is the Language detection on the Summary field, to avoid changing the FR and Emergency page Original_language to a falsely detected language.

samshara commented 6 months ago
  • Option 2: When user submits the FR, the Original_language will be set based on the detected language. No message box shows up. If language dtection fails, then Original_language remains the UI language

I believe Option 2 would be easier and nicer solution, however we need to check how effective is the Language detection on the Summary field, to avoid changing the FR and Emergency page Original_language to a falsely detected language.

@tovari I do agree that option 2 is a nicer solution. I do agree that we need to assess the effectiveness of the language detection service. The language detection won't always work and automatically saving in the detected language that is a mismatch could lead to translation issues. A confirmation from the user will always be a good idea.