Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix translator path in ThreadList.tsx #1738

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Correct path name case
  • Loading branch information
hexart authored Jan 17, 2025
commit 25415cbff5ac40117e90c3f3830694cd2f865463
26 changes: 13 additions & 13 deletions frontend/src/components/LeftSidebar/ThreadList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function ThreadList({
if (!threadHistory || size(threadHistory?.timeGroupedThreads) === 0) {
return (
<Alert variant="info" className="m-3">
<Translator path="components.organisms.threadHistory.sidebar.threadList.noThreads" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.noThreads" />
</Alert>
);
}
Expand Down Expand Up @@ -137,7 +137,7 @@ export function ThreadList({

toast.promise(apiClient.renameThread(threadIdToRename, threadNewName), {
loading: (
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameThreadButton.renamingThread" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameThreadButton.renamingThread" />
),
success: () => {
setThreadNewName(undefined);
Expand All @@ -160,7 +160,7 @@ export function ThreadList({
return next;
});
return <div>
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameThreadButton.threadRenamed" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameThreadButton.threadRenamed" />
</div>;
},
error: (err) => {
Expand Down Expand Up @@ -192,18 +192,18 @@ export function ThreadList({
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>
<Translator path="components.organisms.threadHistory.sideBar.threadList.DeleteDialog.title" />
<Translator path="components.organisms.threadHistory.sideBar.ThreadList.DeleteDialog.title" />
</AlertDialogTitle>
<AlertDialogDescription>
<Translator path="components.organisms.threadHistory.sidebar.threadList.DeleteDialog.description" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.DeleteDialog.description" />
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter className="flex-row gap-2 sm:gap-0">
<AlertDialogCancel className="mt-0">
<Translator path="components.organisms.threadHistory.sidebar.threadList.DeleteDialog.cancel" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.DeleteDialog.cancel" />
</AlertDialogCancel>
<AlertDialogAction onClick={handleDeleteThread}>
<Translator path="components.organisms.threadHistory.sidebar.threadList.DeleteDialog.confirm" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.DeleteDialog.confirm" />
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
Expand All @@ -215,15 +215,15 @@ export function ThreadList({
<DialogContent>
<DialogHeader>
<DialogTitle>
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameDialog.title" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameDialog.title" />
</DialogTitle>
<DialogDescription>
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameDialog.description" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameDialog.description" />
</DialogDescription>
</DialogHeader>
<div className="my-6">
<Label htmlFor="name" className="text-right">
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameDialog.nameLabel" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameDialog.nameLabel" />
</Label>
<Input
id="name"
Expand All @@ -242,10 +242,10 @@ export function ThreadList({
variant="outline"
onClick={() => setThreadIdToRename(undefined)}
>
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameDialog.cancel" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameDialog.cancel" />
</Button>
<Button type="button" onClick={handleRenameThread}>
<Translator path="components.organisms.threadHistory.sidebar.threadList.RenameDialog.confirm" />
<Translator path="components.organisms.threadHistory.sidebar.ThreadList.RenameDialog.confirm" />
</Button>
</DialogFooter>
</DialogContent>
Expand All @@ -267,7 +267,7 @@ export function ThreadList({
isActive={isSelected}
className="relative truncate h-9 group/thread"
>
{thread.name || (<Translator path="components.organisms.threadHistory.sidebar.threadList.untitledConversation" />)}
{thread.name || (<Translator path="components.organisms.threadHistory.sidebar.ThreadList.untitledConversation" />)}
<div
className={cn(
'absolute w-10 bottom-0 top-0 right-0 bg-gradient-to-l from-[hsl(var(--sidebar-background))] to-transparent'
Expand Down
Loading