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

Add i18n #31

Open
9 tasks
LucaBernstein opened this issue Nov 24, 2021 · 1 comment
Open
9 tasks

Add i18n #31

LucaBernstein opened this issue Nov 24, 2021 · 1 comment
Labels
Bot enhancement New feature or request

Comments

@LucaBernstein
Copy link
Owner

LucaBernstein commented Nov 24, 2021

  • As comands are valid for each user, there are multiple ways on how to implement this
    • Bind commands in multiple languages simultaneously
    • Only use .OnText binding, check user language (cached?), lookup command and execute. Might require a custom command handler, we might even be able to reuse the subcommands handler.

  • Check for possible library to use, e.g. https://github.com/nicksnyder/go-i18n
  • translation files in an i18n/translations directory
  • Translate existing project (extract EN)
  • Check that everything works for one langauge
  • Add another language (DE)
  • Make configurable in /config
    • e.g. /config lang [de|en|...]
  • implement PoC regarding handling translated commands for both possibilities suggested above
    • decide for one possibility
  • implement decided solution, write tests
@LucaBernstein LucaBernstein added the enhancement New feature or request label Nov 24, 2021
@LucaBernstein LucaBernstein added this to the v1.0.0 milestone Nov 24, 2021
@LucaBernstein LucaBernstein self-assigned this Nov 24, 2021
@LucaBernstein
Copy link
Owner Author

Also translate commands?

@LucaBernstein LucaBernstein removed this from the v1.0.0 milestone Dec 4, 2021
@LucaBernstein LucaBernstein removed their assignment Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant