X
X
x4zx2021-07-14 22:33:00
Python
x4zx, 2021-07-14 22:33:00

How to change the language within the command to Russian?

Hello, I am writing a bot for the reporting system, when activated, the bot sends the following embed:

emb1 = discord.Embed(title = "Інформаційне табло", description = 'Це табло надає інформацію про автора тікета', colour = 0xFF8C00)
            emb1.add_field(name = 'Користувач', value = f'{member.mention}')
            emb1.add_field(name = 'ID', value = f'{member.id}')
            emb1.add_field(name = 'Ролі', value = " ".join([role.mention for role in roles]), inline = False)
            emb1.add_field(name = 'Приєднався', value = f'{member.joined_at.strftime("%a, %#d %B %Y, %I:%M")}')
            emb1.add_field(name = 'Дата створення', value = f'{member.created_at.strftime("%a, %#d %B %Y, %I:%M")}')
            emb1.set_thumbnail(url = f'{member.avatar_url}')
            emb1.set_footer(icon_url = f'{member.avatar_url}', text = f'{member}')
            await channel.send(
                embed = emb1,
                components = [
                    Button(style = ButtonStyle.gray, label = 'Закрити', emoji = '⛔')
                ]
            )


I need the points of Creating a Person's Account and when he joined the server to be in Russian, now they are in English, and also there is American time, but I need it to be Russian.
Tell me, please, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-07-14
@x4zx

As for the time, they ask here with enviable regularity, you need to set the Russian locale. For example How can I change the language of created_at.strftime?
Regarding the locale of system notifications - in the settings of a specific server. The bot has no effect on this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question