feat(translations): added translation support to weather visibility

This commit is contained in:
David Ralph 2021-06-17 13:08:04 +01:00
parent b0da5cfa75
commit cad3f53140
10 changed files with 19 additions and 10 deletions

View File

@ -170,7 +170,7 @@ export default class Weather extends React.PureComponent {
{enabled('humidity') ? <span className='loc'><br/><WiHumidity/>{this.state.weather.humidity}%</span> : null}
{enabled('windspeed') ? <span className='loc'><br/><WiWindy/>{this.state.weather.wind_speed}<span className='minmax'> m/s</span> {enabled('windDirection') ? <WindDirectionIcon degrees={this.state.weather.wind_degrees}/> : null}</span> : null}
{enabled('cloudiness') ? <span className='loc'><br/><WiCloud/>{this.state.weather.cloudiness}%</span> : null}
{enabled('visibility') ? <span className='loc'><br/>{this.state.weather.visibility} meters</span> : null}
{enabled('visibility') ? <span className='loc'><br/>{this.state.weather.visibility} {window.language.widgets.weather.meters}</span> : null}
{enabled('atmosphericpressure') ? <span className='loc'><br/><WiBarometer/>{this.state.weather.pressure}<span className='minmax'> hPa</span></span> : null}
<br/>
{enabled('showlocation') ? <span className='loc'>{this.state.location}</span> : null}

View File

@ -30,7 +30,8 @@
"week": "Kalenderwoche"
},
"weather": {
"not_found": "Nicht gefunden"
"not_found": "Nicht gefunden",
"meters": "Meter"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "metres"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "meters"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Semana"
},
"weather": {
"not_found": "No encontrado"
"not_found": "No encontrado",
"meters": "metros"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Semaine"
},
"weather": {
"not_found": "Pas trouvé"
"not_found": "Pas trouvé",
"meters": "mètres"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "meter"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "meter"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "метры"
},
"navbar": {
"tooltips": {

View File

@ -30,7 +30,8 @@
"week": "Week"
},
"weather": {
"not_found": "Not Found"
"not_found": "Not Found",
"meters": "meters"
},
"navbar": {
"tooltips": {