From 60b2e6271338dd6e6737f5956113719da27c2e47 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 14 Dec 2024 13:41:02 -0600 Subject: [PATCH] fix: /stats filters --- .../bot/src/core/discord/addFilterOptions.ts | 20 ++++++++----------- packages/core/lang/en-US.json | 12 +++++------ 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/packages/bot/src/core/discord/addFilterOptions.ts b/packages/bot/src/core/discord/addFilterOptions.ts index 1daabbaa3..ad8ad5fb6 100644 --- a/packages/bot/src/core/discord/addFilterOptions.ts +++ b/packages/bot/src/core/discord/addFilterOptions.ts @@ -50,17 +50,15 @@ export function addFilterOptions< .addStringOption((option) => addTierChoices(option).setRequired(false)) .addStringOption((option) => option - .setName(translate('bot.common.options.filters.tank_class')) + .setName(translate('bot.common.options.filters.class')) .setNameLocalizations( - localizationObject('bot.common.options.filters.tank_class'), + localizationObject('bot.common.options.filters.class'), ) .setDescription( - translate('bot.common.options.filters.tank_class.description'), + translate('bot.common.options.filters.class.description'), ) .setDescriptionLocalizations( - localizationObject( - 'bot.common.options.filters.tank_class.description', - ), + localizationObject('bot.common.options.filters.class.description'), ) .addChoices( ...TANK_CLASSES.map( @@ -78,17 +76,15 @@ export function addFilterOptions< ) .addStringOption((option) => option - .setName(translate('bot.common.options.filters.tree_type')) + .setName(translate('bot.common.options.filters.type')) .setNameLocalizations( - localizationObject('bot.common.options.filters.tree_type'), + localizationObject('bot.common.options.filters.type'), ) .setDescription( - translate('bot.common.options.filters.tree_type.description'), + translate('bot.common.options.filters.type.description'), ) .setDescriptionLocalizations( - localizationObject( - 'bot.common.options.filters.tree_type.description', - ), + localizationObject('bot.common.options.filters.type.description'), ) .addChoices( ...TANK_TYPES.map( diff --git a/packages/core/lang/en-US.json b/packages/core/lang/en-US.json index 57871c913..804560ee6 100644 --- a/packages/core/lang/en-US.json +++ b/packages/core/lang/en-US.json @@ -232,13 +232,13 @@ "$": "nation", "description": "Nation" }, - "tank_class": { - "$": "tank-class", - "description": "Tank class" + "class": { + "$": "class", + "description": "Class" }, - "tree_type": { - "$": "tree-type", - "description": "Tree type" + "type": { + "$": "type", + "description": "Type" } },