How should Flowcharts solve the localization?
If I Duplicate a flowchart file for each language, If I want to change Something, I have to edit it again n times, which is obviously unreasonable and error prone.
If working with i18n plugin, I need to create a JSON file to manage it. This means that I need to maintain a path similar to flowchart in the JSON file again. And fill in the placeholder for this path in the flowchart.But this obviously loses the convenience of visualizing flowcharts. What better way to cooperate with the i18n plug-in?
For example: #open=flowchart-questionnaire
- Tab 1
I extracted the JSON file of Flowchart from the project file and cleaned up other data: file.json
- Expand
{
"name": "Questionnaire",
"locale": "en-GB",
"strings": {
"nodes": [
{
"outputs": [
{
"name": "Message",
"value": "What kind of content do you want to make?"
},
{
"name": "Option1",
"value": "Games"
},
{
"name": "Option2",
"value": "Animations"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "Try Construct Animate! Use the timeline to build sequences of movements and changes over time, and export as a video, GIF, or image sequence."
},
{
"name": "Link",
"value": "https://animate.construct.net/"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "Are you interested in using coding to develop games?"
},
{
"name": "Option1",
"value": "Yes"
},
{
"name": "Option2",
"value": "No"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "Try using Construct 3 with its event block system. It's a drag-and-drop alternative to programming languages which is easy to learn and yet powerful enough to build sophisticated games with."
},
{
"name": "Link",
"value": "https://editor.construct.net/"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "Do you already know how to code with JavaScript or TypeSript?"
},
{
"name": "Option1",
"value": "Yes, I know JavaScript"
},
{
"name": "Option2",
"value": "Yes, I know TypeScript"
},
{
"name": "Option3",
"value": "No"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "See our tutorial 'Construct for JavaScript developers quick start guide' for an introduction on how to use your existing JavaScript coding knowledge with Construct."
},
{
"name": "Link",
"value": "https://www.construct.net/en/tutorials/construct-javascript-2866"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "See our tutorial 'Using TypeScript in Construct' for a guide on how to use your existing TypeScript coding knowledge with Construct."
},
{
"name": "Link",
"value": "https://www.construct.net/en/tutorials/using-typescript-construct-3003"
}
]
},
{
"outputs": [
{
"name": "Message",
"value": "See our free 13-part course 'Learn JavaScript in Construct', which teaches the basics of JavaScript coding in Construct!"
},
{
"name": "Link",
"value": "https://www.construct.net/en/courses/learn-javascript-construct-79"
}
]
}
]
}
}