
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:
<scripttype="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:
<scripttype="text/goygoyscript" src="goygoyconf.goygoy"></script>GoyGoyScript.turkishToEnglish(code);// returns a string representing the translated codeGoyGoyScript.englishToTurkish(code);// returns a string representing the translated codeYou 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...)