Код: Выделить всё
class EmbedCreatorView(discord.ui.View):
@discord.ui.button(label="commands.admin.embed.buttons.setTitle", style=discord.ButtonStyle.primary)
async def set_title(self, interaction: discord.Interaction, button: discord.ui.Button):
...
# Modal interaction here
# More buttons with similar structure...
Код: Выделить всё
await interaction.response.send_message(tanjunLocalizer.localize(
self.commandInfo.locale, "commands.admin.embed.previewSent"
), ephemeral=True)
Код: Выделить всё
tanjunLocalizer
Поэтому мои вопросы:
- Как я могу динамически устанавливать метки кнопок основаны на языковом стандарте каждого пользователя на момент взаимодействия?
Если локализация отдельного пользователя невозможна, как я могу установить ярлыки на основе языкового стандарта гильдии по умолчанию?
Подробнее здесь: https://stackoverflow.com/questions/786 ... ild-settin