diff --git a/lib/lang/it.js b/lib/lang/it.js index aa159246..53aed7f0 100644 --- a/lib/lang/it.js +++ b/lib/lang/it.js @@ -15,10 +15,10 @@ function join_with_shared_prefix(a, b, joiner) { } function strip_prefix(period) { - if (period.slice(0) === "in serata") return "sera"; - if (period.slice(0) === "in mattinata") return "mattina"; - if (period.slice(0,6) === "nella ") return period.slice(6); - if (period.slice(0,4) === "nel ") return period.slice(4); + if(period === "in serata") return "sera"; + if(period === "in mattinata") return "mattina"; + if(period.slice(0,6) === "nella ") return period.slice(6); + if(period.slice(0,4) === "nel ") return period.slice(4); return period; } diff --git a/package.json b/package.json index 5398884b..c2a64607 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "forecast-io-translations", - "version": "1.6.1", + "version": "1.7.0", "description": "translate the Forecast API into any language", "author": { "name": "The Dark Sky Company", @@ -37,6 +37,10 @@ "name": "Pamela Ocampo", "email": "pamela.ocampo@gmail.com", "web": "https://github.com/pamo" + }, + { + "name": "Lukino2000", + "web": "https://github.com/Lukino2000" } ], "repository": {