UNPKG

wuchale

Version:

Protobuf-like i18n from normal code

19 lines (13 loc) â€Ē 1.14 kB
# 📜`wuchale`ðŸŠķ [![npm version](https://img.shields.io/npm/v/wuchale)](https://www.npmjs.com/package/wuchale) ![License](https://img.shields.io/github/license/wuchalejs/wuchale) **`wuchale`** is a non-invasive, normal code based compile-time internationalization (i18n) toolkit. - **ðŸ”Ī No extra syntax!** - your normal code is enough - **ðŸ“Ķ Tiny catalogs to bundle** - Text catalogs are just arrays, no keys necessary, like Protobuf - **🔧 Zero-effort integration** - Add i18n to existing projects without rewriting code - **ðŸĪ– Optional AI translation** - Gemini integration for automatic on-the-fly translations - **🔄 Full, granular HMR support** - Live updates during development, including AI auto-translation - **ðŸ“Ķ Tiny footprint** - Only 2 or 3 additional dependencies (`wuchale` + `pofile`), no bloated `node_modules` - **ðŸŽŊ Smart extraction** - Uses AST analysis: handles nested markup, conditionals, loops, and complex interpolations - **🌍 Standard .po files** - Compatible with existing translation tools and workflows ## 📚 Documentation See the full guide at: [wuchale.dev](https://wuchale.dev/).