neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 354 forks source link

Refactor string translation in DeterministicLinePlot.tsx #683

Closed abrie closed 4 years ago

abrie commented 4 years ago

Related issues and PRs

Related to this Fixme, an incremental refactoring of the DeterministicLinePlot component.

(Additional context: #636, #671, #677 )

Description

Impacted Areas in the application

Reduce the code complexity of DeterministicLinePlot.tsx by removing the unnecessary 'translatePlots()' function and doing all necessary translation when strings are first defined.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click on the icon next to each commit.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 6fac5948 and detected 0 issues on this pull request.

View more on Code Climate.