About
A localization editor with a searchable segment list, status filters and keyboard navigation, a source and target editor with length limits, clickable glossary insertion, review marking and an animated completion ring.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Localization Editor to your project and fits it to your theme.
Code
How Localization Editor is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import {
LocalizationEditor,
type GlossaryEntry,
type LocaleSegment,
} from "@/components/ui/localization-editor";
const SEGMENTS: LocaleSegment[] = [
{
id: "s1",
key: "account.menu.title",
source: "Account settings",
target: "Kontoeinstellungen",
status: "translated",
limit: 24,
},
{
id: "s2",
key: "account.menu.workspace",
source: "Workspace",
target: "Arbeitsbereich",
status: "review",
limit: 20,
},
{
id: "s3",
key: "billing.plan.current",
source: "Your current plan",
target: "Ihr aktueller Tarif",
status: "translated",
},
{
id: "s4",
key: "billing.plan.change",
source: "Change plan",
target: "Tarif wechseln",
status: "draft",
},
{
id: "s5",
key: "members.invite.action",
source: "Invite a member",
target: "",
status: "missing",
limit: 22,
},
{
id: "s6",
key: "members.invite.hint",
source: "They will receive an email with a join link.",
target: "Sie erhalten eine E-Mail mit einem Beitrittslink.",
status: "translated",
},
{
id: "s7",
key: "files.empty.title",
source: "No files here yet",
target: "Noch keine Dateien",
status: "translated",
limit: 20,
},
{
id: "s8",
key: "files.empty.body",
source: "Upload a file or drag one into this folder to get started.",
target: "",
status: "missing",
},
{
id: "s9",
key: "editor.autosave.status",
source: "All changes saved",
target: "Alle Änderungen gespeichert",
status: "translated",
limit: 28,
},
{
id: "s10",
key: "editor.publish.action",
source: "Publish now",
target: "Jetzt veröffentlichen",
status: "review",
},
{
id: "s11",
key: "errors.network.title",
source: "We lost the connection",
target: "",
status: "missing",
limit: 26,
},
{
id: "s12",
key: "errors.network.body",
source: "Check your connection and try again in a moment.",
target: "Prüfen Sie Ihre Verbindung und versuchen Sie es gleich noch einmal.",
status: "translated",
},
{
id: "s13",
key: "onboarding.step.one",
source: "Create your first workspace",
target: "Erstellen Sie Ihren ersten Arbeitsbereich",
status: "review",
},
{
id: "s14",
key: "search.placeholder",
source: "Search anything",
target: "Alles durchsuchen",
status: "translated",
limit: 18,
},
];
const GLOSSARY: GlossaryEntry[] = [
{ term: "Workspace", translation: "Arbeitsbereich" },
{ term: "Plan", translation: "Tarif" },
{ term: "Member", translation: "Mitglied" },
{ term: "Save", translation: "Speichern" },
{ term: "Publish", translation: "Veröffentlichen" },
{ term: "Connection", translation: "Verbindung" },
];
export default function LocalizationEditorDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<LocalizationEditor
segments={SEGMENTS}
glossary={GLOSSARY}
locale="de"
title="Product copy · German translation"
description="Finish the account and billing strings, then hand the remaining ones to review. Glossary terms stay consistent across the interface."
/>
</main>
);
}








