Skip to content

Commit

Permalink
more translations for /texture
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 25, 2023
1 parent 4620212 commit 36b12b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 6 additions & 1 deletion lang/en-US/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
"not_found": "The command `%COMMAND%` doesn't exist!"
},
"texture": {
"not_found": "No results were found for %TEXTURENAME%. Have you made a typo?"
"failed_search": "Texture search failed!",
"too_short": "You need at least three characters to start a texture search!",
"no_results": {
"title": "No results found!",
"description": "No results were found for %TEXTURENAME%. Have you made a typo?"
}
},
"info": {
"title": "Hi, I'm CompliBot. I was made for the Faithful Discord servers.",
Expand Down
2 changes: 1 addition & 1 deletion src/events/guildCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
client.loadSlashCommands();

const embed = new EmbedBuilder()
.setTitle("Thanks for Inviting me")
.setTitle("Thanks for inviting me")
.setDescription("To get started, try to type `/` to see all available slash commands!");

guild.systemChannel?.send({ embeds: [embed] });
Expand Down
10 changes: 6 additions & 4 deletions src/helpers/functions/parseTextureName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default async function parseTextureName(
await interaction.ephemeralReply({
embeds: [
new EmbedBuilder()
.setTitle("Action failed!")
.setDescription("You need at least three characters to start a texture search!")
.setTitle(interaction.strings().command.texture.failed_search)
.setDescription(interaction.strings().command.texture.too_short)
.setColor(colors.red),
],
});
Expand All @@ -42,9 +42,11 @@ export default async function parseTextureName(
await interaction.ephemeralReply({
embeds: [
new EmbedBuilder()
.setTitle("No results found!")
.setTitle(interaction.strings().command.texture.no_results.title)
.setDescription(
interaction.strings().command.texture.not_found.replace("%TEXTURENAME%", `\`${name}\``),
interaction
.strings()
.command.texture.no_results.description.replace("%TEXTURENAME%", `\`${name}\``),
)
.setColor(colors.red),
],
Expand Down

0 comments on commit 36b12b7

Please sign in to comment.