Skip to content
PluginStats

solid-translate weekly downloads statistics

By omniaura (4 listings) · npm · Vite plugins

AI-powered build-time translations for SolidJS. Full i18n with <T>, <Var>, <Num>, <Currency>, <Plural>, <DateTime>, locale detection, and a CLI — all BYOK.

View on npm Outdated · Oct 26, 2026

solid-translate has 2,934 recorded weekly downloads on npm, a decrease of 8.8% over the past 30 days, ranking #1747 of 3,247 tracked listings.

Weekly downloads
2,934
Official API · Dec 5, 2026
7-day growth
+143%
+1.7K weekly downloads
30-day growth
-8.8%
-283 weekly downloads
90-day growth
+207%
+2K weekly downloads
Rank
#1747
▲ 187 in 7 days

About solid-translate

solid-translate

AI-powered i18n for SolidJS — full feature parity with General Translation, but open-source and BYOK (bring your own API key).

Write your app in one language. Wrap text in <T>. Get translations generated automatically at build time. No JSON key management. No external service required.

Features

  • <T> Component — wrap any text for translation. Source text = key (no JSON wrangling)
  • <Var> — protect dynamic content from translation
  • <Num> — locale-aware number formatting via Intl.NumberFormat
  • <Currency> — locale-aware currency formatting
  • <DateTime> — locale-aware date/time formatting
  • <Plural> — CLDR plural rules (zero/one/two/few/many/other)
  • <LocaleSelector> — drop-in locale picker component
  • AI Context — context prop for disambiguation ("Save" = save file vs. save money)
  • Auto Locale Detection — detects from navigator.languages when locale prop is omitted
  • msg() — mark strings for extraction outside of JSX
  • CLI Tool — translate JSON, Markdown, and MDX files from the command line
  • check Command — CI freshness gate, no AI calls (exit 1 when translations are stale)
  • Vite Plugin — build-time translation with smart change detection
  • Lazy Locale Chunks — virtual:solid-translate/lazy code-splits each locale, loads on demand without suspending
  • Locale Persistence — opt-in persistLocale remembers the user's choice in localStorage
  • GitHub Action — omniaura/solid-translate@v1 for CI/CD translation automation
  • BYOK — use any Vercel AI SDK provider (OpenRouter, OpenAI, Anthropic, Google, etc.)

Install

v2 requires Solid 2.0 (solid-js and @solidjs/web ^2.0.0-rc.16). Use v1 for Solid 1.x. The Vite integration targets Vite 8.

bun add solid-translate solid-js@2.0.0-rc.18 @solidjs/web@2.0.0-rc.18
bun add -d @solidjs/vite-plugin@3.0.0-next.51 vite@^8
bun add -d ai @ai-sdk/openai  # or any AI SDK provider

Quick Start

1. Configure the Vite plugin
// vite.config.ts
import { defineConfig } from "vite";
import solidPlugin from "@solidjs/vite-plugin";
import { solidTranslate } from "solid-translate/vite";
import { createOpenAI } from "@ai-sdk/openai";

const openrouter = createOpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

export default defineConfig({
  plugins: [
    solidPlugin(),
    solidTranslate({
      sourceLocale: "en",
      targetLocales: ["es", "fr", "de", "ja"],
      localesDir: "./src/locales",
      model: openrouter("openai/gpt-4o-mini"),
      autoExtract: true, // auto-discover <T> and msg() strings
    }),
  ],
});

Set jsxImportSource to "@solidjs/web" and jsx to "preserve" in tsconfig.json. Import render and renderer types such as JSX from @solidjs/web, not solid-js/web or solid-js.

2. Write your app
import { createSignal } from "solid-js";
import { TranslationProvider, T, Var, Num, Plural, useTranslation, LocaleSelector } from "solid-translate";
import translations from "virtual:solid-translate";

function App() {
  return (
    <TranslationProvider
      sourceLocale="en"
      translations={translations}
      // locale="es"  ← optional! auto-detects from browser if omitted
    >
      <Page />
    </TranslationProvider>
  );
}

