i18n(frontend): translate all German UI strings to English
Replace German labels, button text, toast messages, table headers, tooltips, and placeholder strings across 7 files: - WorkflowEditor: buttons, toasts, node labels - Tenants: buttons, toasts, dialog text, table headers - Admin: widget layout description - OrderDetail: column headers (Baureihe→Series, Ebene→Level, Lagertyp→Bearing Type) - ExcelSpreadsheet: column label definitions - Upload: series/duplicate warning strings - TemplateEditor: ALL_FIELD_DEFS default labels API field names (baureihe, ebene1, produkt_baureihe etc.) unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -81,7 +81,7 @@ function InputNode({ selected }: { selected?: boolean }) {
|
||||
label="STEP Input"
|
||||
icon={<FileUp size={14} />}
|
||||
color="green"
|
||||
description="STEP-Datei Eingang"
|
||||
description="STEP file input"
|
||||
selected={selected}
|
||||
hasTarget={false}
|
||||
/>
|
||||
@@ -91,7 +91,7 @@ function InputNode({ selected }: { selected?: boolean }) {
|
||||
function ConvertNode({ selected }: { selected?: boolean }) {
|
||||
return (
|
||||
<BaseNode
|
||||
label="STL Konvertierung"
|
||||
label="STL Conversion"
|
||||
icon={<RefreshCw size={14} />}
|
||||
color="blue"
|
||||
description="STEP → STL (cadquery)"
|
||||
@@ -144,7 +144,7 @@ function OutputNode({ data, selected }: { data: { label?: string }; selected?: b
|
||||
label={data.label ?? 'Output'}
|
||||
icon={<Download size={14} />}
|
||||
color="gray"
|
||||
description="Ergebnis-Datei"
|
||||
description="Output file"
|
||||
selected={selected}
|
||||
hasSource={false}
|
||||
/>
|
||||
@@ -168,7 +168,7 @@ function workflowToGraph(config: WorkflowConfig): { nodes: Node[]; edges: Edge[]
|
||||
if (config.type === 'still') {
|
||||
const nodes: Node[] = [
|
||||
{ id: 'input', type: 'inputNode', position: { x: 0, y: Y }, data: { label: 'STEP Input' } },
|
||||
{ id: 'convert', type: 'convertNode', position: { x: 220, y: Y }, data: { label: 'STL Konvertierung' } },
|
||||
{ id: 'convert', type: 'convertNode', position: { x: 220, y: Y }, data: { label: 'STL Conversion' } },
|
||||
{ id: 'render', type: 'renderNode', position: { x: 440, y: Y }, data: { label: 'Still Render', params: config.params } },
|
||||
{ id: 'output', type: 'outputNode', position: { x: 660, y: Y }, data: { label: 'PNG Output' } },
|
||||
]
|
||||
@@ -238,7 +238,7 @@ function ConfigSidepanel({
|
||||
}) {
|
||||
return (
|
||||
<div className="w-72 border-l border-border-default bg-surface p-4 space-y-5 overflow-y-auto">
|
||||
<h3 className="font-semibold text-content">Node-Konfiguration</h3>
|
||||
<h3 className="font-semibold text-content">Node Configuration</h3>
|
||||
|
||||
{/* Render Engine */}
|
||||
<div>
|
||||
@@ -282,7 +282,7 @@ function ConfigSidepanel({
|
||||
|
||||
{/* Resolution */}
|
||||
<div>
|
||||
<label className="text-sm text-content-secondary mb-2 block">Auflösung</label>
|
||||
<label className="text-sm text-content-secondary mb-2 block">Resolution</label>
|
||||
<div className="flex gap-2">
|
||||
{([[1024, 1024], [2048, 2048], [4096, 4096]] as [number, number][]).map(([w]) => (
|
||||
<button
|
||||
@@ -325,7 +325,7 @@ function ConfigSidepanel({
|
||||
{/* Duration */}
|
||||
<div>
|
||||
<label className="text-sm text-content-secondary mb-2 block">
|
||||
Dauer (s): <span className="font-semibold text-content">{params.duration_s ?? 5}</span>
|
||||
Duration (s): <span className="font-semibold text-content">{params.duration_s ?? 5}</span>
|
||||
</label>
|
||||
<input
|
||||
type="range"
|
||||
@@ -367,7 +367,7 @@ function NewWorkflowModal({ onClose, onCreate, isLoading }: NewWorkflowModalProp
|
||||
<div className="fixed inset-0 bg-black/40 flex items-center justify-center z-50">
|
||||
<div className="bg-surface rounded-xl shadow-xl w-full max-w-md p-6">
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<h2 className="text-lg font-semibold text-content">Neuer Workflow</h2>
|
||||
<h2 className="text-lg font-semibold text-content">New Workflow</h2>
|
||||
<button onClick={onClose} className="text-content-muted hover:text-content">
|
||||
<X size={20} />
|
||||
</button>
|
||||
@@ -378,7 +378,7 @@ function NewWorkflowModal({ onClose, onCreate, isLoading }: NewWorkflowModalProp
|
||||
<label className="block text-sm text-content-secondary mb-1">Name</label>
|
||||
<input
|
||||
className="w-full border border-border-default rounded-lg px-3 py-2 text-sm bg-surface text-content focus:outline-none focus:ring-2 focus:ring-accent"
|
||||
placeholder="z.B. Still Render Standard"
|
||||
placeholder="e.g. Still Render Standard"
|
||||
value={name}
|
||||
onChange={e => setName(e.target.value)}
|
||||
autoFocus
|
||||
@@ -386,7 +386,7 @@ function NewWorkflowModal({ onClose, onCreate, isLoading }: NewWorkflowModalProp
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-sm text-content-secondary mb-1">Typ</label>
|
||||
<label className="block text-sm text-content-secondary mb-1">Type</label>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
{([
|
||||
{ value: 'still', label: 'Still', desc: 'Single PNG image' },
|
||||
@@ -417,14 +417,14 @@ function NewWorkflowModal({ onClose, onCreate, isLoading }: NewWorkflowModalProp
|
||||
onClick={onClose}
|
||||
className="px-4 py-2 text-sm rounded-lg border border-border-default text-content-secondary hover:bg-surface-hover"
|
||||
>
|
||||
Abbrechen
|
||||
Cancel
|
||||
</button>
|
||||
<button
|
||||
disabled={!name.trim() || isLoading}
|
||||
onClick={() => onCreate(name.trim(), type)}
|
||||
className="px-4 py-2 text-sm rounded-lg bg-accent text-white hover:bg-accent-hover disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
>
|
||||
{isLoading ? 'Erstelle…' : 'Erstellen'}
|
||||
{isLoading ? 'Creating…' : 'Create'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -529,7 +529,7 @@ function FlowCanvas({ workflow, onSave, isSaving }: FlowCanvasProps) {
|
||||
<div className="flex flex-col flex-1 min-h-0">
|
||||
{/* Canvas Toolbar */}
|
||||
<div className="flex items-center gap-2 px-4 py-2 border-b border-border-default bg-surface">
|
||||
<span className="text-sm font-medium text-content-secondary mr-2">Nodes:</span>
|
||||
<span className="text-sm font-medium text-content-secondary mr-2">Nodes</span>
|
||||
{NODE_PALETTE.map(item => (
|
||||
<div
|
||||
key={item.type}
|
||||
@@ -551,7 +551,7 @@ function FlowCanvas({ workflow, onSave, isSaving }: FlowCanvasProps) {
|
||||
className="flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg bg-accent text-white hover:bg-accent-hover disabled:opacity-50"
|
||||
>
|
||||
<Save size={14} />
|
||||
{isSaving ? 'Speichere…' : 'Speichern'}
|
||||
{isSaving ? 'Saving…' : 'Save'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -605,9 +605,9 @@ export default function WorkflowEditor() {
|
||||
queryClient.invalidateQueries({ queryKey: ['workflows'] })
|
||||
setSelectedId(wf.id)
|
||||
setShowNewModal(false)
|
||||
toast.success('Workflow erstellt')
|
||||
toast.success('Workflow created')
|
||||
},
|
||||
onError: () => toast.error('Fehler beim Erstellen'),
|
||||
onError: () => toast.error('Failed to create workflow'),
|
||||
})
|
||||
|
||||
const updateMutation = useMutation({
|
||||
@@ -615,9 +615,9 @@ export default function WorkflowEditor() {
|
||||
updateWorkflow(id, { config }),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['workflows'] })
|
||||
toast.success('Workflow gespeichert')
|
||||
toast.success('Workflow saved')
|
||||
},
|
||||
onError: () => toast.error('Fehler beim Speichern'),
|
||||
onError: () => toast.error('Failed to save workflow'),
|
||||
})
|
||||
|
||||
const deleteMutation = useMutation({
|
||||
@@ -625,9 +625,9 @@ export default function WorkflowEditor() {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['workflows'] })
|
||||
setSelectedId(null)
|
||||
toast.success('Workflow gelöscht')
|
||||
toast.success('Workflow deleted')
|
||||
},
|
||||
onError: () => toast.error('Fehler beim Löschen'),
|
||||
onError: () => toast.error('Failed to delete workflow'),
|
||||
})
|
||||
|
||||
const handleCreate = (name: string, type: WorkflowConfig['type']) => {
|
||||
@@ -675,7 +675,7 @@ export default function WorkflowEditor() {
|
||||
<button
|
||||
onClick={() => setShowNewModal(true)}
|
||||
className="p-1 rounded hover:bg-surface-hover text-content-muted hover:text-content"
|
||||
title="Neuer Workflow"
|
||||
title="New Workflow"
|
||||
>
|
||||
<Plus size={16} />
|
||||
</button>
|
||||
@@ -683,17 +683,17 @@ export default function WorkflowEditor() {
|
||||
|
||||
<div className="flex-1 overflow-y-auto p-2 space-y-1">
|
||||
{isLoading && (
|
||||
<p className="text-xs text-content-muted px-2 py-4 text-center">Lade…</p>
|
||||
<p className="text-xs text-content-muted px-2 py-4 text-center">Loading…</p>
|
||||
)}
|
||||
{!isLoading && workflows.length === 0 && (
|
||||
<p className="text-xs text-content-muted px-2 py-4 text-center">
|
||||
Noch keine Workflows.
|
||||
No workflows yet.
|
||||
<br />
|
||||
<button
|
||||
onClick={() => setShowNewModal(true)}
|
||||
className="mt-1 text-accent hover:underline"
|
||||
>
|
||||
+ Neu erstellen
|
||||
+ Create new
|
||||
</button>
|
||||
</p>
|
||||
)}
|
||||
@@ -712,12 +712,12 @@ export default function WorkflowEditor() {
|
||||
<button
|
||||
onClick={e => {
|
||||
e.stopPropagation()
|
||||
if (confirm(`Workflow "${wf.name}" löschen?`)) {
|
||||
if (confirm(`Delete workflow "${wf.name}"?`)) {
|
||||
deleteMutation.mutate(wf.id)
|
||||
}
|
||||
}}
|
||||
className="opacity-0 group-hover:opacity-100 p-0.5 rounded hover:bg-red-100 hover:text-red-600 text-content-muted flex-shrink-0"
|
||||
title="Löschen"
|
||||
title="Delete"
|
||||
>
|
||||
<Trash2 size={12} />
|
||||
</button>
|
||||
@@ -730,7 +730,7 @@ export default function WorkflowEditor() {
|
||||
{typeLabel[wf.config.type]}
|
||||
</span>
|
||||
{!wf.is_active && (
|
||||
<span className="ml-1 text-xs text-content-muted">(inaktiv)</span>
|
||||
<span className="ml-1 text-xs text-content-muted">(inactive)</span>
|
||||
)}
|
||||
</button>
|
||||
))}
|
||||
@@ -742,7 +742,7 @@ export default function WorkflowEditor() {
|
||||
{/* Header */}
|
||||
<div className="px-6 py-4 border-b border-border-default bg-surface flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-xl font-semibold text-content">Workflow-Editor</h1>
|
||||
<h1 className="text-xl font-semibold text-content">Workflow Editor</h1>
|
||||
{selectedWorkflow && (
|
||||
<p className="text-sm text-content-muted mt-0.5">{selectedWorkflow.name}</p>
|
||||
)}
|
||||
@@ -752,7 +752,7 @@ export default function WorkflowEditor() {
|
||||
className="flex items-center gap-2 px-4 py-2 rounded-lg bg-accent text-white text-sm font-medium hover:bg-accent-hover transition-colors"
|
||||
>
|
||||
<Plus size={16} />
|
||||
Neuer Workflow
|
||||
New Workflow
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -768,16 +768,16 @@ export default function WorkflowEditor() {
|
||||
<div className="flex-1 flex items-center justify-center text-center">
|
||||
<div>
|
||||
<GitBranch size={48} className="mx-auto text-content-muted mb-4" />
|
||||
<p className="text-content-secondary font-medium">Kein Workflow ausgewählt</p>
|
||||
<p className="text-content-secondary font-medium">No workflow selected</p>
|
||||
<p className="text-sm text-content-muted mt-1">
|
||||
Wähle einen Workflow aus der Liste oder erstelle einen neuen.
|
||||
Select a workflow from the list or create a new one.
|
||||
</p>
|
||||
<button
|
||||
onClick={() => setShowNewModal(true)}
|
||||
className="mt-4 flex items-center gap-2 px-4 py-2 mx-auto rounded-lg bg-accent text-white text-sm font-medium hover:bg-accent-hover"
|
||||
>
|
||||
<Plus size={16} />
|
||||
Workflow erstellen
|
||||
Create workflow
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user