I've seen code all documented in Japanese with Japanese strings. I thought it looked awesome and wondered why people don't just write code in their own language - why nobody has bothered to create, say, Japanese JavaScript.
Most programming languages themselves have a relatively finite number of keywords (if, break, continue, etc). It's the entire ecosystem (npm, PyPi, nuget, etc) and all the English libraries where it gets confusing for non-native speakers.
You would almost need something along the lines of a "source translation map" + a transpiler + IDE which supported these translated keyword equivalents as part of natural autocompletion to make something like this work.
EDIT: I wouldn't be surprised if there's an extension for VS Code / Jetbrains that translates JSDocs side-by-side into the user's language.
Comments
I've seen code all documented in Japanese with Japanese strings. I thought it looked awesome and wondered why people don't just write code in their own language - why nobody has bothered to create, say, Japanese JavaScript.
There are some non-English based programming languages: https://en.wikipedia.org/wiki/Non-English-based_programming_...
Most programming languages themselves have a relatively finite number of keywords (if, break, continue, etc). It's the entire ecosystem (npm, PyPi, nuget, etc) and all the English libraries where it gets confusing for non-native speakers.
You would almost need something along the lines of a "source translation map" + a transpiler + IDE which supported these translated keyword equivalents as part of natural autocompletion to make something like this work.
EDIT: I wouldn't be surprised if there's an extension for VS Code / Jetbrains that translates JSDocs side-by-side into the user's language.
Sure, like extending i18n to the code itself, I like it. It would be a fun way to practice my Italian.