darkskyapp / translations Goto Github PK
View Code? Open in Web Editor NEWtranslate Dark Sky API summaries into any language
License: BSD 2-Clause "Simplified" License
translate Dark Sky API summaries into any language
License: BSD 2-Clause "Simplified" License
Here you are first version of pl
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Croatian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Slovenian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
Right now, our API generates the nouns like the following as input to the translations module:
today-morning
monday
medium-rain
And so on.
Classification of these nouns may vary by language. For example, Swedish has much more specific terms for snow than English does, and it is inappropriate to use the English classifications in that language.
As such, we should break down nouns by category, and should create predicates that allow one to customize the predicates as appropriate for each language.
I havn't yet generated a complete list, but a few things that we'll need to do:
today-morning
, later-today-morning
, today-afternoon
, later-today-afternoon
, today-evening
, later-today-evening
, today-night
, later-today-night
, tomorrow-morning
, tomorrow-afternoon
, tomorrow-evening
, tomorrow-night
, morning
, afternoon
, evening
, night
, today
, tomorrow
, sunday
, monday
, tuesday
, wednesday
, thursday
, friday
, saturday
with (timestamp then now)
. then
should be a JavaScript Date object representing the time of the target. now
should be a JavaScript Date object representing the current time, or null if the summary is not a forecast summary. (That is, is an daily.data[x].summary
or a hourly.summary
on a time machine request.) (Additionally, there's a bug in the current English summaries to fix: if we're referring to the day a week from today, instead of saying the day's name, we should say "next X", instead.)light-wind
, medium-wind
, heavy-wind
with (wind wind-speed wind-direction)
. In English, this would be defined as follows:"wind": function(speed, direction) {
return wind_speed < 25.0 ? "breezy":
wind_speed < 38.5 ? "windy":
"dangerously windy";
}
Since f40f534
1) translation language x-pig-latin should translate ["sentence",["with",["during","medium-precipitation",["through","today","saturday"]],["temperatures-peaking",["fahrenheit",100],"monday"]]] to "Ecipitationpray odaytay oughthray aturdaysay, ithway emperaturestay eakingpay atway 100°F onway ondaymay.":
AssertionError: 'Ecipitationpray odaytay oughthray extnay aturdaysay, ithway emperaturestay eakingpay atway 100°F onway ondaymay.' === 'Ecipitationpray odaytay oughthray aturdaysay, ithway emperaturestay eakingpay atway 100°F onway ondaymay.'
+ expected - actual
-Ecipitationpray odaytay oughthray extnay aturdaysay, ithway emperaturestay eakingpay atway 100°F onway ondaymay.
+Ecipitationpray odaytay oughthray aturdaysay, ithway emperaturestay eakingpay atway 100°F onway ondaymay.
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Ukrainian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
Since I'm no meteorologist, is it possible to define rain in more physical/technical way to find the right translation?
E.g.: 'light-wind': 0-10 km/h, 'medium-wind': 11-50 km/h
or 'very-light-rain': 0.1 - 0.4 mm in 10 minutes or an hour
would help a lot to find the right termini technici.
Greetings, Mike
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Portuguese. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
The two translations have a function time2, which changes "tomorrow-afternoon" ("завтра днем" [ru], "завтра вдень" [uk]) to "tomorrow-morning" ("завтрашнего утра" [ru], "завтрашнього ранку" [uk]). Here should "завтрашнего дня" [ru], "завтрашнього дня" [uk] be.
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Russian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to German. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
@TheMikeGraz A user sent us a complaint about a few of the translations, and I wanted to run them by you before I made a patch.
["sentence", ["starting", "light-rain", "afternoon"]]
) translates to "In Nachmittag leichter Regen." but should translate to "Am Nachmittag leichter Regen.", instead.["sentence", ["until", "light-rain", "evening"]]
) translates to "Leichter Regen bis Abend." but should translate to "Leichter Regen bis zum Abend."["sentence", ["until-starting-again", "very-light-rain", "afternoon", "night"]]
) translates to "Nieselregen bis zum Nachmittag und wieder Nacht." but should translate to "Nieselregen bis zum Nachmittag und in der Nacht."Are each of his proposed translation changes correct? I have a patch that incorporates them that I can apply if so. (If you'd like to look at it first, I can apply them to a branch.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Cornish. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Tetum. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Greek. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
A user writes, there is an error in the German translation. The english summary "Drizzle starting in the evening." is translated to "In Abend Nieselregen" where it should be "Am Abend Nieselregen."
I would love to see this fixed, but I don't speak German. Could somebody who does make the appropriate changes?
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Czech. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to simplified Chinese. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Bosnian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Slovak. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Belarusian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to traditional Chinese. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Icelandic. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
A Dark Sky API customer noted that this summary is poor: "Bruine demain, avec des températures atteignant 24°C jeudi." (Translation: "Drizzle tomorrow, with temperatures bottoming out at 24°C on Thursday.")
They recommend using this instead: "Bruine demain, avec des températures maximales atteignant 24°C jeudi." (Translation: "Drizzle tomorrow, with high temperatures bottoming out at 24°C on Thursday.")
This could be fixed across the board (e.g. in all languages) to make the summaries more precise.
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Finnish. (Information is available in the README, and examples are visible in /lib/lang/en.js and /test_cases/en.js.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Polish. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Azerbaijani. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
There is standard name variants for (very)(light) rains in russian that depends on "mm/hour":
http://www.meteoinfo.ru/forcterminology/
Can you give mm/hour values for very-light-rain, light-rain, etc?
I have everything installed and ready to start translating to Romanian, npm test is ok, just need a little assistance.
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Italian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to French. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Dutch. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Turkish. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
The term "breezy" does not mean "light wind" (http://www.merriam-webster.com/dictionary/breezy), rather the opposite.
I'm not picky about language but have noticed that in translation (at least to Polish) it actually gets translated that way which kind of defeats the purpose. The forecast says "light wind" in Polish and we get branches falling down.
The problem does not reside in the Polish translation, though. There's no "breezy" in any place of the Polish translation and as I'm not sure how the whole process goes I've decided to report it here.
Or I had it wrong and the simply the wind prediction is off for my neck of woods?
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Indonesian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Catalan. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
Hi! I wanna contribute to Spanish translations. How would I get started? I've begun es.json by copying en.json and the keys.
pamo@ddf1ebb
Should I continue doing this? How would change en.js to match es.js?
We received the following comments from a developer using the API:
The following two sentences have minor grammatical problems:
- Lichte regen vandaag tot op zondag met temperaturen stijgend tot 19°C op zondag
- Lichte regen morgen tot van maandag met temperaturen stijgend tot 16°C op maandag.
Literally translated is:
- Light rain today till up Sunday with temperatures increasing to 19°C on Sunday.
- Light rain tomorrow till from Monday with temperatures increasing to 16°C on Monday.
A better sentence would be:
- Lichte regen vandaag t/m zondag met temperaturen stijgend tot 19°C op zondag
- Lichte regen morgen tot maandag met temperaturen stijgend tot 16°C op maandag.
I believe the existing translation is from @basvdijk and @realjax... any thoughts on this?
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Swedish. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Serbian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Estonian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Arabic. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Spanish. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
next-hour-forecast-status
unavailable
temporarily-unavailable
partially-unavailable
station-offline
station-incomplete
Add support for these properties to Hungarian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Bulgarian. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
We received this question from a German user:
nice website with great functionality. I tried the german version out of
curiosity and came upon the word
"Fällung" for precipitation. I have never heard it used in this
context before. I would suggest that "Niederschlag"
is a better translation and more commonly understood in this context.
Faellung is both a term used in chemistry for precipitation or has to do
with chopping trees.(If you look up precipation on Wikipedia and than look for that page in
other languages and select german it will take you to a page about
Niederschlag and talk about the weather.)
A user reported that we report this sentence:
Leichter Regen bis zum heute Nacht und morgen Nachmittag wieder.
It doesn't need the word "zum".
Would appreciate if you could add an example how to obtain a summary/ translation e.g. of the current weather condition.
In the near future, the API will begin generating the following new properties:
possible-thunderstorm
thunderstorm
next-sunday
next-monday
next-tuesday
next-wednesday
next-thursday
next-friday
next-saturday
Add support for these properties to Norwegian Bokmål. (Information is available in the README, and examples are visible in /lib/lang/en.js
and /test_cases/en.js
.)
I noticed this morning that the German translation was missing the following terms:
possible-very-light-precipitation
possible-light-precipitation
possible-very-light-rain
possible-light-rain
possible-very-light-sleet
possible-light-sleet
possible-very-light-snow
possible-light-snow
I added a quick hack to correct for this, simply copying the terminology from the related cases (e.g. very-light-precipitation
, light-precipitation
, etc.). Could somebody who is familiar with German fix these lines such that they indicate that the precipitation only has a chance of occurring?
"possible-very-light-precipitation": "leichter Niederschlag", // FIXME
"possible-light-precipitation": "leichter Niederschlag", // FIXME
"possible-very-light-rain": "Nieselregen", // FIXME
"possible-light-rain": "leichter Regen", // FIXME
"possible-very-light-sleet": "leichter Graupelregen", // FIXME
"possible-light-sleet": "leichter Graupelregen", // FIXME
"possible-very-light-snow": "leichter Schneefall", // FIXME
"possible-light-snow": "leichter Schneefall", // FIXME
Based on the possible-thunderstorm
term, my guess is that the translation would be the following, but I would appreciate confirmation/correction:
"possible-very-light-precipitation": "mögliche leichter Niederschlag",
"possible-light-precipitation": "mögliche leichter Niederschlag",
"possible-very-light-rain": "mögliche Nieselregen",
"possible-light-rain": "mögliche leichter Regen",
"possible-very-light-sleet": "mögliche leichter Graupelregen",
"possible-light-sleet": "mögliche leichter Graupelregen",
"possible-very-light-snow": "mögliche leichter Schneefall",
"possible-light-snow": "mögliche leichter Schneefall",
Thanks!
(Tagging @jacbz @mrkcohen @TheMikeGraz as they previously contributed to this translation.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.