translations

This commit is contained in:
Tom Moor committed 2025-04-12 15:22:44 -04:00
1 parent 30e477114a
commit b3c19ea9f0
2 files changed
+9 -6

No files matched your search

@@ -4,6 +4,7 @@ import * as React from "react";
import { useState, useRef } from "react";
import AvatarEditor from "react-avatar-editor";
import Dropzone from "react-dropzone";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
import { s } from "@shared/styles";
import { AttachmentPreset } from "@shared/types";
@@ -26,12 +27,13 @@ export type Props = {
const ImageUpload: React.FC<Props> = ({
onSuccess,
onError,
submitText = "Crop Image",
submitText,
borderRadius = 150,
children,
}) => {
const stores = useStores();
const { ui } = stores;
const { ui } = useStores();
const { t } = useTranslation();
submitText || t("Crop image");
const [isUploading, setIsUploading] = useState(false);
const [isCropping, setIsCropping] = useState(false);
@@ -120,7 +122,7 @@ const ImageUpload: React.FC<Props> = ({
/>
<br />
<ButtonLarge fullwidth onClick={handleCrop} disabled={isUploading}>
{isUploading ? "Uploading…" : submitText}
{isUploading ? `${t(`Uploading`)}…` : submitText}
</ButtonLarge>
</Flex>
</Modal>
+3 -2
View File
@@ -893,6 +893,8 @@
"No people left to add": "No people left to add",
"Date created": "Date created",
"Upload": "Upload",
"Crop image": "Crop image",
"Uploading": "Uploading",
"How does this work?": "How does this work?",
"You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.": "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open <em>Export</em> in the Settings sidebar and click on <em>Export Data</em>.",
"Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload",
@@ -1153,6 +1155,5 @@
"You updated {{ timeAgo }}": "You updated {{ timeAgo }}",
"{{ user }} updated {{ timeAgo }}": "{{ user }} updated {{ timeAgo }}",
"You created {{ timeAgo }}": "You created {{ timeAgo }}",
"{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}",
"Uploading": "Uploading"
"{{ user }} created {{ timeAgo }}": "{{ user }} created {{ timeAgo }}"
}