weather-widget icon indicating copy to clipboard operation
weather-widget copied to clipboard

translation

Open bones78 opened this issue 9 years ago • 2 comments

Hi all, I have successfully changed the English days into German ( in the index.coffee under dayMapping:). But I failed in changing the wheather tags (e.g. cloudy) into a German word. How can I do this?

bones78 avatar Feb 05 '16 16:02 bones78

It is probably weather.condition.text from the api response that provides the text like 'cloudy', 'mostly sunny' etc. If you want to translate it, maybe the best starting place is to use the weather.condition.code instead https://developer.yahoo.com/weather//#codes and then use your own translation mapping (similar to the weekdays)

felixhageloh avatar Feb 08 '16 07:02 felixhageloh

unfortunately it does not work. For example it is sunny, I write (I use test as an example): weather.condition.code: 32: test OR 32: 'test' OR 32: "" test

There is an error: Error in widget.... unexpected : If I delete the : in weather.condition.code it says: weather is not defined. What is the correct way to translate it?

bones78 avatar Feb 14 '16 07:02 bones78