Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add localization support #58

Merged
merged 64 commits into from
Mar 3, 2024
Merged

feat: add localization support #58

merged 64 commits into from
Mar 3, 2024

Conversation

tibue99
Copy link
Owner

@tibue99 tibue99 commented Feb 15, 2024

Commands and all other texts can be translated with the current interaction locale.

  • Added ezcord.i18n module with the I18N class to initialize translations
  • Added bot.localize_commands
  • Added docs and examples

Fixed variables for embeds and added support for embeds in _localize_edit.
This fixes commands when a language is used that is not in the language file.
A random list entry will be chosen when loading a list key
- Added support for buttons, dropdowns, modals, normal messages (without interaction)
- Fixed followup.send
- Fixed key detection in TEmbeds
- Embed lookups are more dynamic now
- Removed debug and namespace settings
@tibue99 tibue99 added the enhancement New feature or request label Feb 15, 2024
@tibue99 tibue99 self-assigned this Feb 15, 2024
@tibue99 tibue99 changed the title feat: add localisation support feat: add localization support Feb 15, 2024
@tibue99 tibue99 merged commit 32bdc42 into main Mar 3, 2024
5 checks passed
@tibue99 tibue99 deleted the i18n branch March 3, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant