Repository: darkskyapp/forecast-io-translations
Pull request #123 (2017-03-09 16:09:17)

Added thunderstorm and next-week properties to Turkish


Patch:
diff --git a/lib/lang/tr.js b/lib/lang/tr.js
index 5f4d6bc..b1f997d 100644
--- a/lib/lang/tr.js
+++ b/lib/lang/tr.js
@@ -42,6 +42,8 @@ module.exports = require("../template")({
   "light-snow": "hafif kar",
   "medium-snow": "kar",
   "heavy-snow": "yoğun kar",
+  "possible-thunderstorm": "fırtına olasılığı",
+  "thunderstorm": "fırtına",
   "light-wind": "hafif rüzgar",
   "medium-wind": "rüzgar",
   "heavy-wind": "yoğun rüzgar",
@@ -69,13 +71,20 @@ module.exports = require("../template")({
   "night": "gece",
   "today": "bugün",
   "tomorrow": "yarın",
-  "sunday": "pazar",
-  "monday": "pazartesi",
-  "tuesday": "salı",
-  "wednesday": "çarşamba",
-  "thursday": "perşembe",
-  "friday": "cuma",
-  "saturday": "cumartesi",
+  "sunday": "Pazar",
+  "monday": "Pazartesi",
+  "tuesday": "Salı",
+  "wednesday": "Çarşamba",
+  "thursday": "Perşembe",
+  "friday": "Cuma",
+  "saturday": "Cumartesi",
+  "next-sunday": "Haftaya Pazar'a kadar",
+  "next-monday": "Haftaya Pazartesi'ye kadar",
+  "next-tuesday": "Haftaya Salı'ya kadar",
+  "next-wednesday": "Haftaya Çarşamba'ya kadar",
+  "next-thursday": "Haftaya Perşembe'ye kadar",
+  "next-friday": "Haftaya Cuma'ya kadar",
+  "next-saturday": "Haftaya Cumartesi'ye kadar",
   "minutes": "$1 dk.",
   "fahrenheit": "$1\u00B0F",
   "celsius": "$1\u00B0C",
diff --git a/package.json b/package.json
index 022d117..b6e6a17 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "forecast-io-translations",
-  "version": "1.31.0",
+  "version": "1.30.1",
   "description": "translate the Dark Sky API into any language",
   "author": {
     "name": "The Dark Sky Company",


Test patch:
diff --git a/test_cases/en.json b/test_cases/en.json
index 9050e1a..f2f3a18 100644
--- a/test_cases/en.json
+++ b/test_cases/en.json
@@ -222,9 +222,9 @@
         ["fahrenheit", 15],
         "friday"]]],
 
-  "Light snow on Tuesday and next Wednesday, with temperatures falling to 0\u00B0C on Sunday.":
+  "Light snow on Tuesday and Wednesday, with temperatures falling to 0\u00B0C on Sunday.":
     ["sentence", ["with",
-      ["during", "light-snow", ["and", "tuesday", "next-wednesday"]],
+      ["during", "light-snow", ["and", "tuesday", "wednesday"]],
       ["temperatures-falling",
         ["celsius", 0],
         "sunday"]]],
diff --git a/test_cases/tr.json b/test_cases/tr.json
index fe419d0..356625a 100644
--- a/test_cases/tr.json
+++ b/test_cases/tr.json
@@ -214,7 +214,7 @@
   "Öğleden sonra kar (1 cm.'nin altında).":
     ["sentence", ["during",
       ["parenthetical","medium-snow",
-	  ["less-than", ["centimeters", 1]]],"afternoon"
+    ["less-than", ["centimeters", 1]]],"afternoon"
       ]],
 
 
@@ -223,31 +223,31 @@
       ["for-week","no-precipitation"],
       ["temperatures-peaking",
         ["fahrenheit", 85],
-		      "tomorrow"
+          "tomorrow"
         ]]],
 
-  "Hafta sonu karışık yağış, perşembe sıcaklık 32\u00B0C'ye yükseliyor.":
+  "Hafta sonu karışık yağış, Perşembe sıcaklık 32\u00B0C'ye yükseliyor.":
     ["sentence", ["with",
       ["over-weekend","mixed-precipitation"],
       ["temperatures-rising",
         ["celsius", 32],
         "thursday"]]],
 
-  "Pazartesi çok hafif yağmur, cuma hava soğuyor ve sıcaklık 15\u00B0F'ye düşüyor.":
+  "Pazartesi çok hafif yağmur, Cuma hava soğuyor ve sıcaklık 15\u00B0F'ye düşüyor.":
     ["sentence", ["with",
       ["during", "very-light-rain" ,"monday"],
       ["temperatures-valleying",
         ["fahrenheit", 15],
         "friday"]]],
 
-  "Salı ve çarşamba hafif kar, pazar sıcaklık 0\u00B0C'ye düşüyor.":
+  "Salı ve Çarşamba hafif kar, Pazar sıcaklık 0\u00B0C'ye düşüyor.":
     ["sentence", ["with",
       ["during", "light-snow",["and", "tuesday", "wednesday"]],
       ["temperatures-falling",
         ["celsius", 0],
         "sunday"]]],
 
-  "Bugün ile cumartesi arası yağış, pazartesi yüksek sıcaklık 100\u00B0F.":
+  "Bugün ile Cumartesi arası yağış, Pazartesi yüksek sıcaklık 100\u00B0F.":
     ["sentence", ["with",
       ["during",
         "medium-precipitation",
@@ -265,5 +265,8 @@
     ["title", ["parenthetical", "heavy-snow", ["inches", ["range", 1, 3]]]],
 
   "Yoğun kar (3\u20135 cm.)":
-    ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]]
+    ["title", ["parenthetical", "heavy-snow", ["centimeters", ["range", 3, 5]]]],
+
+  "Haftaya Çarşamba'ya kadar yoğun yağmur":
+    ["during", "heavy-rain", "next-wednesday"]
 }
diff --git a/test_cases/x-pig-latin.json b/test_cases/x-pig-latin.json
index 45d0340..19657e5 100644
--- a/test_cases/x-pig-latin.json
+++ b/test_cases/x-pig-latin.json
@@ -222,9 +222,9 @@
         ["fahrenheit", 15],
         "friday"]]],
 
-  "Ightlay owsnay onway uesdaytay andway extnay ednesdayway, ithway emperaturestay allingfay otay 0\u00B0C onway undaysay.":
+  "Ightlay owsnay onway uesdaytay andway ednesdayway, ithway emperaturestay allingfay otay 0\u00B0C onway undaysay.":
     ["sentence", ["with",
-      ["during", "light-snow", ["and", "tuesday", "next-wednesday"]],
+      ["during", "light-snow", ["and", "tuesday", "wednesday"]],
       ["temperatures-falling",
         ["celsius", 0],
         "sunday"]]],