From acc393d572c023866c629098321590a71b2e336c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 11 Feb 2022 12:43:52 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D1=81=D0=BE=D0=BA=D1=80=D0=B0=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D1=8F=D0=B7=D1=8B?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2=20=D0=B2=20setlang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Administration/setlang.js | 2 +- languages/language-meta.json | 4 ++-- languages/ru-RU/administration/setlang.json | 2 +- languages/uk-UA/administration/setlang.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/Administration/setlang.js b/commands/Administration/setlang.js index d31c3cf4..9c092c77 100644 --- a/commands/Administration/setlang.js +++ b/commands/Administration/setlang.js @@ -19,7 +19,7 @@ class Setlang extends Command { async run(message, args, data) { const language = this.client.languages.find((l) => l.name === args[0] || l.aliases.includes(args[0])); - if (!args[0] || !language) return message.error("administration/setlang:MISSING_LANG", { list: this.client.languages.map((l) => `\`${l.name}\``).join(", ") }); + if (!args[0] || !language) return message.error("administration/setlang:MISSING_LANG", { list: this.client.languages.map((l) => `\`${l.name} (${l.aliases.slice(0, 2).join(", ")})\``).join(", ") }); data.guild.language = language.name; await data.guild.save(); diff --git a/languages/language-meta.json b/languages/language-meta.json index 305839c7..0ab61cf8 100644 --- a/languages/language-meta.json +++ b/languages/language-meta.json @@ -6,7 +6,7 @@ "defaultMomentFormat": "Do MMMM YYYY", "default": true, "aliases": [ - "Russian", + "Русский", "ru", "ru-ru", "ru_ru", @@ -20,7 +20,7 @@ "defaultMomentFormat": "Do MMMM YYYY", "default": false, "aliases": [ - "Ukrainian", + "Украинский", "uk", "uk-ua", "uk_ua", diff --git a/languages/ru-RU/administration/setlang.json b/languages/ru-RU/administration/setlang.json index 50bad0e9..3314b1e4 100644 --- a/languages/ru-RU/administration/setlang.json +++ b/languages/ru-RU/administration/setlang.json @@ -1,7 +1,7 @@ { "DESCRIPTION": "Изменить язык бота на сервере!", "USAGE": "{{prefix}}setlang [язык]", - "EXAMPLES": "{{prefix}}setlang russian\n{{prefix}}setlang uk", + "EXAMPLES": "{{prefix}}setlang ru\n{{prefix}}setlang uk", "MISSING_LANG": "Выберите язык из списка: {{list}}", "SUCCESS": ":flag_ru: Язык сервера изменён на **{{lang}}**!" } \ No newline at end of file diff --git a/languages/uk-UA/administration/setlang.json b/languages/uk-UA/administration/setlang.json index 50bad0e9..f986996a 100644 --- a/languages/uk-UA/administration/setlang.json +++ b/languages/uk-UA/administration/setlang.json @@ -1,7 +1,7 @@ { "DESCRIPTION": "Изменить язык бота на сервере!", "USAGE": "{{prefix}}setlang [язык]", - "EXAMPLES": "{{prefix}}setlang russian\n{{prefix}}setlang uk", + "EXAMPLES": "{{prefix}}setlang ru\n{{prefix}}setlang uk", "MISSING_LANG": "Выберите язык из списка: {{list}}", - "SUCCESS": ":flag_ru: Язык сервера изменён на **{{lang}}**!" + "SUCCESS": ":flag_ua: Язык сервера изменён на **{{lang}}**!" } \ No newline at end of file