-
Notifications
You must be signed in to change notification settings - Fork 317
Add parsing support to vercte/dictionaries.js for convenience #2349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
!format |
|
Please do not use |
not deprecated, just not needed for this repo, as the build process adds it automatically. i think what happened is that you pasted the code directly from extensions.turbowarp.org/vercte/dictionaries.js instead of the source code, which includes said generated Scratch.translate.setup calls. |
extensions/vercte/dictionaries.js
Outdated
| // ID: verctedictionaries | ||
| // Description: Use the power of dictionaries in your project. | ||
| // By: Vercte <https://scratch.mit.edu/users/lolecksdeehaha/> | ||
| // By: Vercte <https://scratch.mit.edu/users/lolecksdeehaha/>, LSPECTRONIZTAR <https://scratch.mit.edu/users/LSPECTRONIZTAR/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comma won't work. Need second line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I'll fix that
|
!format |
I made it so that the
parse JSON intoblock (now renamed toset to JSON) can support parsed JSON objects and thestringifyblock (now renamed toget as JSON) can also return parsed objects if the project creator wishes (for speed-increasing purposes). However, the return option is set tostringifiedby default to stay true to the old version.I also added to the
Scratch.translate.setupfor the new blocks and made sure that the extension update is completely compatible with any projects that might use the previous version.Please I need this so my 3D physics engine won't lag 🙏