chore: update i18n

This commit is contained in:
Steven
2024-05-29 07:39:16 +08:00
parent 6010139291
commit 719c22fef8
5 changed files with 18 additions and 12 deletions

View File

@ -61,46 +61,46 @@ const UserStatisticsView = (props: Props) => {
<div className="w-full flex justify-between items-center"> <div className="w-full flex justify-between items-center">
<div className="w-auto flex justify-start items-center"> <div className="w-auto flex justify-start items-center">
<Icon.CalendarDays className="w-4 h-auto mr-1" /> <Icon.CalendarDays className="w-4 h-auto mr-1" />
<span className="block text-base sm:text-sm">{t("common.days")}</span> <span className="block text-base sm:text-sm">Days</span>
</div> </div>
<span>{days}</span> <span>{days}</span>
</div> </div>
<div className="w-full flex justify-between items-center"> <div className="w-full flex justify-between items-center">
<div className="w-auto flex justify-start items-center"> <div className="w-auto flex justify-start items-center">
<Icon.Library className="w-4 h-auto mr-1" /> <Icon.Library className="w-4 h-auto mr-1" />
<span className="block text-base sm:text-sm">{t("common.memos")}</span> <span className="block text-base sm:text-sm">Memos</span>
</div> </div>
{isRequesting ? <Icon.Loader className="animate-spin w-4 h-auto text-gray-400" /> : <span className="">{memoAmount}</span>} {isRequesting ? <Icon.Loader className="animate-spin w-4 h-auto text-gray-400" /> : <span className="">{memoAmount}</span>}
</div> </div>
<Divider className="!my-1 opacity-50" /> <Divider className="!my-1 opacity-50" />
<div className="w-full mt-1 flex flex-row justify-start items-center gap-x-2 gap-y-1 flex-wrap"> <div className="w-full mt-1 flex flex-row justify-start items-center gap-x-2 gap-y-1 flex-wrap">
<div <div
className="w-auto border dark:border-zinc-800 px-1 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80" className="w-auto border dark:border-zinc-800 pl-1 pr-1.5 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80"
onClick={() => filterStore.setMemoPropertyFilter({ hasLink: true })} onClick={() => filterStore.setMemoPropertyFilter({ hasLink: true })}
> >
<div className="w-auto flex justify-start items-center mr-1"> <div className="w-auto flex justify-start items-center mr-1">
<Icon.Link className="w-4 h-auto mr-1" /> <Icon.Link className="w-4 h-auto mr-1" />
<span className="block text-sm">Links</span> <span className="block text-sm">{t("memo.links")}</span>
</div> </div>
<span className="text-sm truncate">{memoStats.links}</span> <span className="text-sm truncate">{memoStats.links}</span>
</div> </div>
<div <div
className="w-auto border dark:border-zinc-800 px-1 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80" className="w-auto border dark:border-zinc-800 pl-1 pr-1.5 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80"
onClick={() => filterStore.setMemoPropertyFilter({ hasTaskList: true })} onClick={() => filterStore.setMemoPropertyFilter({ hasTaskList: true })}
> >
<div className="w-auto flex justify-start items-center mr-1"> <div className="w-auto flex justify-start items-center mr-1">
<Icon.CheckCircle className="w-4 h-auto mr-1" /> <Icon.CheckCircle className="w-4 h-auto mr-1" />
<span className="block text-sm">Todos</span> <span className="block text-sm">{t("memo.to-do")}</span>
</div> </div>
<span className="text-sm truncate">{memoStats.todos}</span> <span className="text-sm truncate">{memoStats.todos}</span>
</div> </div>
<div <div
className="w-auto border dark:border-zinc-800 px-1 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80" className="w-auto border dark:border-zinc-800 pl-1 pr-1.5 rounded-md flex justify-between items-center cursor-pointer hover:opacity-80"
onClick={() => filterStore.setMemoPropertyFilter({ hasCode: true })} onClick={() => filterStore.setMemoPropertyFilter({ hasCode: true })}
> >
<div className="w-auto flex justify-start items-center mr-1"> <div className="w-auto flex justify-start items-center mr-1">
<Icon.Code2 className="w-4 h-auto mr-1" /> <Icon.Code2 className="w-4 h-auto mr-1" />
<span className="block text-sm">Code</span> <span className="block text-sm">{t("memo.code")}</span>
</div> </div>
<span className="text-sm truncate">{memoStats.code}</span> <span className="text-sm truncate">{memoStats.code}</span>
</div> </div>

View File

@ -116,7 +116,9 @@
"protected": "Workspace", "protected": "Workspace",
"public": "Public" "public": "Public"
}, },
"wrapping": "Wrapping" "links": "Links",
"to-do": "To-do",
"code": "Code"
}, },
"message": { "message": {
"archived-successfully": "Archived successfully", "archived-successfully": "Archived successfully",

View File

@ -116,7 +116,9 @@
"protected": "工作区", "protected": "工作区",
"public": "公开" "public": "公开"
}, },
"wrapping": "包装" "links": "链接",
"to-do": "待办",
"code": "代码"
}, },
"message": { "message": {
"archived-successfully": "归档成功", "archived-successfully": "归档成功",

View File

@ -116,7 +116,9 @@
"protected": "成員可見", "protected": "成員可見",
"public": "公開給所有人" "public": "公開給所有人"
}, },
"wrapping": "包裝" "links": "連結",
"to-do": "待辦",
"code": "代碼"
}, },
"message": { "message": {
"archived-successfully": "封存成功", "archived-successfully": "封存成功",

View File

@ -93,7 +93,7 @@ const Archived = () => {
<div className="w-full flex flex-row justify-between items-center mb-2"> <div className="w-full flex flex-row justify-between items-center mb-2">
<div className="flex flex-row justify-start items-center gap-1"> <div className="flex flex-row justify-start items-center gap-1">
<Icon.Archive className="w-5 h-auto opacity-70 shrink-0" /> <Icon.Archive className="w-5 h-auto opacity-70 shrink-0" />
<span className="font-medium">{t("common.archived")}</span> <span>{t("common.archived")}</span>
</div> </div>
<div className="w-44"> <div className="w-44">
<SearchBar /> <SearchBar />