Modify translations
Closed this issue · 1 comments
epigeyre commented
Hi,
I'm trying to modify some translations and especially label.draft
and label.published
but it doesn't seems to work when I add it to my src/admin/app.js
file. I've also tried overwriting the translations files by creating a src/extensions/preview-button/admin/src/translations/
folder with json files in it but with no success.
What would be the best way to do it without overwriting the node_module?
Thanks for your help!
epigeyre commented
I've found the way! In the app.js file, here is the correct syntax:
'preview-button.label.draft': 'My translation',
'preview-button.label.published': 'My translation',