Handle several translation issues (#6820)

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
一颗小土豆
2024-04-17 22:11:54 +08:00
committed by GitHub
parent 89e88c1afd
commit 2a5c13c2ba
4 changed files with 5 additions and 4 deletions

View File

@@ -831,7 +831,7 @@ export const permanentlyDeleteDocument = createAction({
});
export const permanentlyDeleteDocumentsInTrash = createAction({
name: ({ t }) => t("Empty"),
name: ({ t }) => t("Empty trash"),
analyticsName: "Empty trash",
section: TrashSection,
icon: <TrashIcon />,

View File

@@ -51,7 +51,7 @@ function APITokenNew({ onSubmit }: Props) {
<Flex>
<Input
type="text"
label="Name"
label={t("Name")}
onChange={handleNameChange}
value={name}
required
@@ -60,7 +60,7 @@ function APITokenNew({ onSubmit }: Props) {
/>
</Flex>
<Button type="submit" disabled={isSaving || !name}>
{isSaving ? "Creating…" : "Create"}
{isSaving ? `${t("Creating")}` : t("Create")}
</Button>
</form>
);

View File

@@ -27,7 +27,7 @@ function Trash() {
action={permanentlyDeleteDocumentsInTrash}
context={context}
>
Empty
{t("Empty trash")}
</Button>
)
}

View File

@@ -63,6 +63,7 @@
"Move {{ documentType }}": "Move {{ documentType }}",
"Archive": "Archive",
"Document archived": "Document archived",
"Empty trash": "Empty trash",
"Delete {{ documentName }}": "Delete {{ documentName }}",
"Permanently delete": "Permanently delete",
"Permanently delete {{ documentName }}": "Permanently delete {{ documentName }}",