File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,19 @@ Feature: WordPress block code scaffolding
65
65
"""
66
66
And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain:
67
67
"""
68
- title: __( 'The green mile' ),
68
+ title: __( 'The green mile', 'movies' ),
69
69
"""
70
70
And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain:
71
71
"""
72
72
category: 'widgets',
73
73
"""
74
74
And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain:
75
75
"""
76
- __( 'Hello from the editor!' )
76
+ __( 'Hello from the editor!', 'movies' )
77
77
"""
78
78
And the {PLUGIN_DIR}/blocks/the-green-mile/index.js file should contain:
79
79
"""
80
- __( 'Hello from the saved content!' )
80
+ __( 'Hello from the saved content!', 'movies' )
81
81
"""
82
82
And the {PLUGIN_DIR}/blocks/the-green-mile/editor.css file should exist
83
83
And the {PLUGIN_DIR}/blocks/the-green-mile/editor.css file should contain:
@@ -98,7 +98,7 @@ Feature: WordPress block code scaffolding
98
98
When I run `wp scaffold block shawshank-redemption --plugin=movies --title="The Shawshank Redemption" `
99
99
Then the {PLUGIN_DIR}/blocks/shawshank-redemption/index.js file should contain:
100
100
"""
101
- title: __( 'The Shawshank Redemption' ),
101
+ title: __( 'The Shawshank Redemption', 'movies' ),
102
102
"""
103
103
And STDOUT should be:
104
104
"""
Original file line number Diff line number Diff line change 24
24
* This is the display title for your block , which can be translated with `i18n` functions.
25
25
* The block inserter will show this name.
26
26
*/
27
- title: __( ' {{title_ucfirst_js}}' ),
27
+ title: __( ' {{title_ucfirst_js}}' , ' {{namespace}} ' ),
28
28
29
29
{{#dashicon} }
30
30
/**
60
60
return el(
61
61
' p' ,
62
62
{ className: props.className } ,
63
- __( 'Hello from the editor!' )
63
+ __( 'Hello from the editor!', ' { {namespace } }' )
64
64
);
65
65
},
66
66
75
75
return el(
76
76
' p' ,
77
77
{} ,
78
- __( 'Hello from the saved content!' )
78
+ __( 'Hello from the saved content!', ' { {namespace } }' )
79
79
);
80
80
}
81
81
} );
You can’t perform that action at this time.
0 commit comments