Skip to content

GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!

License

Notifications You must be signed in to change notification settings

candasm/GoyGoyScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turkish Flag
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.

Including GoyGoyScript files in your HTML

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>

Optional

Convert from GoyGoyScript to JavaScript:
GoyGoyScript.turkishToEnglish(code); // returns a string representing the translated code
Convert from JavaScript to GoyGoyScript:
GoyGoyScript.englishToTurkish(code); // returns a string representing the translated code

Missing/incorrect translations?

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...)

About

GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published