JSPM

  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q93031F
  • License MIT

Reusable Gulp-based i18n automation system for javascript/typescript projects.

Package Exports

  • @sayyyat/smart-i18n
  • @sayyyat/smart-i18n/lib

Readme

Smart-i18n

npm version npm downloads License Node.js CI

A Gulp-based CLI toolkit for modular, scalable i18n in JS/TS projects

Smart-i18n is a framework-agnostic internationalization (i18n) CLI toolkit that automates translation workflows in JavaScript and TypeScript projects. It is based on Gulp and designed to integrate seamlessly into apps built with Next.js, React, Vue, or other frontend/backend stacks.


🚀 Features

  • ✅ Automatic namespace detection and key extraction
  • 🔄 Seamless translation file merging with old keys preserved
  • 🌐 On-demand machine translation via Deep Translate (RapidAPI)
  • 🔒 Safe TypeScript typings for all i18n keys
  • 🧱 Modular Gulp tasks for fully scriptable i18n pipelines
  • 🧰 CLI-based, works via yarn smart-i18n, npx smart-i18n, or direct Gulp

📁 Documentation


🔗 Example Integration

Looking for a working example? Check out:

👉 next-i18n-auth — A full Next.js 14+ app using smart-i18n with multi-language authentication, modular translation, and CLI-driven workflows.


⚖️ License

MIT © Sayat Raykul