Skip to content

Commit 53518a1

Browse files
authored
Merge pull request #408 from ramonjd/add/description-field-to-theme-json
2 parents 6f52398 + 5fdacfd commit 53518a1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

assets/theme-i18n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "Style variation name",
3+
"description": "Style variation description",
34
"settings": {
45
"typography": {
56
"fontSizes": [

features/makepot.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3658,6 +3658,7 @@ Feature: Generate a POT file of a WordPress project
36583658
{
36593659
"version": "1",
36603660
"title": "My style variation",
3661+
"description": "My style variation description",
36613662
"settings": {
36623663
"color": {
36633664
"duotone": [
@@ -3716,6 +3717,11 @@ Feature: Generate a POT file of a WordPress project
37163717
msgctxt "Style variation name"
37173718
msgid "My style variation"
37183719
"""
3720+
And the foo-theme/foo-theme.pot file should contain:
3721+
"""
3722+
msgctxt "Style variation description"
3723+
msgid "My style variation description"
3724+
"""
37193725

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

0 commit comments

Comments
 (0)