GoyGoyScript lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!
It is named after goygoy, the sacred Turkish schmooze.
See it in action here.
- Include goygoyscript.js and goygoyscript.browser.js.
- Make sure your html is set to allow utf-8 characters (add
<meta charset="utf-8">
in the ).
GoyGoyScript supports the text/goygoyscript
MIME type. Any script tag with that type will be compiled and run automatically:
<script type="text/goygoyscript">
eğer (x < 5) {
konsol.log("Merhaba!");
} değilse {
konsol.log("Merhaba!");
}
</script>
You can also specify a src
for your script tags:
<script type="text/goygoyscript" src="goygoyconf.goygoy"></script>
GoyGoyScript.turkishToEnglish(code); // returns a string representing the translated code
GoyGoyScript.englishToTurkish(code); // returns a string representing the translated code
You can see the translations over here. Feel free to submit a pull request!
###TO-DOs
- Syntax highlighting for unicode chars
- npm support for command line compiling
- Add more translations!!! (ex: Array.pop, push, etc...)