sprintf-formatter

JSON →
library 2.0.1 ·javascript
verified Jun 4, 2026

sprintf-formatter v2.0.1 provides a formatter for vue-i18n that uses sprintf syntax, enabling printf-style string formatting in translations. It works with Vue 2 and vue-i18n v8.x, ships TypeScript types, and offers both ESM and UMD builds. Compared to vue-i18n's built-in formatter, it allows positional and named placeholders with sprintf formatting options. The package is stable but relies on an optional dependency on sprintf-js, which is bundled as part of vue-i18n in some setups. Since version 2, it only supports Vue 2 and vue-i18n v8, and does not support Vue 3.