mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Тест
This commit is contained in:
parent
e9b4603c6c
commit
a2dff098c3
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
const Command = require("../../base/Command.js");
|
const Command = require("../../base/Command.js"),
|
||||||
|
i18next = require("i18next");
|
||||||
|
|
||||||
class Reload extends Command {
|
class Reload extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
@ -23,6 +24,8 @@ class Reload extends Command {
|
||||||
|
|
||||||
await this.client.unloadCommand(cmd.conf.location, cmd.help.name);
|
await this.client.unloadCommand(cmd.conf.location, cmd.help.name);
|
||||||
await this.client.loadCommand(cmd.conf.location, cmd.help.name);
|
await this.client.loadCommand(cmd.conf.location, cmd.help.name);
|
||||||
|
|
||||||
|
i18next.reloadResources();
|
||||||
message.success("owner/reload:SUCCESS", {
|
message.success("owner/reload:SUCCESS", {
|
||||||
command: cmd.help.name
|
command: cmd.help.name
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,7 +40,7 @@ module.exports = async () => {
|
||||||
await i18next.init({
|
await i18next.init({
|
||||||
backend: options,
|
backend: options,
|
||||||
debug: false,
|
debug: false,
|
||||||
fallbackLng: "en-US",
|
fallbackLng: "ru-RU",
|
||||||
initImmediate: false,
|
initImmediate: false,
|
||||||
interpolation: { escapeValue: false },
|
interpolation: { escapeValue: false },
|
||||||
load: "all",
|
load: "all",
|
||||||
|
|
Loading…
Reference in a new issue