Information on using Scratch.Translate #1862
-
Hello again, As of recently I made a commit to #1732 and it failed lint, which didn't previously happen. I'm assuming that Scratch.Translate is a new requirement? I tried looking at some other extensions and documentation but I can't seem to figure out the "generated l10n code" thing that all the other extensions seem to have. Is this an involved process, or do I just wrap Scratch.Translate() around all of my block's strings? What do I need to do to get this fixed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It's been an implicit requirement for a long time. I just decided to put it in code. You should ignore the "generated l10n code" section; as the comment says it is generated for you. The most common usage is |
Beta Was this translation helpful? Give feedback.
It's been an implicit requirement for a long time. I just decided to put it in code.
You should ignore the "generated l10n code" section; as the comment says it is generated for you.
The most common usage is
Scratch.translate("whatever")
. You can look through the other extensions to see examples of how it is used https://github.com/search?q=repo%3ATurboWarp%2Fextensions%20Scratch.translate&type=code