Skip to content

Luca090902/KrautScript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

German Flag
KrautScript lets you write JavaScript in German; Finally there is a way for Germans to code in their native language!

See it in action here.

Including KrautScript files in your HTML

KrautScript supports the text/krautscript MIME type. Any script tag with that type will be compiled and run automatically:

<script type="text/krautscript">
  wenn (x < 5) {
    konsole.log("Ja!");
  } sonst {
    konsole.log("Nein!");
  }
</script>

You can also specify a src for your script tags:

<script type="text/krautscript" src="snaps.kraut"></script>

Optional

Convert from KrautScript to JavaScript:
KrautScript.germanToEnglish(code); // returns a string representing the translated code
Convert from JavaScript to KrautScript:
KrautScript.englishToGerman(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!

Acknowledges

To @pushmatrix for creating the original project.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.9%
  • HTML 5.8%
  • CSS 2.3%