This repository has been archived by the owner on Feb 7, 2025. It is now read-only.
Replies: 1 comment 2 replies
-
If you select that line and click on the three dots then click on View git blame you can see when that code was last changed. You can create another Translatable trait that extends Voyager one and change that check. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, can anybody explain the purpose of lines 232-234 of the Translatable trait?
It skips empty values, so it becomes impossible to clear any field for additional locales. For example: I have 2 locales: 'en' and 'es'. I can save empty value for
body
ortitle
field in Post model for default 'en' locale, but I cannot do that with the same fields when I switch to 'ES' locale at the top right side of Admin panel, it keeps old values after saving. If I remove those lines in Translatable trait - it successfully saves the empty values for the 'es' locale.Beta Was this translation helpful? Give feedback.
All reactions