Nyhilo / Duck-Disciple-Bot

A bot for adding helpful tools to the Infinite Nomic discord
http://nomic.gay
MIT License
3 stars 2 forks source link

Add language.py and move user-interaction strings to an English locale file #123

Closed Nyhilo closed 1 year ago

Nyhilo commented 1 year ago

This pull request primarily does 3 things:

  1. Implements a language.py which allows us to source strings from a locale file (i.e. en-US.json)
  2. Moves as many strings that get sent to discord into said locale file. Note: I'm unsure at this time how to include the various help dialog messages in this flow. TBD.
  3. Lay some groundwork for switching between available locales (set_locale()), a feature currently unused.