Skip to content

Add support for styles labels set in block.json #419

@benoitchantre

Description

@benoitchantre

Feature Request

Describe your use case and the problem you are facing

When you set some block styles in block.json and use the wp i18n make-pot command, the generated .pot file doesn't contains the label strings.

Example:

"styles": [
	{
		"name": "default",
		"label": "Default",
		"isDefault": true
	},
	{
		"name": "subscription",
		"label": "Subscription"
	}
],

Default and Subscription are missing from the .pot file.

Describe the solution you'd like

These strings should be part of the .pot file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions