Skip to content

Commit 5773ca2

Browse files
authored
Update filter.js
1 parent 6a2215b commit 5773ca2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/example-extensions/filter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ class FilterExample {
22
getInfo() {
33
return {
44
id: 'filterexample',
5-
name: 'Filter Example',
5+
name: Scratch.translate('Filter Example'),
66
blocks: [
77
{
88
opcode: 'all',
99
blockType: Scratch.BlockType.COMMAND,
10-
text: 'available in ALL targets',
10+
text: Scratch.translate('available in ALL targets'),
1111
},
1212
{
1313
opcode: 'sprites',
1414
blockType: Scratch.BlockType.COMMAND,
15-
text: 'available in ONLY sprites',
15+
text: Scratch.translate('available in ONLY sprites'),
1616
// highlight-next-line
1717
filter: [Scratch.TargetType.SPRITE]
1818
},
1919
{
2020
opcode: 'stage',
2121
blockType: Scratch.BlockType.COMMAND,
22-
text: 'available in ONLY the stage',
22+
text: Scratch.translate('available in ONLY the stage'),
2323
// highlight-next-line
2424
filter: [Scratch.TargetType.STAGE]
2525
},
2626
{
2727
opcode: 'none',
2828
blockType: Scratch.BlockType.COMMAND,
29-
text: 'available in NEITHER sprites or the stage',
29+
text: Scratch.translate('available in NEITHER sprites or the stage'),
3030
// highlight-start
3131
// NOTE: Use hideFromPalette instead of filter: []
3232
filter: []

0 commit comments

Comments
 (0)