fix: use stricter localizaiton

This commit is contained in:
tresabhi committed 2024-12-19 11:04:48 -06:00
1 parent 768c420ae4
commit f396d6c4a1
16 files changed
+101 -36

No files matched your search

+5 -1
View File
@@ -24,7 +24,11 @@ export const inactiveCommand = new Promise<CommandRegistry>((resolve) => {
return option
.setName('threshold')
.setNameLocalizations(
localizationObject('bot.commands.inactive.options.threshold'),
localizationObject(
'bot.commands.inactive.options.threshold',
undefined,
true,
),
)
.setDescription(
translate('bot.commands.inactive.options.threshold.description'),
@@ -63,6 +63,8 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.limit',
undefined,
true,
),
)
.setDescription(
@@ -87,6 +89,8 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.season',
undefined,
true,
),
)
.setDescription(
@@ -148,6 +152,8 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.league',
undefined,
true,
),
)
.setDescription(
+10 -2
View File
@@ -36,7 +36,11 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
option
.setName(t`bot.commands.research.options.target_tank`)
.setNameLocalizations(
localizationObject('bot.commands.research.options.target_tank'),
localizationObject(
'bot.commands.research.options.target_tank',
undefined,
true,
),
)
.setDescription(
t`bot.commands.research.options.target_tank.description`,
@@ -53,7 +57,11 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
option
.setName(t`bot.commands.research.options.starting_tank`)
.setNameLocalizations(
localizationObject('bot.commands.research.options.starting_tank'),
localizationObject(
'bot.commands.research.options.starting_tank',
undefined,
true,
),
)
.setDescription(
t`bot.commands.research.options.starting_tank.description`,
+5 -1
View File
@@ -24,7 +24,11 @@ export const searchClansCommand = new Promise<CommandRegistry>((resolve) => {
return option
.setName(t`bot.commands.search_clans.options.limit`)
.setNameLocalizations(
localizationObject('bot.commands.search_clans.options.limit'),
localizationObject(
'bot.commands.search_clans.options.limit',
undefined,
true,
),
)
.setDescription(
translate('bot.commands.search_clans.options.limit.description', [
+5 -1
View File
@@ -29,7 +29,11 @@ export const searchPlayersCommand = new Promise<CommandRegistry>((resolve) => {
option
.setName(t`bot.commands.search_players.options.limit`)
.setNameLocalizations(
localizationObject('bot.commands.search_players.options.limit'),
localizationObject(
'bot.commands.search_players.options.limit',
undefined,
true,
),
)
.setDescription(
translate('bot.commands.search_players.options.limit.description', [