refactor bad i18n usage in selector
- https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-data-explorer/-/blob/develop/src/web/selectors/index.js#L166
- https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-data-explorer/-/blob/develop/src/web/selectors/index.js#L206
never access I18N keys and values directly
always use intl to abstract any api change smoothly
intl is also used to statically keep track of keys
-
refactor the 2 selectors to use intl (either by using props from the view to avoid having view concerns in a selector or any other acceptable way) -
make sure that the key is statically extracted
Edited by Nicolas Briemant