Skip to content

Commit

Permalink
更新翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
wx0322 committed Feb 9, 2023
1 parent 145b85f commit 827f788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion platform/i18n/src/locales/zh/SidePanel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"Studies": "检查",
"Measurements": "测量",
"Measure": "测量"
"Measure": "测量",
"Segmentation": "分割"
}
3 changes: 2 additions & 1 deletion platform/ui/src/components/SidePanel/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ function _getMoreThanOneTabLayout(
setActiveTabIndex: React.Dispatch<any>,
setPanelOpen: React.Dispatch<React.SetStateAction<boolean>>
) {
const { t } = useTranslation('SidePanel');
return (
<div
className="flex-static collapse-sidebar relative"
Expand Down Expand Up @@ -329,7 +330,7 @@ function _getMoreThanOneTabLayout(
/>
</span>
<span className="text-[10px] select-none font-medium whitespace-nowrap mt-[5px]">
{obj.label}
{t(obj.label) as string}
</span>
</div>
</SwiperSlide>
Expand Down

0 comments on commit 827f788

Please sign in to comment.