Swedish JavaScript
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
dist
test
.gitignore
CNAME
LICENSE
README.md
index.html

README.md

FikaScript

Swedish Flag
FikaScript lets you write JavaScript in Swedish; Finally there is a way for Swedes to code in their native language! It is named after fika, the sacred Swedish coffee break.

See it in action here.

Including FikaScript files in your HTML

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

<script type="text/fikascript">
  om (x < 5) {
    konsol.log("hej!");
  } annars {
    konsol.log("nej!");
  }
</script>

You can also specify a src for your script tags:

<script type="text/fikascript" src="snaps.fika"></script>

Optional

Convert from FikaScript to JavaScript:
FikaScript.swedishToEnglish(code); // returns a string representing the translated code
Convert from JavaScript to FikaScript:
FikaScript.englishToSwedish(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...)