npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vite-plugin-l10n-c

v0.2.2

Published

Development-only Vite translation manager for l10n-c

Readme

vite-plugin-l10n-c — Locale file editing for people and coding agents: search, update, rename, delete, replace text, and check missing, nested, duplicate and unused keys.

npm version npm downloads license

vite-plugin-l10n-c

Formerly published under the working name vite-plugin-i18n-c; npm reserved that name as too similar to an existing package, so the first release ships as vite-plugin-l10n-c.

Development-only translation editor for Vite 5+ (Node 22.12+; bundles target Node 22).

import i18n from 'vite-plugin-l10n-c'
export default { plugins: [i18n({ baseLanguage: 'en' })] }

Open /i18n/ on the dev server. Inline options override l10n-c.config.json in the Vite root. The package ships its editor assets. It adds no production build or preview middleware. GET /i18n/api/locales returns flattened language dictionaries; POST /i18n/api/publish accepts { changes: { en: { 'ui.start': 'Start' } } }. Publish writes local files. Only exact API routes match. Language/key validation rejects traversal and prototype keys before writes; cross-origin write requests are rejected.

Configuration uses the same options as l10n-c: localesDir (default public/locales), baseLanguage (default ko), sourcePaths, sourceIgnore, mirrors, allowedRoots, referencePrefixes and languageOrder. Paths resolve from the Vite project root. For example:

{
  "localesDir": "messages",
  "baseLanguage": "en",
  "languageOrder": ["en", "fr"]
}

Each messages/en/ui.json owns its ui root. Use the editor to search keys or values, filter domains/languages, click a cell to edit and Publish to save. CSV exports the filtered rows with drafts. The fixed /i18n/ routes also apply when Vite has a base path. File writes are sequential; a filesystem failure may leave partial writes. Keep the dev server on a trusted development machine.

The tarball includes ESM/CommonJS builds, types, editor HTML/JS, README and MIT license. See the full documentation for compatibility options and CLI checks.

MIT