Skip to content

Comment Query Loop block not translated. #41292

@peterwilsoncc

Description

@peterwilsoncc

Description

This was originally reported by @c4rl0sbr4v0 as WP#55809.

Comments Query Loop block title is not being translated.

Tested with 6.0 local version in French, Chinese and Spanish.

The PO translation files seems to be ok, so I still cannot tell which is the cause of this issue.

I (Peter) suspect the data is being pulled from block.json rather than included as a translatable string within the block's JavaScript files.

@mukeshpanchal27 posted a follow-up comment that the description is also not translated so it appears to be a general translation issue with the comment query loop.

Step-by-step reproduction instructions

Steps to reproduce:
1.) Set a language different than English.
2.) Go to a Post.
3.) Add Comments Query Loop block.
4.) Check that the block title is not being translated.

Screenshots, screen recording, code snippet

Screenshot 2022-05-24 at 22 22 57

Comments Query Loop description

Environment info

  • WordPress 6.0

Other data was not provided but I suspect it was without the Gutenberg plugin activated as the block has been renamed in trunk.

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

Metadata

Metadata

Assignees

Labels

Internationalization (i18n)Issues or PRs related to internationalization effortsNeeds Technical FeedbackNeeds testing from a developer perspective.[Block] CommentsAffects the Comments Block - formerly known as Comments Query Loop[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions