Zero-Config Source Strings
Write English directly in your code with t("Hello World"). No JSON files, no key management.
Write English in code. Generate translations with AI. Ship globally.
// Server Component
import { t } from '@sylphx/rosetta/server';
export function Welcome() {
return <h1>{t("Welcome to our app")}</h1>;
}
// Client Component
'use client';
import { useT } from '@sylphx/rosetta-next';
export function Button() {
const t = useT();
return <button>{t("Click me")}</button>;
}| Package | Description |
|---|---|
| @sylphx/rosetta | Core library - hashing, interpolation, server context |
| @sylphx/rosetta-next | Next.js integration - providers, hooks, locale utilities |
| @sylphx/rosetta-admin | Admin dashboard hooks - state management, tRPC/REST |
| @sylphx/rosetta-drizzle | Drizzle ORM adapter - PostgreSQL, SQLite, MySQL |
| @sylphx/rosetta-translator-* | AI translators - OpenRouter, Anthropic, AI SDK |