Add translation to client/Weather.js and client/Tasks.js
jakkra opened this issue · 2 comments
jakkra commented
Känns som == Feels like
Vindhastighet == Wind speed
Att handla == To buy / Shopping list
binora commented
curious about the approach. Could add the phrases in <language>.json
as with meanings in arrays ( to maintain consistency in the json file) and then access 0th
index in the respective clients but that feels not really ok ( i maybe wrong). Do you have anything else in mind ?
jakkra commented
Maybe we can do like this in <language>.json
https://gist.github.com/jakkra/bfd372955a6467480eb50e3a8e25054c?
Then in synonyms.js module.exports = require(currentLanguageFile).speech;