Modify Unpublish confirmation dialog in Content-Manager Strapi4.5.1

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello - I am trying to modify the text in a Confirmation dialog alert in Strapi 4+

When content has been Published and then UnPublished, a confirmation diialog alert opens up saying:

“Unpublish ths content will automatially chang it to a draft. Are you sure you want to unpublish it?”

I need to modify the text above but so far cannot figure out how to do it.

I looks like the text appears in

.cache/admin/src/content-manager/pages/EditView/Header/index.js (about line 176),

and I guess this is generated from the default content-manager

Do I need to overide this file to modify the text, and if so how do I do this in Strapi4 ?

Any help wound be very appreciated as I’ve been stuck on this for a couple of days now