function Page() {
  const { t } = useTranslation();
  const [count, setCount] = createSignal(3);
  const userName = () => "Alice";

  return (
    <div>
      <h1><T>Welcome to our app!</T></h1>

      {/* Dynamic content protected with <Var> */}
      <p><T>Hello <Var>{userName()}</Var>, nice to see you!</T></p>

      {/* AI context for disambiguation */}
      <button><T context="save a document to disk">Save</T></button>

      {/* Explicit key */}
      <a><T id="nav.home">Home</T></a>

      {/* Interpolation */}
      <p>{t("items.count", { count: count() })}</p>

      {/* Pluralization */}
      <Plural n={count()}
        zero="No items in your cart"
        one="1 item in your cart"
        other={`${count()} items in your cart`}
      />

      {/* Locale-aware number */}
      <p>Total: <Num>{1234567.89}</Num></p>

      {/* Locale switcher */}
      <LocaleSelector labels={{ en: "English", es: "Español", fr: "Français" }} />
    </div>
  );
}
3. Build
bun run build

On the first build, the plugin generates translation files:

src/locales/
├── en.json                    # Source (auto-generated or manual)
├── es.json                    # AI-generated
├── fr.json                    # AI-generated
├── de.json                    # AI-generated
├── ja.json                    # AI-generated
└── .solid-translate.lock      # Change tracking

On subsequent builds, only changed/new keys are re-translated. Check everything into git.

API Reference

Components
<T> — Translatable Text
// Source text as key (no JSON file entry needed)
<T>Hello world</T>

// Explicit key
<T id="greeting">Hello world</T>

// With interpolation
<T params={{ name: userName() }}>Hello {{name}}</T>

// AI context for disambiguation
<T context="financial institution, not river bank">Bank</T>

// Mixed JSX with Var
<T>Welcome <Var>{userName()}</Var>, you have <Num>{count()}</Num> items</T>
<Var> — Variable Protection

Marks dynamic content that should NOT be translated. When used inside <T>, the surrounding text is translated but <Var> content is preserved.

<T>Hello <Var>{userName()}</Var></T>
// Spanish: "Hola {userName()}"
<Num> — Number Formatting

Locale-aware number formatting using Intl.NumberFormat.

<Num>{1000000}</Num>                              // "1,000,000" (en) / "1.000.000" (de)
<Num options={{ style: "percent" }}>{0.42}</Num>   // "42%"
<Num options={{ notation: "compact" }}>{1500}</Num> // "1.5K"
<Currency> — Currency Formatting…

Description from the npm listing.

  • solid
  • solidjs
  • i18n
  • translate
  • translation
  • internationalization
  • localization
  • ai
  • vite
  • vite-plugin
  • build-time
  • openrouter
  • vercel-ai-sdk
  • general-translation
  • gt-react
  • pluralization
  • intl
  • locale
  • currency
  • datetime

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

solid-translate weekly downloads on npm, last 90 days: 2,934 weekly downloads as of Dec 5, 2026, +207% over 90 days.solid-translateWeekly downloads on npm · Last 90 days2,934downloads / week+207% over 90 days02K4K6K8K10KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
solid-translate weekly downloads on npm, last 90 days: 2,934 weekly downloads as of Dec 5, 2026, +207% over 90 days.

7/30/90-day growth

solid-translate weekly downloads growth on npm: +143% over 7 days, -8.8% over 30 days, +207% over 90 days.solid-translateWeekly downloads growth on npm2,934downloads / week now7-day growth+1,728 weekly downloads+143%30-day growth-283 weekly downloads-8.8%90-day growth+1,978 weekly downloads+207%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
solid-translate weekly downloads growth on npm: +143% over 7 days, -8.8% over 30 days, +207% over 90 days.

Ranking history

solid-translate npm ranking history: currently #1747 (by weekly downloads).solid-translatenpm ranking · by weekly downloads · Last 90 days#1747current rank#1500#1600#1700#1800#1900#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 21, 2026 – Dec 6, 2026 · 17 observations · Updated Dec 5, 2026pluginstats.com
solid-translate npm ranking history: currently #1747 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 88, #7 (overall #1,747)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 15, #2 (overall #282)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (156)
Recent weekly downloads observations for solid-translate
Date (UTC)Weekly downloadsChange vs. previous
2,934-111
3,045+134
2,911+436
2,475+77
2,398+202
2,196+411
1,785+579
1,206-66
1,272-32
1,304+25
1,279-263
1,542-174
1,716+91
1,625—

Similar npm Vite plugins plugins

All 20 solid-translate alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/solid-translate. First seen Oct 21, 2026; last successful collection Oct 26, 2026. See the methodology.