DB-db-dron / weatherDB

Get current weather, hourly forecast, daily forecast for 7 days, and 7 day weather icons for your city. No authentication or API key required... Simple and fast and free weather API
https://weatherdbi.herokuapp.com
28 stars 2 forks source link

Support for different languages #4

Open muzzwood opened 2 years ago

muzzwood commented 2 years ago

Describe the solution you'd like Would love to see the results returned in different languages.

An example could be: https://weatherdbi.herokuapp.com/data/weather/fr/newyork or https://weatherdbi.herokuapp.com/data/weather/newyork?lang=fr

DB-db-dron commented 2 years ago

This is a very good suggestion that will be worked on. I would like to know what problem does it solve?

Currently work is in progress for temperature, precipitation and wind forecast. Also we have to move the API to a new hosting because of some problems (mentioned in other issues). So, the language feature may not be added soon.

muzzwood commented 2 years ago

Hi,

I've used your API endpoint for a weather widget on a CMS dashboard. The problem is the CMS can be in any language and it doesn't make sense for the weather data to be in English if everything else isn't. I think this is the only extra feature we need. So in the meantime, I might make it work with openweather as well for multilingual situations. Your API is preferable though due to not needing authentication.

Keep up the good work! :)

DB-db-dron commented 2 years ago

You can leave your email in the contact form in our website, if you wish to be informed when there is a new release. I received your message there, but you didn't provide any email. It is totally up to you, not compulsory. 🙂

rogadev commented 2 years ago

There are some very good translation API's out there that I might encourage you to work with, @muzzwood. This way you're still using the same dataset and translating it as needed, on-demand. Rather than the whole API being restructured to support it. But certainly at some point I'm sure multiple language support build in native to the API would be a great feature. Meanwhile, I might recommend a translation API. Especially considering it's just a few words, not long and complicated phrases.

DB-db-dron commented 2 years ago

@rogadev I will look into it. Thanks for sharing your suggestion.