Skip to content

Commit

Permalink
Section styles: support i18n for variations declared in theme.json
Browse files Browse the repository at this point in the history
…or theme style variations (#62552)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
  • Loading branch information
3 people authored and ellatrix committed Jun 18, 2024
1 parent b5c4f62 commit 1d07592
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6825.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6825

* https://github.com/WordPress/gutenberg/pull/62552
9 changes: 9 additions & 0 deletions lib/theme-i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@
}
}
},
"styles": {
"blocks": {
"variations": {
"*": {
"title": "Style variation name"
}
}
}
},
"customTemplates": [
{
"title": "Custom template name"
Expand Down
4 changes: 4 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2288,6 +2288,10 @@
},
{
"properties": {
"title": {
"type": "string",
"description": "Style variation name."
},
"blockTypes": {
"type": "array",
"items": {
Expand Down

0 comments on commit 1d07592

Please sign in to comment.