Forecast.io supports the following languages: bs (bosnian), de (german), en (english), es (spanish), fr (french), it (italian), nl (dutch), pl (polish), pt (portuguese), ru (russian).
Although, forecast.io supports only a limited language set, the widget texts (i.e. weekdays, high/low etc.) can still be localized using external language files.
If the specified language is not supported by forecast.io, the weather messages will be returned in english as it is the default language of forecast.io.
A few more languages were already included in the package: hi (hindi), hr (croatian), ro (romanian), tr (turkish) and using them will localize the widget texts but the forecasts will be in english as forecast.io do not support these languages.
More languages can be added add or the existing ones can be modified.
In order to create a new custom language, it's better if you start from an existing one. Just clone an existing language file and change it.
All the language files are located under the javascript-premium-weather-widget/bins/lang directory, so your language file should be copied into that location too.
In order to use the new 'my-language.html' your widget directive should look like:
<div ng-app="wl-ng-weather" wl-ng-weather lang="my-language"></div>
WiseLoop JavaScript Premium Weather Widget is an AngularJS based weather condition and forecast script.
Its flexibility and easiness makes it perfect for displaying local or searched weather information in websites, blogs, portals, web and mobile apps.
It features GEO location, address search, localization, animations, theme support with really nice included themes that are responsive and compatible with mobile devices.