Fixup lang
This commit is contained in:
@ -46,7 +46,7 @@ export function EmojiPack({ ev }: { ev: NostrEvent }) {
|
||||
<AsyncButton
|
||||
className={`btn btn-small btn-primary ${isUsed ? "delete-button" : ""}`}
|
||||
onClick={toggleEmojiPack}>
|
||||
<FormattedMessage defaultMessage={isUsed ? "Remove" : "Add"} />
|
||||
{isUsed ? <FormattedMessage defaultMessage="Remove" /> : <FormattedMessage defaultMessage="Add" />}
|
||||
</AsyncButton>
|
||||
)}
|
||||
</div>
|
||||
|
@ -53,7 +53,7 @@ export function LoggedInFollowButton({ tag, value }: { tag: "p" | "t"; value: st
|
||||
type="button"
|
||||
className="btn btn-primary"
|
||||
onClick={isFollowing ? unfollow : follow}>
|
||||
<FormattedMessage defaultMessage={isFollowing ? "Unfollow" : "Follow"} />
|
||||
{isFollowing ? <FormattedMessage defaultMessage="Unfollow" /> : <FormattedMessage defaultMessage="Follow" />}
|
||||
</AsyncButton>
|
||||
);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ export function LoggedInMuteButton({ pubkey }: { pubkey: string }) {
|
||||
|
||||
return (
|
||||
<AsyncButton type="button" className="btn delete-button" onClick={() => (isMuted ? unmute() : mute())}>
|
||||
<FormattedMessage defaultMessage={isMuted ? "Unmute" : "Mute"} />
|
||||
{isMuted ? <FormattedMessage defaultMessage="Unmute" /> : <FormattedMessage defaultMessage="Mute" />}
|
||||
</AsyncButton>
|
||||
);
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ export function SendZaps({ lnurl, pubkey, aTag, eTag, targetName, onFinish }: Se
|
||||
<div>
|
||||
<small>
|
||||
<FormattedMessage
|
||||
defaultMessage={"Zap amount in {currency}"}
|
||||
defaultMessage="Zap amount in {currency}"
|
||||
values={{ amount: isFiat ? "USD" : "sats" }}
|
||||
/>
|
||||
</small>
|
||||
|
@ -184,7 +184,7 @@ function CardDialog({ header, cta, cancelCta, card, onSave, onCancel }: CardDial
|
||||
return (
|
||||
<div className="new-card">
|
||||
<h3>
|
||||
<FormattedMessage defaultMessage={header || "Add card"} />
|
||||
{header || <FormattedMessage defaultMessage="Add card" />}
|
||||
</h3>
|
||||
<div className="form-control">
|
||||
<label htmlFor="card-title">
|
||||
@ -236,10 +236,10 @@ function CardDialog({ header, cta, cancelCta, card, onSave, onCancel }: CardDial
|
||||
</div>
|
||||
<div className="new-card-buttons">
|
||||
<button className="btn btn-primary add-button" onClick={() => onSave({ title, image, content, link })}>
|
||||
<FormattedMessage defaultMessage={cta || "Add Card"} />
|
||||
{cta || <FormattedMessage defaultMessage="Add Card" />}
|
||||
</button>
|
||||
<button className="btn delete-button" onClick={onCancel}>
|
||||
<FormattedMessage defaultMessage={cancelCta || "Cancel"} />
|
||||
{cancelCta || <FormattedMessage defaultMessage="Cancel" />}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -216,7 +216,7 @@ export function StreamEditor({ ev, onFinish, options }: StreamEditorProps) {
|
||||
)}
|
||||
<div>
|
||||
<AsyncButton type="button" className="btn btn-primary wide" disabled={!isValid} onClick={publishStream}>
|
||||
<FormattedMessage defaultMessage={ev ? "Save" : "Start Stream"} />
|
||||
{ev ? <FormattedMessage defaultMessage="Save" /> : <FormattedMessage defaultMessage="Start Stream" />}
|
||||
</AsyncButton>
|
||||
</div>
|
||||
</>
|
||||
|
@ -2,6 +2,9 @@
|
||||
"+0zv6g": {
|
||||
"defaultMessage": "Image"
|
||||
},
|
||||
"+vVZ/G": {
|
||||
"defaultMessage": "Connect"
|
||||
},
|
||||
"/0TOL5": {
|
||||
"defaultMessage": "Amount"
|
||||
},
|
||||
@ -17,6 +20,9 @@
|
||||
"1EYCdR": {
|
||||
"defaultMessage": "Tags"
|
||||
},
|
||||
"2/2yg+": {
|
||||
"defaultMessage": "Add"
|
||||
},
|
||||
"2CGh/0": {
|
||||
"defaultMessage": "live"
|
||||
},
|
||||
@ -26,6 +32,9 @@
|
||||
"3adEeb": {
|
||||
"defaultMessage": "{n} viewers"
|
||||
},
|
||||
"47FYwb": {
|
||||
"defaultMessage": "Cancel"
|
||||
},
|
||||
"4l6vz1": {
|
||||
"defaultMessage": "Copy"
|
||||
},
|
||||
@ -71,6 +80,9 @@
|
||||
"ESyhzp": {
|
||||
"defaultMessage": "Your comment for {name}"
|
||||
},
|
||||
"G/yZLu": {
|
||||
"defaultMessage": "Remove"
|
||||
},
|
||||
"Gq6x9o": {
|
||||
"defaultMessage": "Cover Image"
|
||||
},
|
||||
@ -140,12 +152,21 @@
|
||||
"RrCui3": {
|
||||
"defaultMessage": "Summary"
|
||||
},
|
||||
"TaTRKo": {
|
||||
"defaultMessage": "Start Stream"
|
||||
},
|
||||
"UJBFYK": {
|
||||
"defaultMessage": "Add Card"
|
||||
},
|
||||
"UfSot5": {
|
||||
"defaultMessage": "Past Streams"
|
||||
},
|
||||
"VA/Z1S": {
|
||||
"defaultMessage": "Hide"
|
||||
},
|
||||
"W9355R": {
|
||||
"defaultMessage": "Unmute"
|
||||
},
|
||||
"X2PZ7D": {
|
||||
"defaultMessage": "Create Goal"
|
||||
},
|
||||
@ -173,9 +194,15 @@
|
||||
"hGQqkW": {
|
||||
"defaultMessage": "Schedule"
|
||||
},
|
||||
"ieGrWo": {
|
||||
"defaultMessage": "Follow"
|
||||
},
|
||||
"itPgxd": {
|
||||
"defaultMessage": "Profile"
|
||||
},
|
||||
"izWS4J": {
|
||||
"defaultMessage": "Unfollow"
|
||||
},
|
||||
"jr4+vD": {
|
||||
"defaultMessage": "Markdown"
|
||||
},
|
||||
@ -197,6 +224,9 @@
|
||||
"nOaArs": {
|
||||
"defaultMessage": "Setup Profile"
|
||||
},
|
||||
"nwA8Os": {
|
||||
"defaultMessage": "Add card"
|
||||
},
|
||||
"oHPB8Q": {
|
||||
"defaultMessage": "Zap {name}"
|
||||
},
|
||||
@ -244,5 +274,8 @@
|
||||
},
|
||||
"wzWWzV": {
|
||||
"defaultMessage": "Top zappers"
|
||||
},
|
||||
"x82IOl": {
|
||||
"defaultMessage": "Mute"
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import { StatePill } from "element/state-pill";
|
||||
import { StreamState } from "index";
|
||||
import { StreamProviderInfo, StreamProviderStore } from "providers";
|
||||
import { Nip103StreamProvider } from "providers/zsz";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
export function ConfigureNostrType() {
|
||||
const [url, setUrl] = useState("");
|
||||
@ -60,7 +61,7 @@ export function ConfigureNostrType() {
|
||||
StreamProviderStore.add(new Nip103StreamProvider(url));
|
||||
navigate("/");
|
||||
}}>
|
||||
Save
|
||||
<FormattedMessage defaultMessage="Save" />
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
@ -77,7 +78,7 @@ export function ConfigureNostrType() {
|
||||
</div>
|
||||
</div>
|
||||
<AsyncButton className="btn btn-primary" onClick={tryConnect}>
|
||||
Connect
|
||||
<FormattedMessage defaultMessage="Connect" />
|
||||
</AsyncButton>
|
||||
</div>
|
||||
<div>{status()}</div>
|
||||
|
@ -1,5 +1,95 @@
|
||||
{
|
||||
"+0zv6g": "Image",
|
||||
"+vVZ/G": "Connect",
|
||||
"/0TOL5": "Amount",
|
||||
"/GCoTA": "Clear",
|
||||
"04lmFi": "Save Key",
|
||||
"0GfNiL": "Stream Zap Goals",
|
||||
"1EYCdR": "Tags",
|
||||
"2/2yg+": "Add",
|
||||
"2CGh/0": "live",
|
||||
"3HwrQo": "Zap!",
|
||||
"3adEeb": "{n} viewers",
|
||||
"47FYwb": "Cancel",
|
||||
"4l6vz1": "Copy",
|
||||
"4uI538": "Resolutions",
|
||||
"5JcXdV": "Create Account",
|
||||
"5QYdPU": "Start Time",
|
||||
"5kx+2v": "Server Url",
|
||||
"6Z2pvJ": "Stream Providers",
|
||||
"9WRlF4": "Send",
|
||||
"9a9+ww": "Title",
|
||||
"9anxhq": "Starts",
|
||||
"AIHaPH": "{person} zapped {amount} sats",
|
||||
"Atr2p4": "NSFW Content",
|
||||
"AyGauy": "Login",
|
||||
"BGxpTN": "Stream Chat",
|
||||
"C81/uG": "Logout",
|
||||
"itPgxd": "Profile"
|
||||
}
|
||||
"ESyhzp": "Your comment for {name}",
|
||||
"G/yZLu": "Remove",
|
||||
"Gq6x9o": "Cover Image",
|
||||
"H5+NAX": "Balance",
|
||||
"HAlOn1": "Name",
|
||||
"I1kjHI": "Supports {markdown}",
|
||||
"IJDKz3": "Zap amount in {currency}",
|
||||
"Jq3FDz": "Content",
|
||||
"K3r6DQ": "Delete",
|
||||
"K3uH1C": "offline",
|
||||
"K7AkdL": "Show",
|
||||
"KkIL3s": "No, I am under 18",
|
||||
"Ld5LAE": "Nostr uses private keys, please save yours, if you lose this key you wont be able to login to your account anymore!",
|
||||
"LknBsU": "Stream Key",
|
||||
"My6HwN": "Ok, it's safe",
|
||||
"O2Cy6m": "Yes, I am over 18",
|
||||
"OKhRC6": "Share",
|
||||
"OWgHbg": "Edit card",
|
||||
"Q3au2v": "About {estimate}",
|
||||
"QRHNuF": "What are we steaming today?",
|
||||
"QRRCp0": "Stream URL",
|
||||
"QceMQZ": "Goal: {amount}",
|
||||
"RJOmzk": "I have read and agree with {provider}''s {terms}.",
|
||||
"RXQdxR": "Please login to write messages!",
|
||||
"RrCui3": "Summary",
|
||||
"TaTRKo": "Start Stream",
|
||||
"UJBFYK": "Add Card",
|
||||
"UfSot5": "Past Streams",
|
||||
"VA/Z1S": "Hide",
|
||||
"W9355R": "Unmute",
|
||||
"X2PZ7D": "Create Goal",
|
||||
"ZmqxZs": "You can change this later",
|
||||
"acrOoz": "Continue",
|
||||
"cvAsEh": "Streamed on {date}",
|
||||
"cyR7Kh": "Back",
|
||||
"dVD/AR": "Top Zappers",
|
||||
"ebmhes": "Nostr Extension",
|
||||
"fBI91o": "Zap",
|
||||
"hGQqkW": "Schedule",
|
||||
"ieGrWo": "Follow",
|
||||
"itPgxd": "Profile",
|
||||
"izWS4J": "Unfollow",
|
||||
"jr4+vD": "Markdown",
|
||||
"jvo0vs": "Save",
|
||||
"lZpRMR": "Check here if this stream contains nudity or pornographic content.",
|
||||
"ljmS5P": "Endpoint",
|
||||
"mtNGwh": "A short description of the content",
|
||||
"nBCvvJ": "Topup",
|
||||
"nOaArs": "Setup Profile",
|
||||
"nwA8Os": "Add card",
|
||||
"oHPB8Q": "Zap {name}",
|
||||
"oZrFyI": "Stream type should be HLS",
|
||||
"pO/lPX": "Scheduled for {date}",
|
||||
"rWBFZA": "Sexually explicit material ahead!",
|
||||
"rbrahO": "Close",
|
||||
"rfC1Zq": "Save card",
|
||||
"s5ksS7": "Image Link",
|
||||
"s7V+5p": "Confirm your age",
|
||||
"thsiMl": "terms and conditions",
|
||||
"tzMNF3": "Status",
|
||||
"uYw2LD": "Stream",
|
||||
"vrTOHJ": "{amount} sats",
|
||||
"wCIL7o": "Broadcast on Nostr",
|
||||
"wEQDC6": "Edit",
|
||||
"wOy57k": "Add stream goal",
|
||||
"wzWWzV": "Top zappers",
|
||||
"x82IOl": "Mute"
|
||||
}
|
Reference in New Issue
Block a user