Removed unused translations

This commit is contained in:
Renan LE CARO 2025-04-01 13:49:10 +02:00
parent de99dd9ba8
commit b2e6e3c9e4
10 changed files with 182 additions and 293 deletions

View file

@ -108,7 +108,7 @@ export function gameOver(title: string, intro: string) {
(u) => u.threshold > startTs && u.threshold < endTs,
);
if (unlockedItems.length) {
unlocksInfo += `<p>${t("gameOver.unlocked_count", { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
unlocksInfo += `<p>${t('gameOver.unlocked_count', { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
}
// Avoid the sad sound right as we restart a new games
@ -119,7 +119,6 @@ export function gameOver(title: string, intro: string) {
title,
content: [
`
${gameState.isCreativeModeRun ? `<p>${t("gameOver.test_run")}</p> ` : ""}
<p>${intro}</p>
<p>${t("gameOver.cumulative_total", { startTs, endTs })}</p>
${unlocksInfo}
@ -160,11 +159,11 @@ export function getHistograms(gameState: GameState) {
});
// Generate some histogram
if (!gameState.isCreativeModeRun)
localStorage.setItem(
"breakout_71_runs_history",
JSON.stringify(runsHistory, null, 2),
);
localStorage.setItem(
"breakout_71_runs_history",
JSON.stringify(runsHistory, null, 2),
);
const makeHistogram = (
title: string,