diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index 116ae0b8..de4e14e7 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -1,4 +1,5 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command.js"), + i18next = require("i18next"); class Reload extends Command { constructor(client) { @@ -23,6 +24,8 @@ class Reload extends Command { await this.client.unloadCommand(cmd.conf.location, cmd.help.name); await this.client.loadCommand(cmd.conf.location, cmd.help.name); + + i18next.reloadResources(); message.success("owner/reload:SUCCESS", { command: cmd.help.name }); diff --git a/helpers/languages.js b/helpers/languages.js index 20d63044..1b33816f 100644 --- a/helpers/languages.js +++ b/helpers/languages.js @@ -40,7 +40,7 @@ module.exports = async () => { await i18next.init({ backend: options, debug: false, - fallbackLng: "en-US", + fallbackLng: "ru-RU", initImmediate: false, interpolation: { escapeValue: false }, load: "all",