Skip to content

Commit 9f57c85

Browse files
authored
cloudlink: fix weird string (TurboWarp#2283)
transifex interprets `["test"]` as a variable so then the translators can't even change what it says but even if they could change what it says: we can't expect translators to implicitly understand that this is JSON but even if we could assume that: it's not clear how a translator should go about translating this so let's just hardcode English there, as is already done for some other places in the extension where there is a free-form input for some sort of identifier
1 parent 41f3a99 commit 9f57c85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎extensions/cloudlink.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@
13471347
arguments: {
13481348
ROOMS: {
13491349
type: Scratch.ArgumentType.STRING,
1350-
defaultValue: Scratch.translate('["test"]'),
1350+
defaultValue: JSON.stringify(["test"]),
13511351
},
13521352
},
13531353
},
@@ -1359,7 +1359,7 @@
13591359
arguments: {
13601360
ROOMS: {
13611361
type: Scratch.ArgumentType.STRING,
1362-
defaultValue: Scratch.translate('["test"]'),
1362+
defaultValue: JSON.stringify(["test"]),
13631363
},
13641364
},
13651365
},

0 commit comments

Comments
 (0)