chore: extract lang
This commit is contained in:
parent
9edf5c1b5d
commit
4572b69d43
@ -1,6 +1,7 @@
|
|||||||
import { ProxyImg } from "Element/ProxyImg";
|
import { ProxyImg } from "Element/ProxyImg";
|
||||||
import React, { MouseEvent, useEffect, useState } from "react";
|
import React, { MouseEvent, useEffect, useState } from "react";
|
||||||
import { FormattedMessage, FormattedNumber } from "react-intl";
|
import { FormattedMessage, FormattedNumber } from "react-intl";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import "./MediaElement.css";
|
import "./MediaElement.css";
|
||||||
import Modal from "Element/Modal";
|
import Modal from "Element/Modal";
|
||||||
@ -11,7 +12,6 @@ import { useWallet } from "Wallet";
|
|||||||
import { PaymentsCache } from "Cache/PaymentsCache";
|
import { PaymentsCache } from "Cache/PaymentsCache";
|
||||||
import { Payment } from "Db";
|
import { Payment } from "Db";
|
||||||
import PageSpinner from "Element/PageSpinner";
|
import PageSpinner from "Element/PageSpinner";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
[
|
[
|
||||||
"imeta",
|
"imeta",
|
||||||
@ -137,11 +137,27 @@ export function MediaElement(props: MediaElementProps) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<AsyncButton onClick={() => payInvoice()}>
|
{wallet.wallet && (
|
||||||
<FormattedMessage defaultMessage="Pay Now" />
|
<AsyncButton onClick={() => payInvoice()}>
|
||||||
</AsyncButton>
|
<FormattedMessage defaultMessage="Pay Now" />
|
||||||
|
</AsyncButton>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{!wallet.wallet && (
|
||||||
|
<b>
|
||||||
|
<FormattedMessage
|
||||||
|
defaultMessage="Please connect a wallet {here} to be able to pay this invoice"
|
||||||
|
values={{
|
||||||
|
here: (
|
||||||
|
<Link to="/settings/wallet" onClick={e => e.stopPropagation()}>
|
||||||
|
<FormattedMessage defaultMessage="here" description="Inline link text pointing to another page" />
|
||||||
|
</Link>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</b>
|
||||||
|
)}
|
||||||
{error && <b className="error">{error}</b>}
|
{error && <b className="error">{error}</b>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
"0BUTMv": {
|
"0BUTMv": {
|
||||||
"defaultMessage": "Search..."
|
"defaultMessage": "Search..."
|
||||||
},
|
},
|
||||||
|
"0ehN4t": {
|
||||||
|
"defaultMessage": "Please connect a wallet {here} to be able to pay this invoice"
|
||||||
|
},
|
||||||
"0jOEtS": {
|
"0jOEtS": {
|
||||||
"defaultMessage": "Invalid LNURL"
|
"defaultMessage": "Invalid LNURL"
|
||||||
},
|
},
|
||||||
@ -96,6 +99,10 @@
|
|||||||
"2ukA4d": {
|
"2ukA4d": {
|
||||||
"defaultMessage": "{n} hours"
|
"defaultMessage": "{n} hours"
|
||||||
},
|
},
|
||||||
|
"380eol": {
|
||||||
|
"defaultMessage": "here",
|
||||||
|
"description": "Inline link text pointing to another page"
|
||||||
|
},
|
||||||
"3Rx6Qo": {
|
"3Rx6Qo": {
|
||||||
"defaultMessage": "Advanced"
|
"defaultMessage": "Advanced"
|
||||||
},
|
},
|
||||||
@ -218,6 +225,9 @@
|
|||||||
"9pMqYs": {
|
"9pMqYs": {
|
||||||
"defaultMessage": "Nostr Address"
|
"defaultMessage": "Nostr Address"
|
||||||
},
|
},
|
||||||
|
"9qtLJC": {
|
||||||
|
"defaultMessage": "Payment Required"
|
||||||
|
},
|
||||||
"9wO4wJ": {
|
"9wO4wJ": {
|
||||||
"defaultMessage": "Lightning Invoice"
|
"defaultMessage": "Lightning Invoice"
|
||||||
},
|
},
|
||||||
@ -313,6 +323,9 @@
|
|||||||
"Dh3hbq": {
|
"Dh3hbq": {
|
||||||
"defaultMessage": "Auto Zap"
|
"defaultMessage": "Auto Zap"
|
||||||
},
|
},
|
||||||
|
"DqLx9k": {
|
||||||
|
"defaultMessage": "You must pay {n} sats to access this file."
|
||||||
|
},
|
||||||
"Dt/Zd5": {
|
"Dt/Zd5": {
|
||||||
"defaultMessage": "Media in posts will automatically be shown for selected people, otherwise only the link will show"
|
"defaultMessage": "Media in posts will automatically be shown for selected people, otherwise only the link will show"
|
||||||
},
|
},
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
"08zn6O": "Export Keys",
|
"08zn6O": "Export Keys",
|
||||||
"0Azlrb": "Manage",
|
"0Azlrb": "Manage",
|
||||||
"0BUTMv": "Search...",
|
"0BUTMv": "Search...",
|
||||||
|
"0ehN4t": "Please connect a wallet {here} to be able to pay this invoice",
|
||||||
"0jOEtS": "Invalid LNURL",
|
"0jOEtS": "Invalid LNURL",
|
||||||
"0mch2Y": "name has disallowed characters",
|
"0mch2Y": "name has disallowed characters",
|
||||||
"0yO7wF": "{n} secs",
|
"0yO7wF": "{n} secs",
|
||||||
@ -31,6 +32,7 @@
|
|||||||
"2a2YiP": "{n} Bookmarks",
|
"2a2YiP": "{n} Bookmarks",
|
||||||
"2k0Cv+": "Dislikes ({n})",
|
"2k0Cv+": "Dislikes ({n})",
|
||||||
"2ukA4d": "{n} hours",
|
"2ukA4d": "{n} hours",
|
||||||
|
"380eol": "here",
|
||||||
"3Rx6Qo": "Advanced",
|
"3Rx6Qo": "Advanced",
|
||||||
"3cc4Ct": "Light",
|
"3cc4Ct": "Light",
|
||||||
"3gOsZq": "Translators",
|
"3gOsZq": "Translators",
|
||||||
@ -71,6 +73,7 @@
|
|||||||
"9WRlF4": "Send",
|
"9WRlF4": "Send",
|
||||||
"9gqH2W": "Login",
|
"9gqH2W": "Login",
|
||||||
"9pMqYs": "Nostr Address",
|
"9pMqYs": "Nostr Address",
|
||||||
|
"9qtLJC": "Payment Required",
|
||||||
"9wO4wJ": "Lightning Invoice",
|
"9wO4wJ": "Lightning Invoice",
|
||||||
"ADmfQT": "Parent",
|
"ADmfQT": "Parent",
|
||||||
"AGNz71": "Zap All {n} sats",
|
"AGNz71": "Zap All {n} sats",
|
||||||
@ -102,6 +105,7 @@
|
|||||||
"DZzCem": "Show latest {n} notes",
|
"DZzCem": "Show latest {n} notes",
|
||||||
"DcL8P+": "Supporter",
|
"DcL8P+": "Supporter",
|
||||||
"Dh3hbq": "Auto Zap",
|
"Dh3hbq": "Auto Zap",
|
||||||
|
"DqLx9k": "You must pay {n} sats to access this file.",
|
||||||
"Dt/Zd5": "Media in posts will automatically be shown for selected people, otherwise only the link will show",
|
"Dt/Zd5": "Media in posts will automatically be shown for selected people, otherwise only the link will show",
|
||||||
"DtYelJ": "Transfer",
|
"DtYelJ": "Transfer",
|
||||||
"E8a4yq": "Follow some popular accounts",
|
"E8a4yq": "Follow some popular accounts",
|
||||||
@ -418,4 +422,4 @@
|
|||||||
"zjJZBd": "You're ready!",
|
"zjJZBd": "You're ready!",
|
||||||
"zonsdq": "Failed to load LNURL service",
|
"zonsdq": "Failed to load LNURL service",
|
||||||
"zvCDao": "Automatically show latest notes"
|
"zvCDao": "Automatically show latest notes"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user