From 8f148e48c054a8dadb8ae273d2ec93b80c9a1d34 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Mon, 17 Nov 2025 00:02:07 -0800 Subject: [PATCH] update languages and add console end indicator --- src/components/Shakespeare/PreviewPane.tsx | 40 ++++++++++++---------- src/locales/en.json | 2 ++ src/locales/ha.json | 2 ++ src/locales/ig.json | 2 ++ src/locales/pt.json | 2 ++ src/locales/yo.json | 2 ++ src/locales/zh.json | 2 ++ 7 files changed, 33 insertions(+), 19 deletions(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 32bad4f2..2334afa6 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -10,7 +10,7 @@ import { useBuildProject } from '@/hooks/useBuildProject'; import { Tabs, TabsContent } from '@/components/ui/tabs'; import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area'; import { Button } from '@/components/ui/button'; -import { FolderOpen, ArrowLeft, Bug, Copy, Check, Play, Loader2, MenuIcon, Code, Rocket, Terminal, Trash2 } from 'lucide-react'; +import { FolderOpen, ArrowLeft, Bug, Copy, Check, Play, Loader2, MenuIcon, Code, Rocket, Terminal, Trash2, ChevronRight } from 'lucide-react'; import { useIsMobile } from '@/hooks/useIsMobile'; import { GitStatusIndicator } from '@/components/GitStatusIndicator'; import { BrowserAddressBar } from '@/components/ui/browser-address-bar'; @@ -661,18 +661,16 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o size="sm" onClick={() => setSortOrder(sortOrder === 'newest-first' ? 'oldest-first' : 'newest-first')} className="h-8 text-muted-foreground hover:text-foreground" - title={sortOrder === 'newest-first' ? 'Latest First' : 'Oldest First'} > - {sortOrder === 'newest-first' ? 'Latest First' : 'Oldest First'} + {sortOrder === 'newest-first' ? t('latestFirst') : t('oldestFirst')} )} @@ -682,21 +680,25 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o {/* Messages */}
- {messageCount === 0 ? ( -
-

No console messages

-

Messages from your project will appear here

+ {/* Console prompt indicator - at top for newest-first, bottom for oldest-first */} + {sortOrder === 'newest-first' && ( +
+ +
+ )} + {messages.map((msg, index) => ( + + ))} + {sortOrder === 'oldest-first' && ( +
+
- ) : ( - messages.map((msg, index) => ( - - )) )}
diff --git a/src/locales/en.json b/src/locales/en.json index 8f88ef58..6de4286d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -87,6 +87,8 @@ "add": "Add", "remove": "Remove", "retry": "Retry", + "latestFirst": "Latest First", + "oldestFirst": "Oldest First", "name": "Name", "email": "Email", "buildNostrApps": "Build apps with AI", diff --git a/src/locales/ha.json b/src/locales/ha.json index 54be4ae1..a68f3517 100644 --- a/src/locales/ha.json +++ b/src/locales/ha.json @@ -83,6 +83,8 @@ "add": "Ƙara", "remove": "Cire", "retry": "Sake gwadawa", + "latestFirst": "Na Baya-bayan nan Da farko", + "oldestFirst": "Na Dā Da farko", "name": "Suna", "email": "Imel", "buildNostrApps": "Gina aikace-aikace da AI", diff --git a/src/locales/ig.json b/src/locales/ig.json index 922b34b9..ac206969 100644 --- a/src/locales/ig.json +++ b/src/locales/ig.json @@ -83,6 +83,8 @@ "add": "Tinye", "remove": "Wepụ", "retry": "Nwaa ọzọ", + "latestFirst": "Nke Ọhụrụ Mbụ", + "oldestFirst": "Nke Ochie Mbụ", "name": "Aha", "email": "Ozi-eletrọniki", "buildNostrApps": "Wuo ngwa na AI", diff --git a/src/locales/pt.json b/src/locales/pt.json index 3b9bc08a..2be1227c 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -83,6 +83,8 @@ "add": "Adicionar", "remove": "Remover", "retry": "Tentar novamente", + "latestFirst": "Mais Recentes Primeiro", + "oldestFirst": "Mais Antigos Primeiro", "name": "Nome", "email": "Email", "buildNostrApps": "Construa aplicativos com IA", diff --git a/src/locales/yo.json b/src/locales/yo.json index 916f7618..063f0c71 100644 --- a/src/locales/yo.json +++ b/src/locales/yo.json @@ -83,6 +83,8 @@ "add": "Fi kun", "remove": "Yọ kuro", "retry": "Tun gbiyanju", + "latestFirst": "Tuntun Akọkọ", + "oldestFirst": "Atijọ Akọkọ", "name": "Orukọ", "email": "Imeeli", "buildNostrApps": "Kọ awọn ohun elo pẹlu AI", diff --git a/src/locales/zh.json b/src/locales/zh.json index ef097093..bf8c7019 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -83,6 +83,8 @@ "add": "添加", "remove": "移除", "retry": "重试", + "latestFirst": "最新优先", + "oldestFirst": "最旧优先", "name": "名称", "email": "邮箱", "buildNostrApps": "使用AI构建应用",