From a5a91b5001134097cdfd101c9992c3422083d52b Mon Sep 17 00:00:00 2001 From: noolaan Date: Sun, 19 Apr 2020 03:15:38 -0700 Subject: [PATCH] localization changes --- language/languages/en_us/commands/en_us_utility.lang | 2 ++ structure/client/components/commands/utility/Ping.js | 2 +- structure/extensions/Guild.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 language/languages/en_us/commands/en_us_utility.lang diff --git a/language/languages/en_us/commands/en_us_utility.lang b/language/languages/en_us/commands/en_us_utility.lang new file mode 100644 index 0000000..17d4d4b --- /dev/null +++ b/language/languages/en_us/commands/en_us_utility.lang @@ -0,0 +1,2 @@ +[PING_COMMAND_RESPONSE] +Pong! {number} \ No newline at end of file diff --git a/structure/client/components/commands/utility/Ping.js b/structure/client/components/commands/utility/Ping.js index 4bf53d9..53b8000 100644 --- a/structure/client/components/commands/utility/Ping.js +++ b/structure/client/components/commands/utility/Ping.js @@ -17,7 +17,7 @@ class PingCommand extends Command { async execute(message) { const ping = this.client.ws.ping.toFixed(0); - return message.respond(`Pong! \`${ping}ms\``, { emoji: 'success' }); + return message.respond(`${message.guild.format('PING_COMMAND_RESPONSE')} \`${ping}ms\``, { emoji: 'success' }); } } diff --git a/structure/extensions/Guild.js b/structure/extensions/Guild.js index 989275d..13b0d34 100644 --- a/structure/extensions/Guild.js +++ b/structure/extensions/Guild.js @@ -21,7 +21,7 @@ const Guild = Structures.extend('Guild', (Guild) => { } - async format(key, parameters = {}) { + format(key, parameters = {}) { const language = "en_us"; //this._settings.language or something idk let value = this.client.localeLoader.languages[language][key];