diff --git a/lib/lang/de.js b/lib/lang/de.js index ce6de7d5..8487e8bd 100644 --- a/lib/lang/de.js +++ b/lib/lang/de.js @@ -151,14 +151,21 @@ module.exports = { return condition + " von " + a + " " + until_time(b); }, "during": function(condition, time) { - if(this[1] === "and") + if(this[1] === "and") { return time + " " + condition; + } - if(this[1] === "with") + if(this[1] === "with") { return condition + " " + time; + } - if(time === "Nacht") + if(time === "Nacht") { return condition + " in der " + time; + } + + if(time === "heute" || time === "morgen") { + return condition + " " + time; + } return condition + " am " + time; }, diff --git a/test_cases/de.json b/test_cases/de.json index 00610b1c..b88d31a9 100644 --- a/test_cases/de.json +++ b/test_cases/de.json @@ -226,5 +226,11 @@ ["sentence", ["until-starting-again", "very-light-rain", "afternoon", "night"]], "Gewitter möglich bis am nächsten Mittwoch.": - ["sentence", ["until", "possible-thunderstorm", "next-wednesday"]] + ["sentence", ["until", "possible-thunderstorm", "next-wednesday"]], + + "Leichter Regen heute.": + ["sentence", ["during", "light-rain", "today"]], + + "Leichter Regen morgen.": + ["sentence", ["during", "light-rain", "tomorrow"]] }