https://github.com/candasm/goygoyscript
GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!
https://github.com/candasm/goygoyscript
experimental fun javascript native-language
Last synced: about 1 year ago
JSON representation
GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!
- Host: GitHub
- URL: https://github.com/candasm/goygoyscript
- Owner: candasm
- License: mit
- Created: 2013-08-23T10:46:00.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T10:49:18.000Z (almost 13 years ago)
- Last Synced: 2025-02-08T14:12:28.784Z (over 1 year ago)
- Topics: experimental, fun, javascript, native-language
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[GoyGoyScript](http://emirkarsiyakali.kd.io/goygoyscript)
==========

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](https://eksisozluk.com/goygoy--91713), the sacred Turkish schmooze.
See it in action [here](http://emirkarsiyakali.kd.io/goygoyscript).
### Including GoyGoyScript files in your HTML
- Include [goygoyscript.js](dist/goygoyscript.js) and [goygoyscript.browser.js](dist/goygoyscript.browser.js).
- Make sure your html is set to allow utf-8 characters (add `` in the ).
GoyGoyScript supports the `text/goygoyscript` MIME type. Any script tag with that type will be compiled and run automatically:
```html
eğer (x < 5) {
konsol.log("Merhaba!");
} değilse {
konsol.log("Merhaba!");
}
```
You can also specify a `src` for your script tags:
```html
```
#### Optional
##### Convert from GoyGoyScript to JavaScript:
```javascript
GoyGoyScript.turkishToEnglish(code); // returns a string representing the translated code
```
##### Convert from JavaScript to GoyGoyScript:
```javascript
GoyGoyScript.englishToTurkish(code); // returns a string representing the translated code
```
### Missing/incorrect translations?
You can see the translations over [here](https://github.com/emir/GoyGoyScript/blob/gh-pages/dist/goygoyscript.js#L4). 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...)