-
Notifications
You must be signed in to change notification settings - Fork 319
Locale: An Extension for Manual Translations #2389
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 |
|
Ignore the random commits about temp files and changing the deployment branch, the former were for creating the folder on GitHub web and the latter were so I could preview the gallery with these changes (which didn't end up working). These were reverted. |
|
I'm working on a block for getting the user's language code as opposed to the Translate extension's language name feature, just need to actually figure out how to get the TurboWarp language |
…duxStore and the navigator object.
|
!format |
|
Eslint warnings are because of the format changing comment positions, 1 sec |
|
grr |
FINALLY |
|
Before I forget, I'll update image attributions |
|
wow im so glad my markdown didnt trigger a type warning |
Things to eventually get doneLast updated: January 19, 2026These are in chronological order of when I wanted them done.
|
|
!format |
… current one (whoever made the Translate extension is a saint)
|
Now I just need documentation, which shouldn't be difficult |
I'll revise it soon
|
!format |
|
no clue why i'm using this comment section as a devlog when that's not what this is for but it seems ready to mark as ready for review |
|
this is just an JSON extension for a specific use. You can use the general-purpose JSON extension and replicate this... |
|
the actual translation part |
What do you suggest I change? |
|
Remove that portion |
I know this comment might sound rude at first, but it's argumentative. I'm proving my point and why I believe that the blocks can stay in the extension.TurboHook, despite being almost fully replaceable by the HTTP and JSON extensions, still exists. Utilities and Fetch share a fetch block. Asset Manager and ShovelUtils can import sprites, costumes, sounds, extensions, and even whole projects. So many extensions have similar, near-identical blocks, Additionally, CONTRIBUTING.md only states that "Extensions that are very similar to existing ones" are discouraged. This extension has a unique purpose: to easily allow for manual translations in the same place. While the documentation for the extension says that the JSON extension can be useful for helping with some blocks, it's not required. The blocks mitigate the need for storing JSON in variables, instead putting everything in one place. Additionally, removing the blocks that could technically be replaced with JSON removes 9 out of 15 blocks—60% of the extension—in favor of a combination of JSON and variables. This includes the merge blocks, which cannot be replicated as easily with the JSON extension (it doesn't have a dedicated merge block), which would have to be removed as they use the data set by other blocks suggested for removal. |

Locale is an extension for registering manual translations. This is useful if you want real, human-created translations instead of simple machine ones that the Translate extension provides. This isn't the most feature-filled extension and it didn't take too long to make, so there may be weird bugs or problems.