Add unit tests for weather.js

* Add translations for hard-coded text.
* Remove some obsolete code.