diff --git a/public/i18n/en.json b/public/i18n/en.json index b3fb8de..eb32a20 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -26,7 +26,8 @@ "view_payment_details": "View payment details", "pending": "Pending", "error_safe_mode": "Mutiny is running in safe mode. Lightning is disabled.", - "self_hosted": "Self-hosted" + "self_hosted": "Self-hosted", + "expires": "Expires in {{time}}" }, "home": { "receive": "Receive your first sats", diff --git a/src/components/GenericItem.tsx b/src/components/GenericItem.tsx index cff891c..45441d6 100644 --- a/src/components/GenericItem.tsx +++ b/src/components/GenericItem.tsx @@ -2,6 +2,7 @@ import { Check, Clock4, EyeOff, Globe, X, Zap } from "lucide-solid"; import { JSX, Match, Show, Switch } from "solid-js"; import { LabelCircle, LoadingSpinner } from "~/components"; +import { useI18n } from "~/i18n/context"; export function GenericItem(props: { primaryAvatarUrl?: string; @@ -27,6 +28,8 @@ export function GenericItem(props: { rejectAction?: () => void; shouldSpinny?: boolean; }) { + const i18n = useI18n(); + return (
- {props.due} + {i18n.t("common.expires", { time: props.due })}