mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: adjust translation (#3734)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Filter } from '@affine/env/filter';
|
||||
import type { PropertiesMeta } from '@affine/env/filter';
|
||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||
import { CloseIcon, PlusIcon } from '@blocksuite/icons';
|
||||
import { Button } from '@toeverything/components/button';
|
||||
import { IconButton } from '@toeverything/components/button';
|
||||
@@ -18,6 +19,7 @@ export const FilterList = ({
|
||||
onChange: (value: Filter[]) => void;
|
||||
propertiesMeta: PropertiesMeta;
|
||||
}) => {
|
||||
const t = useAFFiNEI18N();
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@@ -66,7 +68,7 @@ export const FilterList = ({
|
||||
iconPosition="end"
|
||||
style={{ fontSize: 'var(--affine-font-xs)', padding: '0 8px' }}
|
||||
>
|
||||
Add Filters
|
||||
{t['Add Filter']()}
|
||||
</Button>
|
||||
) : (
|
||||
<IconButton size="small">
|
||||
|
||||
@@ -145,7 +145,7 @@ export const TrashOperationCell = ({
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<Confirm
|
||||
title={t['Delete permanently?']()}
|
||||
title={`${t['Delete permanently']()}?`}
|
||||
content={t['TrashButtonGroupDescription']()}
|
||||
confirmText={t['Delete']()}
|
||||
confirmType="error"
|
||||
|
||||
@@ -219,7 +219,7 @@ export const EditCollection = ({
|
||||
minHeight: '200px',
|
||||
}}
|
||||
>
|
||||
<div className={styles.filterTitle}>Filters</div>
|
||||
<div className={styles.filterTitle}>{t['Filters']()}</div>
|
||||
<FilterList
|
||||
propertiesMeta={propertiesMeta}
|
||||
value={value.filterList}
|
||||
@@ -251,7 +251,7 @@ export const EditCollection = ({
|
||||
<div style={{ marginTop: 20 }}>
|
||||
<Input
|
||||
data-testid="input-collection-title"
|
||||
placeholder="Untitled Collection"
|
||||
placeholder={t['Untitled Collection']()}
|
||||
defaultValue={value.name}
|
||||
onChange={text =>
|
||||
onChange({
|
||||
@@ -316,7 +316,7 @@ export const SaveCollectionButton = ({
|
||||
size="large"
|
||||
style={{ padding: '7px 8px' }}
|
||||
>
|
||||
Save As Collection
|
||||
{t['Save As New Collection']()}
|
||||
</Button>
|
||||
<EditCollectionModel
|
||||
title={t['Save As New Collection']()}
|
||||
|
||||
Reference in New Issue
Block a user