diff --git a/src/helpers/localization_manager.ts b/src/helpers/localization_manager.ts index 484b73e71..c57c7492b 100644 --- a/src/helpers/localization_manager.ts +++ b/src/helpers/localization_manager.ts @@ -69,7 +69,7 @@ export class LocalizationManager { localeOrGuildID: string, phrase: string, count: number, - replace: { [key: string]: string } = {}, + replace: { [key: string]: string } | undefined = undefined, ): string { if (!this.hasKey(`${phrase}_one`) || !this.hasKey(`${phrase}_other`)) { logger.error(`Missing translation for plural phrase: ${phrase}`); @@ -119,7 +119,7 @@ export class LocalizationManager { locale: LocaleType, phrase: string, count: number, - replace: { [key: string]: string } = {}, + replace: { [key: string]: string } | undefined = undefined, ): string { return this.internalLocalizer.t(phrase, { lng: locale, diff --git a/src/structures/game_session.ts b/src/structures/game_session.ts index add28eead..6f25cedc0 100644 --- a/src/structures/game_session.ts +++ b/src/structures/game_session.ts @@ -1002,7 +1002,6 @@ export default class GameSession extends Session { this.guildID, "misc.plural.suddenDeathEnd", this.roundsPlayed - 1, - { count: String(this.roundsPlayed - 1) }, ) : this.scoreboard.getWinnerMessage( State.getGuildLocale(this.guildID),