e-a-h / That-Sky-Bot

That Sky [Bot] for thatgamecompany and #thatskygame
Creative Commons Attribution Share Alike 4.0 International
14 stars 3 forks source link

localization in lang.yaml #24

Open e-a-h opened 5 years ago

e-a-h commented 5 years ago

group cog-specific text and implement language switch based on alias used to invoke commands

jmmelko commented 4 years ago

Hi Alex,

could you please give me an example of how to do the language switch?

I'd like to do the same for the music-sheet-maker.

Thanks

e-a-h commented 4 years ago

I still have localization branched in an unfinished state. I will provide examples as soon as I have something working

jmmelko commented 4 years ago

Thanks. I have ripped your code and made the thing work more or less (I also created a substitution dictionary for missing locales, eg fr_XX -> fr_FR, en_XX ->en_US)

The only thing I need to know right now is how to retrieve the locale from Discord.

e-a-h commented 4 years ago