Trying to chase missing translations (#3441)

This commit is contained in:
Limezy
2022-05-18 03:01:00 +07:00
committed by GitHub
parent 19de348c85
commit 5658090d7e
9 changed files with 50 additions and 24 deletions

View File

@@ -18,6 +18,8 @@ import useKeyDown from "~/hooks/useKeyDown";
import usePolicy from "~/hooks/usePolicy";
import useStores from "~/hooks/useStores";
import useToasts from "~/hooks/useToasts";
import useUserLocale from "~/hooks/useUserLocale";
import { dateLocale } from "~/utils/i18n";
type Props = {
document: Document;
@@ -109,6 +111,9 @@ function SharePopover({
}, 250);
}, [t, onRequestClose, showToast]);
const userLocale = useUserLocale();
const locale = userLocale ? dateLocale(userLocale) : undefined;
return (
<>
<Heading>
@@ -156,6 +161,7 @@ function SharePopover({
Date.parse(share?.lastAccessedAt),
{
addSuffix: true,
locale,
}
),
})}