Closed
Description
openedon Aug 5, 2022
Description
Discovered in #42745 (comment).
The file block uses __
in its save
function. It's a static block so the internationalized output causes the block to be non-deterministic, resulting in validation errors.
Typically save
output for static blocks can't be internationalized.
This could be a tricky one to solve, as removing the use of __
could cause a lot of blocks added in the non-default language to become invalidated. Maybe a deprecation is possible though.
Step-by-step reproduction instructions
To repro (in the post editor):
- Upload a pdf to a file block
- Publish the post
- Change to a different language
- Reload the post in the editor
- Observe that the file block now has a validation error
I would recommend reproducing without the Gutenberg plugin active, as a lot of the translations are missing (at least for the dev version).
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment