From 8470886a8607f99fa1445716cb5b61d2fda40713 Mon Sep 17 00:00:00 2001 From: Antoniya Statelova Date: Thu, 12 Dec 2019 11:19:01 -0500 Subject: [PATCH] v2.15.0 Add wording for explaining unavailable radar data --- lib/lang/bg.js | 2 ++ lib/lang/en.js | 2 ++ package.json | 2 +- test_cases/bg.json | 4 +++- test_cases/en.json | 5 ++++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/lang/bg.js b/lib/lang/bg.js index ecce3999..3a270ebe 100644 --- a/lib/lang/bg.js +++ b/lib/lang/bg.js @@ -167,4 +167,6 @@ module.exports = { return str; }, + "unavailable-radar": "Прогнозата за идния час временно не е на разположение поради $1.", + "station-offline": "липса на информация от всички близки станции", }; diff --git a/lib/lang/en.js b/lib/lang/en.js index d89c1c66..58c5c770 100644 --- a/lib/lang/en.js +++ b/lib/lang/en.js @@ -163,4 +163,6 @@ module.exports = { return str; }, + "unavailable-radar": "Next hour forecasts are temporarily unavailable due to $1.", + "station-offline": "all nearby radar stations being offline", }; diff --git a/package.json b/package.json index 6f9deca8..2e9eb26c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "translations", - "version": "2.14.4", + "version": "2.15.0", "description": "translate the Dark Sky API into any language", "author": { "name": "The Dark Sky Company", diff --git a/test_cases/bg.json b/test_cases/bg.json index cffc13ea..96a26f8d 100644 --- a/test_cases/bg.json +++ b/test_cases/bg.json @@ -264,6 +264,8 @@ ["title", "possible-thunderstorm"], "Силен Дъжд и Гръмотевична Буря": - ["title", ["and", "heavy-rain", "thunderstorm"]] + ["title", ["and", "heavy-rain", "thunderstorm"]], + "Прогнозата за идния час временно не е на разположение поради липса на информация от всички близки станции.": + ["sentence",["unavailable-radar", "station-offline"]] } diff --git a/test_cases/en.json b/test_cases/en.json index 1c6fad7e..7dfa2d94 100644 --- a/test_cases/en.json +++ b/test_cases/en.json @@ -257,5 +257,8 @@ "Drizzle starting in < 1 min.": ["sentence", - ["starting-in", "very-light-rain", ["less-than", ["minutes", 1]]]] + ["starting-in", "very-light-rain", ["less-than", ["minutes", 1]]]], + + "Next hour forecasts are temporarily unavailable due to all nearby radar stations being offline.": + ["sentence",["unavailable-radar", "station-offline"]] }