We have a config file for our CAKEPHP app and we want to add there some "tags" so our translation team dont have to change the customer name always. In a prior iteration of our app using CakePHP2 what we did was override in basics.php the definition of the __() function and add a str_replace with the tags we wanted.
Example: If the translator added the tag [[CUSTOMER]] then CakePHP will get the CUSTOMER constant in our config file and str_replace would replace it in the basics.php prior to being displayed.
We know this is not the way to go as we were changing framework code instead of extending it and for CakePHP4 we want to do it the correct way.
Is there anyway to do this? Where do we have to do it?
Regards.