Replies: 3 comments 9 replies
-
As in making extensions support other languages? Then yes, it's possible, as of recently, you can use |
Beta Was this translation helpful? Give feedback.
-
Documentation to be written on this soon If you intend to submit the extensions here, it's easiest to just do this as our build server has various tricks: Scratch.translate("English version");
// Or with context:
Scratch.translate({
default: "English version",
description: "This text appears as 'developer comments' in Transifex"
}); If you want to do it manually for a custom extension: // Instead of hardcoding English/Italian/whatever strings, use this:
Scratch.translate({
id: "stringid", // just needs to be unique within the extension
default: "English version"
});
// To tell Scratch.translate about the different languages, do this once at the start, before calling Scratch.translate():
Scratch.translate.setup({
it: {
stringid: "Italian version"
},
es: {
stringid: "Spanish version"
}
}); |
Beta Was this translation helpful? Give feedback.
-
I would gladly submit the extension, but the guidelines say that submitted extensions should be of general interest. I don't know if adding back the "forever if" block of Scratch 1.4 could be considered of general interest? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add multilingual translations to custom turbowarp extensions? If so, how? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions