This is maybe one of the most important updates. There will not only be an English version of The Magic Frog but one for every language that has a considerable existing community here on Steem. I started with the German version, since that's my native language.
Repositories
https://github.com/mktcode/the-magic-frog
https://github.com/mktcode/the-magic-story-machine
New Features
Website
The website can now run in multiple languages. But every language needs its own instance and runs on a subdomain (well, except English as the "main" language). So for now we have only the two:
- English: the-magic-frog.com
- German: de.the-magic-frog.com
It uses Vue i18n to translate the texts and the locale is determined by the subdomain which must be explicitly configured as an environment variable.
Depending on the locale the account to work with is chosen.
Bot
The bot now also allows to be set to a specific language by setting an additional environment variable.
There's now a locales.js to hold the translations for the post's title, permlink, intro and footer and the transfer memos when rewards are being distributed.
Proof of Work
Website:
These are the main commits:
- https://github.com/mktcode/the-magic-frog/commit/d04f371d54b9310fd5acb0fa18156a096af6e8b9
- https://github.com/mktcode/the-magic-frog/commit/94e380f0cb1fa219c1769776d52f9633f7662601
- https://github.com/mktcode/the-magic-frog/commit/b760508af55db893e0280e60b9f86f18814f2694
- https://github.com/mktcode/the-magic-frog/commit/1dccc61c45ed9bc31f3290947d5691968f499030
This one and all other commits involve only minor changes, updated texts, fixed a bug here and there and so on.
Bot:
And then again, starting here, all other commits are minor fixes/changes. Oh yeah, for example the bot can now handle more than 100 posts! :D
Special thanks to @helo!
Thank you for doing the groundwork and submitting the first PR! :D
Next Steps
French Version
@helo, I'll try to hurry up a bit! French version some day next week maybe? :)
Wallet Integration
@aneilpatel is working on it. Thanks!
https://github.com/mktcode/the-magic-frog/pull/5
I just didn't have the time to check it out yet. Will happen tomorrow.
Global Pot
I plan to set the account @the-pot-of-gold as a beneficiary to collect rewards across all languages and then, once a month maybe, we can raffle another hopefully big pot! Hooray!!! I just have to think a bit about the exact conditions.
Stay tuned and happy storytelling!
https://the-magic-frog.com
https://the-magic-frog.com