
The main development around this contribution post is laying the foundation for the internalisation of the magic frog project and also the translation of all the UI texts in French. See this update from @mkt.
Repositories
Proof of work
- https://github.com/mktcode/the-magic-frog/pull/1
- https://github.com/mktcode/the-magic-frog/pull/6
- https://github.com/mktcode/the-magic-frog/pull/7
- https://github.com/mktcode/the-magic-frog/pull/8
- https://github.com/mktcode/the-magic-story-machine/pull/2
New Features
The internalisation was implemented using the vue plugin vue-i18n
, see it's documentation.
There was a lot of translation done as you can see by the pull requests above, and also some code adjustments to allow the upcoming french version of the project.
The project could not work without it's magic story machine code. A few updates happened there as well. See many more translations here as well.
Also added some instruction for proper use:
Then added a new script to start the project, to be run only once: initstory.js
I created a new function to take care of the beneficiaries:
getBeneficiaries(lang) {
switch (lang) {
case 'en':
case 'de':
return [[0, {
beneficiaries: [
{
account: 'mkt',
weight: 500
}
]
}]];
case 'fr':
return [[0, {
beneficiaries: [
{
account: 'mkt',
weight: 100
},
{
account: 'helo',
weight: 400
}
]
}]];
}
}
GitHub Account
Visit:
the-magic-frog.com
the-magic-frog.com