mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-25 19:19:16 +01:00
* [Dev] Enable Biome import sorting Additional changes: - Implement import aliases - Convert default exports to named exports - Remove relative imports * Apply changes * Misc fixes * Merge cleanup
18 lines
687 B
TypeScript
18 lines
687 B
TypeScript
import { GameMode } from "#app/game-mode";
|
|
import { GameModes } from "#enums/game-modes";
|
|
import { Unlockables } from "#enums/unlockables";
|
|
import i18next from "i18next";
|
|
|
|
export function getUnlockableName(unlockable: Unlockables) {
|
|
switch (unlockable) {
|
|
case Unlockables.ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.ENDLESS)} Mode`;
|
|
case Unlockables.MINI_BLACK_HOLE:
|
|
return i18next.t("modifierType:ModifierType.MINI_BLACK_HOLE.name");
|
|
case Unlockables.SPLICED_ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.SPLICED_ENDLESS)} Mode`;
|
|
case Unlockables.EVIOLITE:
|
|
return i18next.t("modifierType:ModifierType.EVIOLITE.name");
|
|
}
|
|
}
|