From ed649e478843bcb83a62fb6af1e23254e01cfc7c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 15 Nov 2022 20:37:03 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=BE=D1=82=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/JaBa.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/JaBa.js b/base/JaBa.js index 66cdf5e4..8be67bcd 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -260,7 +260,7 @@ class JaBa extends Client { * @returns {String} Beautified date */ printDate(date, format = "", locale = this.defaultLanguage) { - const languageData = this.languages.find(language => language.name === locale || language.aliases.includes(locale)); + const languageData = this.languages.find(language => language.name === locale); if (format === "" || format === null) format = languageData.defaultMomentFormat; return moment(new Date(date)) @@ -277,7 +277,7 @@ class JaBa extends Client { * @returns {String} Time */ convertTime(time, type = false, noPrefix = false, locale = this.defaultLanguage) { - const languageData = this.languages.find(language => language.name === locale || language.aliases.includes(locale)); + const languageData = this.languages.find(language => language.name === locale); const m = moment(time).locale(languageData.moment); return (type ? m.toNow(noPrefix) : m.fromNow(noPrefix));