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.
npm install esperskriptoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpiles a JavaScript file written in Esperanto or Chinese keywords to standard JavaScript using the CLI.
Use only predefined keyword translations. Do not attempt to translate variable or function names automatically.
Always explicitly specify -l eo or -l zh-cmn-Hans to avoid ambiguity.
Test translation output before relying on it.
Redirect output: esperskripto file.js > output.js
npm install -g esperskripto or use npx esperskripto
Ensure all keywords are from the supported language set (e.g., 函数, 对于, 控制台.记录 or funkcio, por, konzolo.protokolu). Check for typos.
Use one of: eo (Esperanto) or zh-cmn-Hans (Simplified Chinese).
No dependency data recorded yet.