Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/theme-i18n.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "Style variation name",
"description": "Style variation description",
"settings": {
"typography": {
"fontSizes": [
Expand Down
6 changes: 6 additions & 0 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3658,6 +3658,7 @@ Feature: Generate a POT file of a WordPress project
{
"version": "1",
"title": "My style variation",
"description": "My style variation description",
"settings": {
"color": {
"duotone": [
Expand Down Expand Up @@ -3716,6 +3717,11 @@ Feature: Generate a POT file of a WordPress project
msgctxt "Style variation name"
msgid "My style variation"
"""
And the foo-theme/foo-theme.pot file should contain:
"""
msgctxt "Style variation description"
msgid "My style variation description"
"""

Scenario: Extract strings from the blocks section of theme.json files
Given an empty foo-theme directory
Expand Down