This commit is contained in:
JonnyBro 2022-01-02 00:02:00 +05:00
parent e9b4603c6c
commit a2dff098c3
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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",