From 3efbe72563d2ed4c70dfa4dade63156d09e1bcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:24:38 +0200 Subject: [PATCH] Section styles: support i18n for variations declared in `theme.json` or theme style variations (#62552) Co-authored-by: oandregal Co-authored-by: aaronrobertshaw --- backport-changelog/6.6/6825.md | 3 +++ lib/theme-i18n.json | 9 +++++++++ schemas/json/theme.json | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 backport-changelog/6.6/6825.md diff --git a/backport-changelog/6.6/6825.md b/backport-changelog/6.6/6825.md new file mode 100644 index 00000000000000..73e5f46600d892 --- /dev/null +++ b/backport-changelog/6.6/6825.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/6825 + +* https://github.com/WordPress/gutenberg/pull/62552 diff --git a/lib/theme-i18n.json b/lib/theme-i18n.json index e4d14502132cbe..fe541e65c676ba 100644 --- a/lib/theme-i18n.json +++ b/lib/theme-i18n.json @@ -81,6 +81,15 @@ } } }, + "styles": { + "blocks": { + "variations": { + "*": { + "title": "Style variation name" + } + } + } + }, "customTemplates": [ { "title": "Custom template name" diff --git a/schemas/json/theme.json b/schemas/json/theme.json index bdfea7279f67ac..aafafae3605537 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -2288,6 +2288,10 @@ }, { "properties": { + "title": { + "type": "string", + "description": "Style variation name." + }, "blockTypes": { "type": "array", "items": {