New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix t9n edit #1676
Fix t9n edit #1676
Conversation
Report for the pull request #1676🚀 Test the model from the website: https://nosgestesclimat.fr?PR=1676 🔧 Model compilation status
🌐 Translation statusRules
Personas
|
I merge this PR. Shouldn't be breaking. Next steps :
|
hasTheSameRefValue = | ||
targetRef && | ||
areEqual(targetRef.suggestions, refVal.suggestions) | ||
hasTheSameRefValue = targetRef && areEqual(targetRef, refVal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EmileRolley c'était ici le petit bug, je sais pas si c'est lié à d'autres soucis car tu utiliserais cette fonction ailleurs
incubateur-ademe/nosgestesclimat-site#775
This PR fixes hand translations overwrite :
auto
, corresponding to deepl translation (I had to run all traductions sorry for you credit card @laem ahah, because we need to know if the translation online (attr with no suffix) is the same as auto translation in order to store hand written translation in case of rewriting)previous_review
which appears if thelock
changed and if the translation is different from auto generated translation. Then a warning informs the user if a rule translation have been improved before changes.Test : locally, change a title anywhere or add a title attribute to a rule (
actions
for instance with a title different from "actions"), modify the attributetitle
intranslated-rules-en-us
, you should have a warning when executingyarn check:rules
and then, executeyarn translate:rules
, a new line will appears withprevious_review
attribute.