Lisan Compiler v0.1.1 compiles Translation objects into Dictionary objects for the Lisan i18n library. It provides functions like parseLisanLiteral, parse, and generate. Designed as a build-time tool (devDependency) to precompile translations, reducing runtime overhead. The library is TypeScript-friendly, ships type definitions, and supports UMD browser usage via CDN. Lisan focuses on minimal bundle size and performance. Compiler handles Lisan Literal syntax and converts it to optimized dictionary format.
npm install lisan-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a translations object into a Lisan dictionary using parse and generate.
Always call parse() first, then generate().
Access named exports via window.lisanCompiler in UMD.
Use parse() for objects, parseLisanLiteral() for individual literals.
Wrap the object in an array: parse([translations]) instead of parse(translations).
Move lisan-compiler to dependencies if needed, or use it in build scripts only.
No dependency data recorded yet.