From a2dff098c3a4a2e24db69c8444357ab1799ad311 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 2 Jan 2022 00:02:00 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/reload.js | 5 ++++- helpers/languages.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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",