Gapminder / dollar-street-pages

Dollar Street public pages
https://www.gapminder.org/dollar-street/
GNU General Public License v3.0
14 stars 23 forks source link

Family Page. Switching language resets income time unit. #1345

Open AntonOlkhovskyi opened 6 years ago

AntonOlkhovskyi commented 6 years ago

Context

If user switches language on Family Page, the time unit resets to the default (Week).

Steps to reproduce

  1. Open Matrix Page, set Year in time unit filter.
  2. Select and Family and click on Visit this home button. Note: Family income has Yearly value.
  3. Switch language to any different from current.

Expected result

Page is translated to chosen language, time unit has Yearly income value.

Current result

Page is translated to chosen language, time unit has Weekly income value.

Possible Fix

Do not reset filters on page reload triggered by language change.

Browsers

Any.