Skip to content

Commit 2de6080

Browse files
authored
Update cast.js
1 parent feef543 commit 2de6080

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/example-extensions/cast.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ class CastingExample {
22
getInfo() {
33
return {
44
id: 'castexample',
5-
name: 'Casting Example',
5+
name: Scratch.translate('Casting Example'),
66
blocks: [
77
{
88
opcode: 'toNumber',
99
blockType: Scratch.BlockType.REPORTER,
10-
text: 'convert [INPUT] to number',
10+
text: Scratch.translate('convert [INPUT] to number'),
1111
arguments: {
1212
INPUT: {
1313
type: Scratch.ArgumentType.STRING,
@@ -20,7 +20,7 @@ class CastingExample {
2020
// treatment in JS, it seems a bit dangerous to use
2121
opcode: 'castToString',
2222
blockType: Scratch.BlockType.REPORTER,
23-
text: 'convert [INPUT] to string',
23+
text: Scratch.translate('convert [INPUT] to string'),
2424
arguments: {
2525
INPUT: {
2626
type: Scratch.ArgumentType.STRING,
@@ -31,7 +31,7 @@ class CastingExample {
3131
{
3232
opcode: 'toBoolean',
3333
blockType: Scratch.BlockType.BOOLEAN,
34-
text: 'convert [INPUT] to boolean',
34+
text: Scratch.translate('convert [INPUT] to boolean'),
3535
arguments: {
3636
INPUT: {
3737
type: Scratch.ArgumentType.STRING,
@@ -42,7 +42,7 @@ class CastingExample {
4242
{
4343
opcode: 'compare',
4444
blockType: Scratch.BlockType.REPORTER,
45-
text: 'compare [A] to [B]',
45+
text: Scratch.translate('compare [A] to [B]'),
4646
arguments: {
4747
A: {
4848
type: Scratch.ArgumentType.STRING,

0 commit comments

Comments
 (0)