Fix menu-title of player-markers not translatable

This commit is contained in:
Lukas Rieger (Blue) 2024-03-20 22:05:38 +01:00
parent 9fca7b9361
commit b60b14372f
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -82,9 +82,13 @@ export default {
openMore(markerSet) {
this.menu.openPage(
this.menu.currentPage().id,
this.menu.currentPage().title + " > " + markerSet.label,
this.menu.currentPage().title + " > " + this.labelOf(markerSet),
{markerSet: markerSet}
)
},
labelOf(markerSet) {
if (markerSet.id === "bm-players") return this.$t("players.title");
return markerSet.label;
}
}
}