What is the best way to change the default translations without them being overridden during an update #92
-
For example in the file
We want to transform it to:
But when we update What is the best way to modify these default translation strings without them being overwritten after an update? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You need to disable the use of the
composer remove laravel-lang/common
composer require laravel-lang/lang laravel-lang/http-statuses
composer remove laravel-lang/attributes |
Beta Was this translation helpful? Give feedback.
-
Ok I used a bad example: attributes. Let's take another somewhat silly example, still in the /lang/fr/validation.php file, the default value is: 'accepted' => 'Le champ :attribute doit être accepté.', I would like to change it for example to: 'accepted' => 'Vous devez accepter le champ :attribute.', The question is really about the title of this thread which I will rephrase as: |
Beta Was this translation helpful? Give feedback.
Currently, there are two options for preserving the translation entered by the developer:
Our publisher used to have the ability to ignore some translation keys, but we decided to abandon it due to low demand and the need to support this functionality.