just let a microflow return a comma seperated string for all attributes and entities you need.
You still have to do the configuration for these attributes in the modeler.
At this moment there is no good solution to this problem.
Add a lot of translatableString if it could be defined by the modeler.
If there are much text, but it is static you can use the i18n of dojo
// WidgetName\widget\nls\messages.js
define({
root: {
hello: "Hello world"
},
nl: true
});
// WidgetName\widget\nls\nl\messages.js
define({
hello: "Hoi wereld"
});
// WidgetName\widget\WidgetName.js
define([
/* ... */
"dojo/i18n!WidgetName/widget/nls/messages"
], function (/* ... */ localMessages) {
console.log(JSON.stringify(localMessages));
/* .. your widget */
});
Of course, the ugly quick hack: Inserting a long JSON string with your translations into a single translatableString