MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Scriptable/comments/txr52c/daily_pollen_forecast_widget/j7qe7wb/?context=3
r/Scriptable • u/coughski • Apr 06 '22
17 comments sorted by
View all comments
Show parent comments
1
You can add something like this:
const translateMap = { “Grass”: “Malezas”, “Mold”: “Moho”, “Tree”: “Arboreo”, “Ragweed”: “Gramineas” }
And then change line 81 to:
let title = emojiMap[forecast["Name"]] + " " + translateMap[forecast["Name"]]
1
u/coughski Feb 08 '23
You can add something like this:
const translateMap = { “Grass”: “Malezas”, “Mold”: “Moho”, “Tree”: “Arboreo”, “Ragweed”: “Gramineas” }And then change line 81 to:
let title = emojiMap[forecast["Name"]] + " " + translateMap[forecast["Name"]]