digitalfabrik / integreat-app

React JS and React Native App for Integreat
https://integreat.app
MIT License
45 stars 15 forks source link

Language cannot be changed in news. #2732

Open Docmale opened 3 months ago

Docmale commented 3 months ago

Describe the Bug

If you try to change the language in a news entry, the message 'No translation available' appears.

Steps to Reproduce

  1. Go to Testumgebung Regression (Deutsch)
  2. Click on 'News'
  3. Find 'Nachricht Regrssionstest'
  4. Click on 'Continue'
  5. Inside the message click on 'change language' ikon
  6. View bottom message: 'No translation available'

Expected Behavior

If a language change is not possible at this point, a corresponding message should be displayed or if a language change is possible, the change should proceed normally.

Actual Behavior

Languge change is not possible and a misleading (wrong) message is shown.

Additional Information

In Web-app the issue occurs accordingly

Blocked by CMS for local news: https://github.com/digitalfabrik/integreat-cms/issues/2707 Check the tunews api for tünews, but at least wasn't possible at the time implementing this.

osmers commented 3 months ago

I think this has to do with the firebase we use for notifications - it is known and I think currently not avoidable? But correct me if I'm wrong.

Docmale commented 3 months ago

If so, the massage should sound like 'Changing the language is not possible at this point' since translations are available.

osmers commented 3 months ago

I agree that it is very unfortunate, that you can only change the language in the news overview page and not in the specific news itself - not sure how to fix it though and where to place this message

steffenkleinle commented 3 months ago

Basically its a CMS problem not telling us what the translations are. The id of the news is language specific, therefore without a property telling us where to find the translation nothing we can do in the frontends. I'll open an issue in the CMS: https://github.com/digitalfabrik/integreat-cms/issues/2707

Docmale commented 3 months ago

Can we just change the message to 'Changing the language if any is not possible at this point' ('Eine eventuelle Änderung der Sprache ist hier nicht möglich') so the user knows that there are probably translations?

steffenkleinle commented 3 months ago

Can we just change the message to 'Changing the language if any is not possible at this point' ('Eine eventuelle Änderung der Sprache ist hier nicht möglich') so the user knows that there are probably translations?

Imo thats too complicated and even more confusing. We could not show disabled languages as currently discussed in #https://github.com/digitalfabrik/integreat-app/issues/2550.