Repository: darkskyapp/forecast-io-translations (js)

Issue:
Support Thunderstorm and Next-Week Properties in Slovak
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`.)


Pull request description:
Added support for thunderstorm and next-week properties in Slovak (#111)
Fixes #111

Patch:
diff --git a/lib/lang/sk.js b/lib/lang/sk.js
index ccd25f3..bae9f29 100644
--- a/lib/lang/sk.js
+++ b/lib/lang/sk.js
@@ -50,6 +50,20 @@ function remove_prefix_and_use_genitive(a) {
       return "soboty";
     case "v nedeľu":
       return "nedele";
+    case "budúci pondelok":
+      return "budúceho pondelka";
+    case "budúci utorok":
+      return "budúceho utorka";
+    case "budúca streda":
+      return "budúcej stredy";
+    case "budúci štvrtok":
+      return "budúceho štvrtka";
+    case "budúci piatok":
+      return "budúceho piatka";
+    case "budúca sobota":
+      return "budúcej soboty";
+    case "budúca nedeľa":
+      return "budúcej nedele";
     default:
         return a;
   } 
@@ -110,6 +124,8 @@ module.exports = require("../template")({
   "light-snow": "slabé sneženie",
   "medium-snow": "sneženie",
   "heavy-snow": "vydatné sneženie",
+  "possible-thunderstorm": "možnosť búrok",
+  "thunderstorm": "búrky",
   "light-wind": "slabý vietor",
   "medium-wind": "veterno",
   "heavy-wind": "silný vietor",
@@ -144,6 +160,13 @@ module.exports = require("../template")({
   "thursday": "vo štvrtok",
   "friday": "v piatok",
   "saturday": "v sobotu",
+  "next-sunday": "budúcu nedeľu",
+  "next-monday": "budúci pondelok",
+  "next-tuesday": "budúci utorok",
+  "next-wednesday": "budúcu stredu",
+  "next-thursday": "budúci štvrtok",
+  "next-friday": "budúci piatok",
+  "next-saturday": "budúcu sobotu",
   "minutes": "$1 min.",
   "fahrenheit": "$1°F",
   "celsius": "$1°C",


Test patch:
diff --git a/test_cases/sk.json b/test_cases/sk.json
index f8fe6fb..b20c45b 100644
--- a/test_cases/sk.json
+++ b/test_cases/sk.json
@@ -228,9 +228,9 @@
         ["fahrenheit", 15],
         "friday"]]],
 
-  "V utorok a stredu slabé sneženie, v nedeľu s teplotami klesajúcimi k 0°C.":
+  "V utorok a budúcu stredu slabé sneženie, v nedeľu s teplotami klesajúcimi k 0°C.":
     ["sentence", ["with",
-      ["during", "light-snow", ["and", "tuesday", "wednesday"]],
+      ["during", "light-snow", ["and", "tuesday", "next-wednesday"]],
       ["temperatures-falling",
         ["celsius", 0],
         "sunday"]]],
@@ -253,5 +253,15 @@
     ["title", ["parenthetical", "heavy-snow", ["inches", ["range", 1, 3]]]],
 
   "Vydatné sneženie (3-5 cm)":
-    ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]]
+    ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]],
+
+    
+  "Možnosť búrok":
+    ["title", "possible-thunderstorm"],
+
+  "Vydatný dážď a búrky":
+    ["title", ["and", "heavy-rain", "thunderstorm"]],
+
+  "Búrky až do budúceho pondelka.":
+    ["sentence", ["until", "thunderstorm", "next-monday"]]
 }