diff --git a/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts b/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts
index 1b1fe14..ce934aa 100644
--- a/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts
+++ b/static/src/app/statistic/campaign/campaign-player-detail/campaign-player-detail.component.ts
@@ -74,7 +74,9 @@ export class CampaignPlayerDetailComponent implements OnInit {
for (let i = 0; i < this.playerAttributeNameMap.length; i++) {
const attr = this.playerAttributeNameMap[i];
- this.graphData.push({key: attr.prop, label: attr.head});
+ this.translate.get(attr.head).subscribe((translated) => {
+ this.graphData.push({key: attr.prop, label: translated});
+ });
}
this.initDataArray();
diff --git a/static/src/app/statistic/campaign/highscore/highscore.component.html b/static/src/app/statistic/campaign/highscore/highscore.component.html
index 41b3c5e..6992cc8 100644
--- a/static/src/app/statistic/campaign/highscore/highscore.component.html
+++ b/static/src/app/statistic/campaign/highscore/highscore.component.html
@@ -2,14 +2,14 @@
- Name |
+ {{'stats.highscore.header.name' | translate}} |
{{element.name}}
@@ -36,7 +36,7 @@
+ matTooltip="{{attributeMap.head | translate}}">
|
{{element[attributeMap.prop]}} |
diff --git a/static/src/app/statistic/war/scoreboard/scoreboard.component.html b/static/src/app/statistic/war/scoreboard/scoreboard.component.html
index 9fc1427..ebd4e7b 100644
--- a/static/src/app/statistic/war/scoreboard/scoreboard.component.html
+++ b/static/src/app/statistic/war/scoreboard/scoreboard.component.html
@@ -7,7 +7,7 @@
class="mat-elevation-z8">
- {{tableHead[0].head}} |
+ {{tableHead[0].head | translate}} |
{{element.name}}
@@ -15,14 +15,14 @@
- {{tableHead[1].head}} |
+ {{tableHead[1].head | translate}} |
{{element.fraction === 'BLUFOR' ? fraction.BLUFOR : fraction.OPFOR}} |
+ matTooltip="{{column.head | translate}}">
|
{{element[column.prop]}} |
@@ -32,7 +32,7 @@
|
| | |