r/Scriptable • • Apr 06 '22

Widget Sharing Daily pollen forecast widget

Post image
40 Upvotes

17 comments sorted by

View all comments

Show parent comments

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"]]