This commit is contained in:
Tom Moor
2021-02-18 21:05:21 -08:00
parent 9efed11a3e
commit 568e271738

View File

@@ -134,19 +134,21 @@ function ImportExport() {
)} )}
{file && !isImportable && ( {file && !isImportable && (
<ImportPreview> <ImportPreview>
<Trans> <Trans
Sorry, the file <strong>{{ fileName: file.name }}</strong> is defaults="Sorry, the file <em>{{ fileName }}</em> is missing valid collections or documents."
missing valid collections or documents. values={{ fileName: file.name }}
</Trans> components={{ em: <strong /> }}
/>
</ImportPreview> </ImportPreview>
)} )}
{file && importDetails && isImportable ? ( {file && importDetails && isImportable ? (
<> <>
<ImportPreview as="div"> <ImportPreview as="div">
<Trans> <Trans
<strong>{{ fileName: file.name }}</strong> looks good, the defaults="<em>{{ fileName }}</em> looks good, the following collections and their documents will be imported:"
following collections and their documents will be imported: values={{ fileName: file.name }}
</Trans> components={{ em: <strong /> }}
/>
<List> <List>
{importDetails {importDetails
.filter((detail) => detail.type === "collection") .filter((detail) => detail.type === "collection")
@@ -175,12 +177,11 @@ function ImportExport() {
<h1>{t("Export")}</h1> <h1>{t("Export")}</h1>
<HelpText> <HelpText>
<Trans> <Trans
A full export might take some time, consider exporting a single defaults="A full export might take some time, consider exporting a single document or collection if possible. Well put together a zip of all your documents in Markdown format and email it to <em>{{ userEmail }}</em>."
document or collection if possible. Well put together a zip of all values={{ userEmail: user.email }}
your documents in Markdown format and email it to{" "} components={{ em: <strong /> }}
<strong>{{ userEmail: user.email }}</strong>. />
</Trans>
</HelpText> </HelpText>
<Button <Button
type="submit" type="submit"