Skip to content

Commit

Permalink
i18n: improve tanslate of saved queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jingsam committed Aug 4, 2024
1 parent 482a40d commit e3ec0b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const QueryItemActions = ({
{visibility === 'project' && canCreateSQLSnippet && (
<DropdownMenuItem onClick={createPersonalCopy} className="flex gap-2">
<Copy size={14} />
复制到您的个人查询
复制到个人的查询
</DropdownMenuItem>
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const SQLEditorNavV1 = ({

{filteredFavoriteSnippets.length > 0 && (
<InnerSideMenuCollapsible className="editor-product-menu" defaultOpen>
<InnerSideMenuCollapsibleTrigger title="收藏夹" />
<InnerSideMenuCollapsibleTrigger title="收藏的查询" />
<InnerSideMenuCollapsibleContent>
<>
{filteredFavoriteSnippets.map((tabInfo) => (
Expand All @@ -253,7 +253,7 @@ export const SQLEditorNavV1 = ({

{personalSnippets.length > 0 && (
<InnerSideMenuCollapsible className="editor-product-menu" defaultOpen>
<InnerSideMenuCollapsibleTrigger title="您的个人查询" />
<InnerSideMenuCollapsibleTrigger title="个人的查询" />
<InnerSideMenuCollapsibleContent className="editor-product-menu">
<>
<div className="space-y-0.5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const SQLEditorNav = ({ searchText: _searchText }: SQLEditorNavProps) =>
<CollapsibleTrigger_Shadcn_ className={COLLAPSIBLE_TRIGGER_CLASS_NAMES}>
<ChevronRight size={16} className={COLLAPSIBLE_ICON_CLASS_NAMES} />
<span className={COLLASIBLE_HEADER_CLASS_NAMES}>
收藏{numFavoriteSnippets > 0 && ` (${numFavoriteSnippets}) 条`}
收藏的查询{numFavoriteSnippets > 0 && `${numFavoriteSnippets} 条)`}
</span>
</CollapsibleTrigger_Shadcn_>
<CollapsibleContent_Shadcn_ className="pt-2">
Expand Down Expand Up @@ -361,7 +361,7 @@ export const SQLEditorNav = ({ searchText: _searchText }: SQLEditorNavProps) =>
<CollapsibleTrigger_Shadcn_ className={COLLAPSIBLE_TRIGGER_CLASS_NAMES}>
<ChevronRight size={16} className={COLLAPSIBLE_ICON_CLASS_NAMES} />
<span className={COLLASIBLE_HEADER_CLASS_NAMES}>
Shared{numProjectSnippets > 0 && ` (${numProjectSnippets})`}
分享的查询{numProjectSnippets > 0 && `${numProjectSnippets} 条)`}
</span>
</CollapsibleTrigger_Shadcn_>
<CollapsibleContent_Shadcn_ className="pt-2">
Expand Down Expand Up @@ -413,8 +413,8 @@ export const SQLEditorNav = ({ searchText: _searchText }: SQLEditorNavProps) =>
<CollapsibleTrigger_Shadcn_ className={COLLAPSIBLE_TRIGGER_CLASS_NAMES}>
<ChevronRight size={16} className={COLLAPSIBLE_ICON_CLASS_NAMES} />
<span className={COLLASIBLE_HEADER_CLASS_NAMES}>
PRIVATE
{numPrivateSnippets > 0 && ` (${numPrivateSnippets})`}
个人的查询
{numPrivateSnippets > 0 && `${numPrivateSnippets}条)`}
</span>
</CollapsibleTrigger_Shadcn_>
<CollapsibleContent_Shadcn_ className="pt-2">
Expand Down Expand Up @@ -592,7 +592,7 @@ export const SQLEditorNav = ({ searchText: _searchText }: SQLEditorNavProps) =>
}
>
<p className="text-sm">
This action cannot be undone.{' '}
此操作无法撤销。{' '}
{selectedSnippets.length === 1
? `您确定想要删除 '${selectedSnippets[0]?.name}' 吗?`
: `您确定想要删除选中的 ${selectedSnippets.length} 条查询吗?`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const SQLEditorTreeViewItem = ({
onFocusCapture={(e) => e.stopPropagation()}
>
<Copy size={14} />
复制到您的个人查询
复制到个人的查询
</ContextMenuItem_Shadcn_>
)}
{onSelectDownload !== undefined && IS_PLATFORM && (
Expand Down

0 comments on commit e3ec0b9

Please sign in to comment.