Rename game to edition in the UI

Much clearer to say Classic vs Special Edition instead of "skyrim" vs "skyrimspecialedition".
This commit is contained in:
2022-09-06 15:15:27 -04:00
parent 941eb7b08f
commit eebc43fbee
4 changed files with 29 additions and 5 deletions

8
lib/games.ts Normal file
View File

@@ -0,0 +1,8 @@
export type GameName = "skyrim" | "skyrimspecialedition";
// Translates gameName (e.g. "skyrim" or "skyrimspecialedition") to edition name which is displayed in the
// UI ("Classic" or "Special Edition").
export const editionNames: Record<GameName, string> = {
skyrim: 'Classic',
skyrimspecialedition: 'Special Edition',
};