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

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


Pull request description:
Add support for next-* and thunderstorms to German
Closes #95 

Patch:
diff --git a/lib/lang/de.js b/lib/lang/de.js
index b7999e9..d6718f6 100644
--- a/lib/lang/de.js
+++ b/lib/lang/de.js
@@ -38,6 +38,8 @@ module.exports = require("../template")({
   "light-snow": "leichter Schneefall",
   "medium-snow": "Schneefall",
   "heavy-snow": "starker Schneefall",
+  "possible-thunderstorm": "mögliche Gewitter",
+  "thunderstorm": "Gewitter",
   "light-wind": "leichter Wind",
   "medium-wind": "frische Brise",
   "heavy-wind": "Sturm",
@@ -68,10 +70,17 @@ module.exports = require("../template")({
   "sunday": "am Sonntag",
   "monday": "am Montag",
   "tuesday": "am Dienstag",
-  "wednesday": "am Mittwoch", 
+  "wednesday": "am Mittwoch",
   "thursday": "am Donnerstag",
   "friday": "am Freitag",
   "saturday": "am Samstag",
+  "next-sunday": "am nächsten Sonntag",
+  "next-monday": "am nächsten Montag",
+  "next-tuesday": "am nächsten Dienstag",
+  "next-wednesday": "am nächsten Mittwoch",
+  "next-thursday": "am nächsten Donnerstag",
+  "next-friday": "am nächsten Freitag",
+  "next-saturday": "am nächsten Samstag",
   "minutes": "$1 Min.",
   "fahrenheit": "$1\u00B0F",
   "celsius": "$1\u00B0C",
@@ -116,31 +125,31 @@ module.exports = require("../template")({
   "starting-continuing-until": function(condition, a, b) {
 	if (a === "Abend" && b === "Nacht")
 		return condition + " abends und nächtlich"
-	
+
     if(a === "Abend")
       a = "abends ";
-	 
+
 	 else if (a === "Vormittag")
-      a = "vormittags"; 	  
-	  
+      a = "vormittags";
+
 	 else if (a === "Mittag")
-      a = "mittags"; 
-	  
+      a = "mittags";
+
 	  else if (a === "Nachmittag")
-      a = "nachmittags"; 
+      a = "nachmittags";
 
     return condition + " von " + a + " " + until_time(b);
-  },  
+  },
   "during": function(condition, time) {
     if(this[1] === "and")
       return time + " " + condition;
 
     else if(this[1] === "with")
       return condition + " " + time;
-      
+
     else if(time === "Nacht")
-      return condition + " in der " + time; 
-	  
+      return condition + " in der " + time;
+
     else
       return condition + " am " + time;
   },


Test patch:
diff --git a/test_cases/de.json b/test_cases/de.json
index c32fa89..69efa7b 100644
--- a/test_cases/de.json
+++ b/test_cases/de.json
@@ -114,7 +114,7 @@
     ["sentence", ["during",
       "medium-snow",
       ["and", "later-today-evening", "tomorrow-morning"]]],
-  
+
   "Regenschauer bis zum späteren Vormittag und heute Abend wieder.":
     ["sentence", ["until-starting-again",
       "heavy-rain",
@@ -132,7 +132,7 @@
       "heavy-clouds",
       "morning",
       "evening"]],
-      
+
   "Am späteren Nachmittag leichter Graupelregen und morgen Vormittag Nebel.":
     ["sentence", ["and",
       ["during", "light-sleet", "later-today-afternoon"],
@@ -159,7 +159,7 @@
         "tomorrow-evening",
         "tomorrow-night"]]],
 
-  
+
   "Schneefall (5 Zoll) in der Nacht.":
     ["sentence", ["during",
       ["parenthetical", "medium-snow", ["inches", 5]],
@@ -169,7 +169,7 @@
     ["sentence", ["during",
       ["parenthetical", "light-snow", ["centimeters", 2]],
       "later-today-morning"]],
-  
+
   "Den ganzen Tag lang starker Schneefall (8 bis 12 Zoll).":
     ["sentence", ["for-day",
       ["parenthetical", "heavy-snow", ["inches", ["range", 8, 12]]]]],
@@ -192,7 +192,7 @@
       ["temperatures-rising",
         ["celsius", 32],
         "thursday"]]],
-  
+
   "Nieselregen heute mit einem Temperaturminimum von 15\u00B0F am Freitag.":
     ["sentence", ["with",
       ["during", "very-light-rain", "today"],
@@ -215,7 +215,7 @@
       ["temperatures-peaking",
         ["fahrenheit", 100],
         "monday"]]],
-	
+
   "Nachmittags leichter Regen.":
     ["sentence", ["starting", "light-rain", "afternoon"]],
 
@@ -223,5 +223,8 @@
     ["sentence", ["until", "light-rain", "evening"]],
 
   "Nieselregen bis zum Nachmittag und Nacht.":
-    ["sentence", ["until-starting-again", "very-light-rain", "afternoon", "night"]]
+    ["sentence", ["until-starting-again", "very-light-rain", "afternoon", "night"]],
+
+  "Mögliche Gewitter bis am nächsten Mittwoch.":
+    ["sentence", ["until", "possible-thunderstorm", "next-wednesday"]]
 }