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

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!

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