chore: adjust translation (#3734)

This commit is contained in:
JimmFly
2023-08-14 22:34:42 +08:00
committed by GitHub
parent f33fb98912
commit 1072db632e
19 changed files with 2439 additions and 1893 deletions
@@ -257,6 +257,7 @@ export const CollectionsList = ({ workspace }: CollectionsListProps) => {
() => savedCollections.filter(v => v.pinned),
[savedCollections]
);
const t = useAFFiNEI18N();
if (pinedCollections.length === 0) {
return (
<MenuItem
@@ -264,7 +265,7 @@ export const CollectionsList = ({ workspace }: CollectionsListProps) => {
icon={<InformationIcon />}
disabled
>
<span>Create a collection</span>
<span>{t['Create a collection']()}</span>
</MenuItem>
);
}