SLT (Script Localization Tool) transpiler for JavaScript that replaces localized keywords in ES (Spanish), FR (French), and IT (Italian) source files with canonical JavaScript keywords. Version 0.2.0, pre-1.0, with no scheduled release cadence. Differentiators: simple reference implementation with header-based language detection (#!slt <lang>), custom mapping support, and CLI. Limitations: not a full JS tokenizer, may mishandle regex literals; not production-ready.
npm install slt-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a Spanish-localized JavaScript file to canonical JS using the CLI tool.
Ensure the file starts with '#!slt <lang>' on the first line, no BOM or spaces.
Avoid using localized keywords inside strings or comments, or use a full parser like @babel/parser.
Use --map to provide a custom mapping file for other languages.
Check file path and ensure the file exists.
Add '#!slt es' (or fr/it) as the first line of the source file.
Ensure mapping file is valid JSON with key-value pairs: { "localized": "canonical" }.No dependency data recorded yet.