Skip to content

A multilingual transpiler to use JavaScript in different human languages, with the initial languages being Simplified Chinese (Mandarin) and Esperanto

License

Notifications You must be signed in to change notification settings

customautosys/EsperSkripto

Repository files navigation

EsperSkripto

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

A multilingual transpiler to use JavaScript in different human languages, with the initial languages being Simplified Chinese (Mandarin) and Esperanto

Install

npm install -g esperskripto

Usage

Usage: esperskripto [options] [--ts filename.ts | filename.js]

Options:
  -V, --version             output the version number
  -d, --debug               enables verbose logging (default: false)
  -v, --verbose             enables verbose logging (default: false)
  -t, --typescript          the file to be translated is in TypeScript
  -l, --language <language> translate from the language specified, currently supported languages are: zh-cmn-Hans (Simplified Chinese - Mandarin), eo (Esperanto)

Examples:

  $ esperskripto --version
  0.0.1

Examples

Simplified Chinese (Mandarin)

函数 试一试(){
	对于( =1;<=10;++) {
		控制台.记录();
	}
}

试一试();

Output

function 试一试(){
	for(let =1;<=10;++) {
		console.log();
	}
}

试一试();

Esperanto

funkcio provuIomete(){
	por(jen i=1;i<=10;++i){
		konzolo.protokolu(i);
	}
}

provuIomete();

Output

function provuIomete(){
	for(let i=1;i<=10;++i){
		console.log(i);
	}
}

provuIomete();

About

A multilingual transpiler to use JavaScript in different human languages, with the initial languages being Simplified Chinese (Mandarin) and Esperanto

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published