{"id":25545,"library":"esperskripto","title":"EsperSkripto","description":"A multilingual transpiler for JavaScript that allows writing code in Simplified Chinese (Mandarin) and Esperanto. v0.0.2 is the latest release as of early 2024, with sporadic maintenance. It transpiles Chinese or Esperanto keywords and built-in function names (e.g., 控制台.记录 -> console.log) to standard JavaScript. Unlike usual i18n tools, it directly renames keywords and identifiers, not just UI strings. Still experimental, with limited language support and no advanced features like module translation or type checking.","status":"active","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/siauderman/EsperSkripto","tags":["javascript","boilerplate","cli","template","typescript","vscode","jest","husky","commitizen"],"install":[{"cmd":"npm install esperskripto","lang":"bash","label":"npm"},{"cmd":"yarn add esperskripto","lang":"bash","label":"yarn"},{"cmd":"pnpm add esperskripto","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a CLI tool, not a library. Install globally or use npx.","wrong":"require('esperskripto')","symbol":"cli","correct":"npx esperskripto file.js"}],"quickstart":{"code":"// Create a file 'test.eo' with Esperanto JavaScript:\n// funkcio provuIomete(){\n//   por(jen i=0;i<5;++i){\n//     konzolo.protokolu(i);\n//   }\n// }\n// provuIomete();\n\n// Then run:\n// npx esperskripto test.eo\n\n// Or for Chinese:\n// Create 'test.zh.js' with:\n// 函数 试一试(){\n//   对于(让 甲=0;甲<5;++甲) {\n//     控制台.记录(甲);\n//   }\n// }\n// 试一试();\n// Run: npx esperskripto -l zh-cmn-Hans test.zh.js","lang":"javascript","description":"Transpiles a JavaScript file written in Esperanto or Chinese keywords to standard JavaScript using the CLI."},"warnings":[{"fix":"Use only predefined keyword translations. Do not attempt to translate variable or function names automatically.","message":"The transpiler only handles built-in keywords and globals (like console, function, for, let). Custom identifiers and strings are left untranslated.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Always explicitly specify -l eo or -l zh-cmn-Hans to avoid ambiguity.","message":"The file extension is not automatically detected; you must provide the correct language option via -l flag for Chinese, or Esperanto is default? Actually, Esperanto is default if no -l given.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Test translation output before relying on it.","message":"v0.0.2 may have breaking changes from v0.0.1; version range unspecific.","severity":"breaking","affected_versions":">=0.0.2"},{"fix":"Redirect output: esperskripto file.js > output.js","message":"The CLI transpiles a file in-place? No, it outputs to stdout. Overwrite must be done manually.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install -g esperskripto or use npx esperskripto","cause":"CLI not installed globally or npx not used.","error":"Error: Cannot find module 'esperskripto'"},{"fix":"Ensure all keywords are from the supported language set (e.g., 函数, 对于, 控制台.记录 or funkcio, por, konzolo.protokolu). Check for typos.","cause":"Input file contains unrecognized keyword or invalid syntax for the transpiler.","error":"SyntaxError: Unexpected token"},{"fix":"Use one of: eo (Esperanto) or zh-cmn-Hans (Simplified Chinese).","cause":"Specified language code not supported.","error":"Error: Unknown language 'fr'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}