Localizable Event Timer

This commit is contained in:
Lugiad 2024-12-05 01:49:17 +01:00 committed by GitHub
parent 757fe1a17c
commit 1bc3b68c24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,7 @@ export class TimedEventDisplay extends Phaser.GameObjects.Container {
const secs = Math.round(diff % 6e4 / 1e3);
// Return formatted string
return "Event Ends in : " + z(days) + "d " + z(hours) + "h " + z(mins) + "m " + z(secs) + "s";
return i18next.t("eventTimer", {days: z(days), hours: z(hours), mins: z(mins), secs: z(secs)});
}
updateCountdown() {