mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
use server's locale in birthdays messages
This commit is contained in:
parent
e5dcf03f95
commit
c16ab0d6a5
1 changed files with 3 additions and 3 deletions
|
@ -37,12 +37,12 @@ module.exports.init = async function (client) {
|
||||||
.setFooter(client.config.embed.footer)
|
.setFooter(client.config.embed.footer)
|
||||||
.addFields([
|
.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", {
|
value: client.translate("economy/birthdate:HAPPY_BIRTHDAY_MESSAGE", {
|
||||||
name: user.username,
|
name: user.username,
|
||||||
user: user.id,
|
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),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue