Browse Source

feat: Added i18n for ommited logs message

master
Konstantinos Kamaropoulos 5 years ago
parent
commit
8f73a070bb
  1. 3
      src/app/map/map.component.html
  2. 6
      src/translations/el-GR.json
  3. 6
      src/translations/en-US.json

3
src/app/map/map.component.html

@ -3,6 +3,7 @@
<div #mapContainer id="map"></div>
</div>
<div *ngIf="displayedPoints" class="displayingOf">
Displaying last {{ displayedPoints }} records (ommited {{ ommitedPoints }} data points)
{{ 'DisplayingLast' | translate }} {{ displayedPoints }} {{ 'records' | translate }} ({{ 'ommited' | translate }}
{{ ommitedPoints }} {{ 'dataPoints' | translate }})
</div>
</div>

6
src/translations/el-GR.json

@ -7,5 +7,9 @@
"Map | Aiolos": "Χάρτης | Αίολος",
"Chart | Aiolos": "Γράφημα | Αίολος",
"ChartTitle": "Μετρήσεις Αισθητήρων",
"Live Update": "Ζωντανή Ενημέρωση"
"Live Update": "Ζωντανή Ενημέρωση",
"DisplayingLast": "Γίνεται προβολή των τελευταίων",
"records": "εγγραφών",
"ommited": "έχουν αποκρυφθεί",
"dataPoints": "στοιχεία"
}

6
src/translations/en-US.json

@ -7,5 +7,9 @@
"Map | Aiolos": "Map | Aiolos",
"Chart | Aiolos": "Chart | Aiolos",
"ChartTitle": "Sensor Readings",
"Live Update": "Live Update"
"Live Update": "Live Update",
"DisplayingLast": "Displaying last",
"records": "records",
"ommited": "ommited",
"dataPoints": "data points"
}

Loading…
Cancel
Save