From cad3f531403bb1016f732ebdaf6b042771c03612 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Thu, 17 Jun 2021 13:08:04 +0100 Subject: [PATCH] feat(translations): added translation support to weather visibility --- src/components/widgets/weather/Weather.jsx | 2 +- src/translations/de_DE.json | 3 ++- src/translations/en_GB.json | 3 ++- src/translations/en_US.json | 3 ++- src/translations/es.json | 3 ++- src/translations/fr.json | 3 ++- src/translations/nl.json | 3 ++- src/translations/no.json | 3 ++- src/translations/ru.json | 3 ++- src/translations/zh_CN.json | 3 ++- 10 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/components/widgets/weather/Weather.jsx b/src/components/widgets/weather/Weather.jsx index 8c45c5e3..646b5564 100644 --- a/src/components/widgets/weather/Weather.jsx +++ b/src/components/widgets/weather/Weather.jsx @@ -170,7 +170,7 @@ export default class Weather extends React.PureComponent { {enabled('humidity') ?
{this.state.weather.humidity}%
: null} {enabled('windspeed') ?
{this.state.weather.wind_speed} m/s {enabled('windDirection') ? : null}
: null} {enabled('cloudiness') ?
{this.state.weather.cloudiness}%
: null} - {enabled('visibility') ?
{this.state.weather.visibility} meters
: null} + {enabled('visibility') ?
{this.state.weather.visibility} {window.language.widgets.weather.meters}
: null} {enabled('atmosphericpressure') ?
{this.state.weather.pressure} hPa
: null}
{enabled('showlocation') ? {this.state.location} : null} diff --git a/src/translations/de_DE.json b/src/translations/de_DE.json index 3421ef69..36c3dfed 100644 --- a/src/translations/de_DE.json +++ b/src/translations/de_DE.json @@ -30,7 +30,8 @@ "week": "Kalenderwoche" }, "weather": { - "not_found": "Nicht gefunden" + "not_found": "Nicht gefunden", + "meters": "Meter" }, "navbar": { "tooltips": { diff --git a/src/translations/en_GB.json b/src/translations/en_GB.json index 48e8a9d5..ad43cfb3 100644 --- a/src/translations/en_GB.json +++ b/src/translations/en_GB.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "metres" }, "navbar": { "tooltips": { diff --git a/src/translations/en_US.json b/src/translations/en_US.json index 0d685398..3ef42bd8 100644 --- a/src/translations/en_US.json +++ b/src/translations/en_US.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "meters" }, "navbar": { "tooltips": { diff --git a/src/translations/es.json b/src/translations/es.json index ff55d1a5..010745d7 100644 --- a/src/translations/es.json +++ b/src/translations/es.json @@ -30,7 +30,8 @@ "week": "Semana" }, "weather": { - "not_found": "No encontrado" + "not_found": "No encontrado", + "meters": "metros" }, "navbar": { "tooltips": { diff --git a/src/translations/fr.json b/src/translations/fr.json index ede2cfd3..a80376e8 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -30,7 +30,8 @@ "week": "Semaine" }, "weather": { - "not_found": "Pas trouvé" + "not_found": "Pas trouvé", + "meters": "mètres" }, "navbar": { "tooltips": { diff --git a/src/translations/nl.json b/src/translations/nl.json index 01a43f22..eb15853a 100644 --- a/src/translations/nl.json +++ b/src/translations/nl.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "meter" }, "navbar": { "tooltips": { diff --git a/src/translations/no.json b/src/translations/no.json index 6f98ff03..9abad357 100644 --- a/src/translations/no.json +++ b/src/translations/no.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "meter" }, "navbar": { "tooltips": { diff --git a/src/translations/ru.json b/src/translations/ru.json index 987ac0b4..f8ad9a69 100644 --- a/src/translations/ru.json +++ b/src/translations/ru.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "метры" }, "navbar": { "tooltips": { diff --git a/src/translations/zh_CN.json b/src/translations/zh_CN.json index 21859be9..d350befa 100644 --- a/src/translations/zh_CN.json +++ b/src/translations/zh_CN.json @@ -30,7 +30,8 @@ "week": "Week" }, "weather": { - "not_found": "Not Found" + "not_found": "Not Found", + "meters": "meters" }, "navbar": { "tooltips": {