I can't seem to get the schema_translations.json file to be merged-in on publish - if I check via the API after publishing, the schema_translations property of the widget template JSON is empty.
When I run the validate script I get the following error:
widget-builder validate --translation <MyWidget>
[2022-03-03T15:53:16.714Z] There was a problem loading the schema_translation.json file.
This is what my translations schema looks like - just simple for now as I'm testing it out:
When I stringify the translations above and manually update the widget via the API (PUT) they work just fine, so I don't think the format of the translations is incorrect. It seems like it's something to do with how the file is being read/imported?
I can't seem to get the
schema_translations.json
file to be merged-in on publish - if I check via the API after publishing, theschema_translations
property of the widget template JSON is empty.When I run the validate script I get the following error:
This is what my translations schema looks like - just simple for now as I'm testing it out:
When I stringify the translations above and manually update the widget via the API (PUT) they work just fine, so I don't think the format of the translations is incorrect. It seems like it's something to do with how the file is being read/imported?
I'm running
node v14.13.1
andnpm 6.14.8
.