hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap

Home Page:https://wiki.openstreetmap.org/wiki/Tasking_Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in My contribution page due to change in language from english to other few languages.

manjitapandey opened this issue · comments

Describe the bug
My contribution page shows error message after i changed my language settings from english to few other languages. I could reproduce those error while changing language from English to nederlands and svenska.

To Reproduce
Steps to reproduce the behavior:

  1. Go to my settings. Make sure that you are signed and have english default language.
  2. Change Language to Nederlands or svenska.
  3. Click on my contribution page
  4. See error

Screenshots
image

Additional context
this problem could be on other languages too. Will dig in further and provide update on comment.

Update: This error is not only limited to my contribution page but on all pages consisting map like project page, tasks page and more.

After some digging in, I found that this is related to Mapbox not supporting all the TM selected languages, causing errors due to unsupported languages.

Mapbox supported language (provided by @mapbox/mapbox-gl-language package)

  • ["ar", "en", "es", "fr", "de", "ja", "ko", "mul", "pt", "ru", "zh"]