localization changes

This commit is contained in:
noolaan 2020-04-19 03:15:38 -07:00
parent e9f51186d3
commit a5a91b5001
3 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
[PING_COMMAND_RESPONSE]
Pong! {number}

View File

@ -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' });
}
}

View File

@ -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];