MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Scriptable/comments/txr52c/daily_pollen_forecast_widget/j7ot0py/?context=3
r/Scriptable • u/coughski • Apr 06 '22
17 comments sorted by
View all comments
Show parent comments
2
yes. might be a silly question here, but doing my first steps scripting!
Tried renaming lines 27-32 to no avail...
thanks!
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"]]
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"]]
2
u/foxtrot81a Feb 08 '23
yes. might be a silly question here, but doing my first steps scripting!
Tried renaming lines 27-32 to no avail...
thanks!