diff --git a/client/src/pages/works/SimpleWorkReading.tsx b/client/src/pages/works/SimpleWorkReading.tsx
index 0edf1f0..487b24c 100644
--- a/client/src/pages/works/SimpleWorkReading.tsx
+++ b/client/src/pages/works/SimpleWorkReading.tsx
@@ -683,7 +683,7 @@ export default function SimpleWorkReading() {
Parallel View
Select a second translation to enable parallel view
- {translations && translations.length > 0 && (
+ {translations && translations.length > 0 ? (
{translations
.filter(t => t.id !== selectedTranslationId)
@@ -700,6 +700,11 @@ export default function SimpleWorkReading() {
))
}
+ ) : (
+
+
No translations available for this work.
+
Try another work or check back later as we add more translations.
+
)}
)}
diff --git a/server/storage.ts b/server/storage.ts
index 9bae22e..117ace5 100644
--- a/server/storage.ts
+++ b/server/storage.ts
@@ -529,6 +529,37 @@ export class MemStorage implements IStorage {
this.addTagToWork(eugeneOnegin.id, novelTag.id);
this.addTagToWork(eugeneOnegin.id, verseTag.id);
+ // Add translations for Eugene Onegin
+ const eugeneOneginEnglish = this.createTranslation({
+ workId: eugeneOnegin.id,
+ translatorId: translator.id,
+ language: "English",
+ year: 1964,
+ title: "Eugene Onegin (Nabokov Translation)",
+ content: "Sample content of Nabokov's English translation of Eugene Onegin...",
+ description: "Vladimir Nabokov's renowned literal translation that focuses on precision and accuracy at the expense of poetic form."
+ });
+
+ const eugeneOneginModernEnglish = this.createTranslation({
+ workId: eugeneOnegin.id,
+ translatorId: scholar.id,
+ language: "English",
+ year: 2008,
+ title: "Eugene Onegin (Modern Translation)",
+ content: "Sample content of a modern English translation of Eugene Onegin...",
+ description: "A modern translation that attempts to balance accuracy with poetic rhythm and flow."
+ });
+
+ const eugeneOneginFrench = this.createTranslation({
+ workId: eugeneOnegin.id,
+ translatorId: translator.id,
+ language: "French",
+ year: 1960,
+ title: "Eugène Onéguine",
+ content: "Sample content of French translation of Eugene Onegin...",
+ description: "A French translation that captures the spirit and elegance of Pushkin's original verse novel."
+ });
+
const bronzeHorseman = this.createWork({
title: "The Bronze Horseman",
slug: "the-bronze-horseman",