You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi,
This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.
Description
Discovered in #42745 (comment).
The file block uses
__
in itssave
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):
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
The text was updated successfully, but these errors were encountered: