Skip to content

Commit

Permalink
Merge pull request #408 from ramonjd/add/description-field-to-theme-json
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Jul 3, 2024
2 parents 6f52398 + 5fdacfd commit 53518a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit 53518a1

Please sign in to comment.