use server's locale in birthdays messages

This commit is contained in:
Jonny_Bro (Nikita) 2023-08-18 20:53:11 +05:00
parent e5dcf03f95
commit c16ab0d6a5

View file

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