Make WordPress Core

Opened 8 weeks ago

Last modified 7 weeks ago

#64333 closed defect (bug)

I18N: border.radiusSizes key is missing in theme-i18n.json — at Version 7

Reported by: wildworks's profile wildworks Owned by:
Milestone: 6.9.1 Priority: normal
Severity: normal Version: 6.9
Component: I18N Keywords: has-patch commit fixed-major dev-reviewed
Focuses: Cc:

Description (last modified by wildworks)

Originally reported at https://github.com/WordPress/gutenberg/issues/73688 by @twvania

For preset names to be translatable, the preset key must be defined in theme-i18n.json.

This is defined in the `theme-i18n.json` file that the Gutenberg plugin has, but not in the core one.

As a result, even if a theme developer releases a theme with radius presets, they cannot make the preset names translatable.

We need to the following keys:

{
	"settings": {
		"border": {
			"radiusSizes": [
				{
					"name": "Border radius size name"
				}
			]
		},
		"blocks": {
			"*": {
				"border": {
					"radiusSizes": [
						{
							"name": "Border radius size name"
						}
					]
				}
			}
		}
	}
}

Change History (7)

#1 @wildworks
8 weeks ago

  • Milestone changed from Awaiting Review to 6.9.1

Since the radiusSizes is a new feature in 6.9, let's consider fixing it in a point release.

#2 @wildworks
8 weeks ago

  • Version set to trunk

#3 @wildworks
8 weeks ago

  • Summary changed from I18N: border.radiusSizes key is missing in theme-i18n,json to I18N: border.radiusSizes key is missing in theme-i18n.json

#4 @hbhalodia
8 weeks ago

Hi @wildworks, I would like to work on this. Raising the PR with a fix.

Thanks.

This ticket was mentioned in PR #10580 on WordPress/wordpress-develop by @wildworks.


8 weeks ago
#5

  • Keywords has-patch added

#6 @wildworks
8 weeks ago

@hbhalodia I have already submitted a PR.

#7 @wildworks
8 weeks ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.