Conversation
raclim
left a comment
There was a problem hiding this comment.
Thanks for working on this! I think this looks pretty good so far!
I think one additional change I would make is adding '.mtl' to where the different file formats are mentioned in the translations/locales files. Here's a screenshot of those files below, and I'm going to link the specific line in the english translations for reference too.

I think it should be fine as is, but I might also double check if the '.mtl' file needs a specific file mode besides 'text/plain' for the getFileMode() function in the Editor/index.js file.
raclim
left a comment
There was a problem hiding this comment.
Thank you for adding in the translations!
I think besides the comment I left in the index.js file, it would be best to remove the changes in the package.json and package-lock.json file—ideally we don't want any changes to these files.
raclim
left a comment
There was a problem hiding this comment.
I added in one minor change that resets the package-lock.json file to mirror the one in the main branch, but overall I think this is great! Thanks for working on this and for your contribution!
Fixes #3067
Changes:
Allowing .mtl file uploads in the p5.js Web Editor would ensure feature consistency between the editor and p5.js itself, reducing potential confusion for users.
I have verified that this pull request:
.mtlFile Uploads #3067