Merge pull request #1937 from ericrosenbaum/bugfix/makey-localization

Localize Makey Makey extension blocks
This commit is contained in:
Eric Rosenbaum 2019-01-28 10:38:57 -05:00 committed by GitHub
commit 3bdbe689f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,11 @@ class Scratch3MakeyMakeyBlocks {
blocks: [ blocks: [
{ {
opcode: 'whenMakeyKeyPressed', opcode: 'whenMakeyKeyPressed',
text: 'when [KEY] key pressed', text: formatMessage({
id: 'makeymakey.whenKeyPressed',
default: 'when [KEY] key pressed',
description: 'when a keyboard key is pressed'
}),
blockType: BlockType.HAT, blockType: BlockType.HAT,
arguments: { arguments: {
KEY: { KEY: {
@ -187,7 +191,11 @@ class Scratch3MakeyMakeyBlocks {
}, },
{ {
opcode: 'whenCodePressed', opcode: 'whenCodePressed',
text: 'when [SEQUENCE] pressed in order', text: formatMessage({
id: 'makeymakey.whenKeysPressedInOrder',
default: 'when [SEQUENCE] pressed in order',
description: 'when a sequence of keyboard keys is pressed in a specific order'
}),
blockType: BlockType.HAT, blockType: BlockType.HAT,
arguments: { arguments: {
SEQUENCE: { SEQUENCE: {