localization changes
This commit is contained in:
parent
e9f51186d3
commit
a5a91b5001
2
language/languages/en_us/commands/en_us_utility.lang
Normal file
2
language/languages/en_us/commands/en_us_utility.lang
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[PING_COMMAND_RESPONSE]
|
||||||
|
Pong! {number}
|
@ -17,7 +17,7 @@ class PingCommand extends Command {
|
|||||||
|
|
||||||
async execute(message) {
|
async execute(message) {
|
||||||
const ping = this.client.ws.ping.toFixed(0);
|
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' });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
const language = "en_us"; //this._settings.language or something idk
|
||||||
|
|
||||||
let value = this.client.localeLoader.languages[language][key];
|
let value = this.client.localeLoader.languages[language][key];
|
||||||
|
Loading…
Reference in New Issue
Block a user