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
14 changes: 14 additions & 0 deletions assets/theme-i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
}
]
},
"border": {
"radiusSizes": [
{
"name": "Border radius size name"
}
]
},
"blocks": {
"*": {
"typography": {
Expand Down Expand Up @@ -96,6 +103,13 @@
"name": "Space size name"
}
]
},
"border": {
"radiusSizes": [
{
"name": "Border radius size name"
}
]
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3696,6 +3696,11 @@ Feature: Generate a POT file of a WordPress project
"fontSizes": [
{ "name": "Small", "slug": "small", "size": "13px" }
]
},
"border": {
"radiusSizes": [
{ "slug": "soft", "size": "6px", "name": "Soft corners" }
]
}
}
}
Expand Down Expand Up @@ -3732,6 +3737,11 @@ Feature: Generate a POT file of a WordPress project
msgctxt "Font size name"
msgid "Small"
"""
And the foo-theme/foo-theme.pot file should contain:
"""
msgctxt "Border radius size name"
msgid "Soft corners"
"""
And the foo-theme/foo-theme.pot file should contain:
"""
msgctxt "Style variation name"
Expand All @@ -3756,6 +3766,11 @@ Feature: Generate a POT file of a WordPress project
"palette": [
{ "slug": "black", "color": "#000000", "name": "Black" }
]
},
"border": {
"radiusSizes": [
{ "slug": "soft", "size": "6px", "name": "Soft corners for paragraph" }
]
}
}
}
Expand All @@ -3774,6 +3789,11 @@ Feature: Generate a POT file of a WordPress project
msgctxt "Color name"
msgid "Black"
"""
And the foo-theme/foo-theme.pot file should contain:
"""
msgctxt "Border radius size name"
msgid "Soft corners for paragraph"
"""

Scenario: Extract strings from style variations
Given an empty foo-theme directory
Expand Down