EsperSkripto
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();