Since WordPress 4.7, each user can display the backend in its own language, possibly different than the site's main language. When using this feature, FSE patterns are displayed in the user's language instead of the site's main language.
Step-by-step reproduction instructions
Translate some strings of the theme Twenty Twenty Two, let say in French. I selected "ABOUT US" and "LATEST POSTS", using poedit or equivalent and save the .mo file.
Go to Settings > General and select the French language (make sure that in your user profile, the site's default language is selected).
Go to the Site Editor
Edit the footer template part
Select a new footer pattern. I used the "Blog footer" provided by Twenty Twenty Two which comes with the two strings translated at step 1
Check that the two strings are correctly displayed in French as expected.
Go to your profile and now select English as your user's language.
Go back to the Site Editor
Clear the footer customizations and edit it again
Select the same footer pattern as step 5
Check that now the stirings are displayed in English (user's language) instead of French (site's main language).
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 5.8.1
Gütenberg 11.8.0
Twenty Twenty Two development version from GitHub
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:
Chouby commentedNov 4, 2021
Description
Since WordPress 4.7, each user can display the backend in its own language, possibly different than the site's main language. When using this feature, FSE patterns are displayed in the user's language instead of the site's main language.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
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: