From c16ab0d6a5c1754be81df8877c2d99b9dea2de23 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 18 Aug 2023 20:53:11 +0500 Subject: [PATCH] use server's locale in birthdays messages --- helpers/birthdays.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index cd84d5ca..274f5d2c 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -37,12 +37,12 @@ module.exports.init = async function (client) { .setFooter(client.config.embed.footer) .addFields([ { - name: client.translate("economy/birthdate:HAPPY_BIRTHDAY"), + name: client.translate("economy/birthdate:HAPPY_BIRTHDAY", null, guildData.language), value: client.translate("economy/birthdate:HAPPY_BIRTHDAY_MESSAGE", { name: user.username, user: user.id, - age: `**${age}** ${client.functions.getNoun(age, client.translate("misc:NOUNS:AGE:1"), client.translate("misc:NOUNS:AGE:2"), client.translate("misc:NOUNS:AGE:5"))}`, - }), + age: `**${age}** ${client.functions.getNoun(age, client.translate("misc:NOUNS:AGE:1", null, guildData.language), client.translate("misc:NOUNS:AGE:2", null, guildData.language), client.translate("misc:NOUNS:AGE:5", null, guildData.language))}`, + }, guildData.language), }, ]);