[wp-trac] [WordPress Trac] #64333: I18N: border.radiusSizes key is missing in theme-i18n.json
WordPress Trac
noreply at wordpress.org
Tue Dec 2 08:28:40 UTC 2025
#64333: I18N: border.radiusSizes key is missing in theme-i18n.json
--------------------------+---------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9.1
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Description changed by wildworks:
Old description:
> 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
> [https://github.com/WordPress/wordpress-
> develop/blob/6045c24efe16f3685c40ed9cac147ff22d5c65d2/src/wp-includes
> /theme-i18n.json theme-i18n.json].
>
> This is defined in
> [https://github.com/WordPress/gutenberg/blob/48a6e8ae52d97441b0bbb593162124eb6c74dd46/lib
> /theme-i18n.json 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"
> }
> ]
> }
> }
> }
> }
> }
> }}}
New description:
Related to #63799
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
[https://github.com/WordPress/wordpress-
develop/blob/6045c24efe16f3685c40ed9cac147ff22d5c65d2/src/wp-includes
/theme-i18n.json theme-i18n.json].
This is defined in
[https://github.com/WordPress/gutenberg/blob/48a6e8ae52d97441b0bbb593162124eb6c74dd46/lib
/theme-i18n.json 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"
}
]
}
}
}
}
}
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64333#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list