chore(translations): add missing translation keys
This commit is contained in:
@@ -76,7 +76,7 @@ const MyShares = () => {
|
||||
modals,
|
||||
config.get("smtp.enabled"),
|
||||
config.get("share.maxExpiration"),
|
||||
getReverseShares,
|
||||
getReverseShares
|
||||
)
|
||||
}
|
||||
leftIcon={<TbPlus size={20} />}
|
||||
@@ -133,10 +133,10 @@ const MyShares = () => {
|
||||
<Text size="sm">
|
||||
{reverseShare.shares.length == 1
|
||||
? `1 ${t(
|
||||
"account.reverseShares.table.count.singular",
|
||||
"account.reverseShares.table.count.singular"
|
||||
)}`
|
||||
: `${reverseShare.shares.length} ${t(
|
||||
"account.reverseShares.table.count.plural",
|
||||
"account.reverseShares.table.count.plural"
|
||||
)}`}
|
||||
</Text>
|
||||
</Accordion.Control>
|
||||
@@ -158,9 +158,11 @@ const MyShares = () => {
|
||||
onClick={() => {
|
||||
if (window.isSecureContext) {
|
||||
clipboard.copy(
|
||||
`${window.location.origin}/s/${share.id}`,
|
||||
`${window.location.origin}/s/${share.id}`
|
||||
);
|
||||
toast.success(
|
||||
t("common.notify.copied-link")
|
||||
);
|
||||
toast.success(t("common.notify.copied"));
|
||||
} else {
|
||||
showShareLinkModal(modals, share.id);
|
||||
}
|
||||
@@ -195,13 +197,13 @@ const MyShares = () => {
|
||||
clipboard.copy(
|
||||
`${window.location.origin}/upload/${
|
||||
reverseShare.token
|
||||
}`,
|
||||
}`
|
||||
);
|
||||
toast.success(t("common.notify.copied"));
|
||||
toast.success(t("common.notify.copied-link"));
|
||||
} else {
|
||||
showReverseShareLinkModal(
|
||||
modals,
|
||||
reverseShare.token,
|
||||
reverseShare.token
|
||||
);
|
||||
}
|
||||
}}
|
||||
@@ -215,7 +217,7 @@ const MyShares = () => {
|
||||
onClick={() => {
|
||||
modals.openConfirmModal({
|
||||
title: t(
|
||||
"account.reverseShares.modal.delete.title",
|
||||
"account.reverseShares.modal.delete.title"
|
||||
),
|
||||
children: (
|
||||
<Text size="sm">
|
||||
@@ -233,8 +235,8 @@ const MyShares = () => {
|
||||
shareService.removeReverseShare(reverseShare.id);
|
||||
setReverseShares(
|
||||
reverseShares.filter(
|
||||
(item) => item.id !== reverseShare.id,
|
||||
),
|
||||
(item) => item.id !== reverseShare.id
|
||||
)
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -108,7 +108,7 @@ const MyShares = () => {
|
||||
showShareInformationsModal(
|
||||
modals,
|
||||
share,
|
||||
parseInt(config.get("share.maxSize")),
|
||||
parseInt(config.get("share.maxSize"))
|
||||
);
|
||||
}}
|
||||
>
|
||||
@@ -121,9 +121,9 @@ const MyShares = () => {
|
||||
onClick={() => {
|
||||
if (window.isSecureContext) {
|
||||
clipboard.copy(
|
||||
`${window.location.origin}/s/${share.id}`,
|
||||
`${window.location.origin}/s/${share.id}`
|
||||
);
|
||||
toast.success(t("common.notify.copied"));
|
||||
toast.success(t("common.notify.copied-link"));
|
||||
} else {
|
||||
showShareLinkModal(modals, share.id);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ const MyShares = () => {
|
||||
onConfirm: () => {
|
||||
shareService.remove(share.id);
|
||||
setShares(
|
||||
shares.filter((item) => item.id !== share.id),
|
||||
shares.filter((item) => item.id !== share.id)
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -22,11 +22,11 @@ import LogoConfigInput from "../../../components/admin/configuration/LogoConfigI
|
||||
import TestEmailButton from "../../../components/admin/configuration/TestEmailButton";
|
||||
import CenterLoader from "../../../components/core/CenterLoader";
|
||||
import useConfig from "../../../hooks/config.hook";
|
||||
import useTranslate from "../../../hooks/useTranslate.hook";
|
||||
import configService from "../../../services/config.service";
|
||||
import { AdminConfig, UpdateConfig } from "../../../types/config.type";
|
||||
import { camelToKebab } from "../../../utils/string.util";
|
||||
import toast from "../../../utils/toast.util";
|
||||
import useTranslate from "../../../hooks/useTranslate.hook";
|
||||
|
||||
export default function AppShellDemo() {
|
||||
const theme = useMantineTheme();
|
||||
@@ -52,9 +52,7 @@ export default function AppShellDemo() {
|
||||
.changeLogo(logo)
|
||||
.then(() => {
|
||||
setLogo(null);
|
||||
toast.success(
|
||||
"Logo updated successfully. It may take a few minutes to update on the website.",
|
||||
);
|
||||
toast.success(t("admin.config.notify.logo-success"));
|
||||
})
|
||||
.catch(toast.axiosError);
|
||||
}
|
||||
@@ -64,12 +62,12 @@ export default function AppShellDemo() {
|
||||
.updateMany(updatedConfigVariables)
|
||||
.then(() => {
|
||||
setUpdatedConfigVariables([]);
|
||||
toast.success("Configurations updated successfully");
|
||||
toast.success(t("admin.config.notify.success"));
|
||||
})
|
||||
.catch(toast.axiosError);
|
||||
void config.refresh();
|
||||
} else {
|
||||
toast.success("No changes to save");
|
||||
toast.success(t("admin.config.notify.no-changes"));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -79,7 +77,7 @@ export default function AppShellDemo() {
|
||||
}
|
||||
|
||||
const index = updatedConfigVariables.findIndex(
|
||||
(item) => item.key === configVariable.key,
|
||||
(item) => item.key === configVariable.key
|
||||
);
|
||||
|
||||
if (index > -1) {
|
||||
@@ -146,7 +144,7 @@ export default function AppShellDemo() {
|
||||
<Title order={6}>
|
||||
<FormattedMessage
|
||||
id={`admin.config.${camelToKebab(
|
||||
configVariable.key,
|
||||
configVariable.key
|
||||
)}`}
|
||||
/>
|
||||
</Title>
|
||||
@@ -161,7 +159,7 @@ export default function AppShellDemo() {
|
||||
>
|
||||
<FormattedMessage
|
||||
id={`admin.config.${camelToKebab(
|
||||
configVariable.key,
|
||||
configVariable.key
|
||||
)}.description`}
|
||||
values={{ br: <br /> }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user