feat: locales #27

Merged
Anri merged 26 commits from lang into main 2022-07-22 11:46:48 +02:00
3 changed files with 4 additions and 5 deletions
Showing only changes of commit 3b1611ee3c - Show all commits

View file

@ -6,7 +6,7 @@ export default (interaction: Interaction, client: Client) => {
const command = client.commands.get(interaction.commandName); const command = client.commands.get(interaction.commandName);
if (!command) { if (!command) {
return interaction.reply({ return interaction.reply({
content: client.locales.get(interaction.locale)?.get('e_interacreate'), content: client.locales.get(interaction.locale)?.get('e_interacreate_no_command'),
ephemeral: true, ephemeral: true,
}); });
} }

View file

@ -1,8 +1,7 @@
{ {
"e_interacreate": "Sorry, the command probably no longer exists...", "e_interacreate_no_command": "Sorry, the command probably no longer exists...",
"c_ping_name": "Ping", "c_ping_desc": "Pong!",
"c_ping_desc": "Pong",
"c_ping1": "Roundtrip latency", "c_ping1": "Roundtrip latency",
"c_ping2": "Websocket heartbeat" "c_ping2": "Websocket heartbeat"
} }

View file

@ -1,5 +1,5 @@
{ {
"e_interacreate": "Désolé, la commande n'existe plus...", "e_interacreate_no_command": "Désolé, la commande n'existe plus...",
"c_ping1": "Latence totale", "c_ping1": "Latence totale",
"c_ping2": "Latence du Websocket" "c_ping2": "Latence du Websocket"