chore: donate page strings

This commit is contained in:
Kieran 2023-02-11 18:05:33 +00:00
parent 5d19e5a18d
commit d4e174af51
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 75 additions and 14 deletions

View File

@ -3,6 +3,7 @@ import ProfilePreview from "Element/ProfilePreview";
import ZapButton from "Element/ZapButton";
import { HexKey } from "Nostr";
import { useEffect, useState } from "react";
import { FormattedMessage } from "react-intl";
import { bech32ToHex } from "Util";
const Developers = [
@ -57,29 +58,53 @@ const DonatePage = () => {
return (
<div className="main-content m5">
<h2>Help fund the development of Snort</h2>
<p>Snort is an open source project built by passionate people in their free time</p>
<p>Your donations are greatly appreciated</p>
<h2>
<FormattedMessage defaultMessage="Help fund the development of Snort" />
</h2>
<p>
Check out the code here:{" "}
<FormattedMessage defaultMessage="Snort is an open source project built by passionate people in their free time" />
</p>
<p>
<FormattedMessage defaultMessage="Your donations are greatly appreciated" />
</p>
<p>
<FormattedMessage
defaultMessage={"Check out the code here: {link}"}
values={{
link: (
<a className="highlight" href="https://github.com/v0l/snort" rel="noreferrer" target="_blank">
https://github.com/v0l/snort
</a>
),
}}
/>
</p>
<p>
Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts
below
<FormattedMessage defaultMessage="Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below" />
</p>
<div className="flex">
<div className="mr10">Lightning Donation: </div>
<div className="mr10">
<FormattedMessage defaultMessage="Lightning Donation: " />
</div>
<ZapButton pubkey={bech32ToHex(SnortPubKey)} svc={"donate@snort.social"} />
</div>
{today && <small>Total today (UTC): {today.donations.toLocaleString()} sats</small>}
<h3>Primary Developers</h3>
{today && (
<small>
<FormattedMessage
defaultMessage="Total today (UTC): {amount} sats"
values={{ amount: today.donations.toLocaleString() }}
/>
</small>
)}
<h3>
<FormattedMessage defaultMessage="Primary Developers" />
</h3>
{Developers.map(a => (
<ProfilePreview pubkey={a} key={a} actions={actions(a)} />
))}
<h4>Contributors</h4>
<h4>
<FormattedMessage defaultMessage="Contributors" />
</h4>
{Contributors.map(a => (
<ProfilePreview pubkey={a} key={a} actions={actions(a)} />
))}

View File

@ -60,6 +60,9 @@
"47FYwb": {
"string": "Cancel"
},
"4IPzdn": {
"string": "Primary Developers"
},
"4L2vUY": {
"string": "Your new NIP-05 handle is:"
},
@ -146,6 +149,9 @@
"BOUMjw": {
"string": "No nostr users found for {twitterUsername}"
},
"BOr9z/": {
"string": "Snort is an open source project built by passionate people in their free time"
},
"BcGMo+": {
"string": "Notes hold text content, the most popular usage of these notes is to store \"tweet like\" messages."
},
@ -306,6 +312,9 @@
"P7FD0F": {
"string": "System (Default)"
},
"P7nJT9": {
"string": "Total today (UTC): {amount} sats"
},
"PCSt5T": {
"string": "Preferences"
},
@ -372,6 +381,9 @@
"XgWvGA": {
"string": "Reactions"
},
"Y31HTH": {
"string": "Help fund the development of Snort"
},
"YDURw6": {
"string": "Service URL"
},
@ -381,6 +393,12 @@
"ZKORll": {
"string": "Activate Now"
},
"ZLmyG9": {
"string": "Contributors"
},
"ZUZedV": {
"string": "Lightning Donation:"
},
"a5UPxh": {
"string": "Fund developers and platforms providing NIP-05 verification services"
},
@ -513,6 +531,9 @@
"lvlPhZ": {
"string": "Pay Invoice"
},
"mH91FY": {
"string": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below"
},
"mKAr6h": {
"string": "Follow all"
},
@ -531,6 +552,9 @@
"nN9XTz": {
"string": "Share your thoughts with {link}"
},
"nn1qb3": {
"string": "Your donations are greatly appreciated"
},
"nwZXeh": {
"string": "{n} blocked"
},
@ -602,6 +626,9 @@
"u/vOPu": {
"string": "Paid"
},
"u4bHcR": {
"string": "Check out the code here: {link}"
},
"uD/N6c": {
"string": "Zap {target} {n} sats"
},

View File

@ -19,6 +19,7 @@
"3xCwbZ": "OR",
"450Fty": "None",
"47FYwb": "Cancel",
"4IPzdn": "Primary Developers",
"4L2vUY": "Your new NIP-05 handle is:",
"4OB335": "Dislike",
"4Vmpt4": "Nostr Plebs is one of the first NIP-05 providers in the space and offers a good collection of domains at reasonable prices",
@ -47,6 +48,7 @@
"B4C47Y": "name too short",
"B6+XJy": "zapped",
"BOUMjw": "No nostr users found for {twitterUsername}",
"BOr9z/": "Snort is an open source project built by passionate people in their free time",
"BcGMo+": "Notes hold text content, the most popular usage of these notes is to store \"tweet like\" messages.",
"C81/uG": "Logout",
"CHTbO3": "Failed to load invoice",
@ -100,6 +102,7 @@
"OKhRC6": "Share",
"P61BTu": "Copy Event JSON",
"P7FD0F": "System (Default)",
"P7nJT9": "Total today (UTC): {amount} sats",
"PCSt5T": "Preferences",
"Pe0ogR": "Theme",
"PrsIg7": "Reactions will be shown on every page, if disabled no reactions will be shown",
@ -121,9 +124,12 @@
"WONP5O": "Find your twitter follows on nostr (Data provided by {provider})",
"WxthCV": "e.g. Jack",
"XgWvGA": "Reactions",
"Y31HTH": "Help fund the development of Snort",
"YDURw6": "Service URL",
"YXA3AH": "Enable reactions",
"ZKORll": "Activate Now",
"ZLmyG9": "Contributors",
"ZUZedV": "Lightning Donation:",
"a5UPxh": "Fund developers and platforms providing NIP-05 verification services",
"aWpBzj": "Show more",
"brAXSu": "Pick a username",
@ -168,12 +174,14 @@
"ll3xBp": "Image proxy service",
"lnaT9F": "Following {n}",
"lvlPhZ": "Pay Invoice",
"mH91FY": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below",
"mKAr6h": "Follow all",
"mKh2HS": "File upload service",
"mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}",
"n1xHAH": "Get an identifier (optional)",
"nDejmx": "Unblock",
"nN9XTz": "Share your thoughts with {link}",
"nn1qb3": "Your donations are greatly appreciated",
"nwZXeh": "{n} blocked",
"o6Uy3d": "Only the secret key can be used to publish (sign events), everything else logs you in read-only mode.",
"o7e+nJ": "{n} followers",
@ -197,6 +205,7 @@
"tOdNiY": "Dark",
"thnRpU": "Getting NIP-05 verified can help:",
"u/vOPu": "Paid",
"u4bHcR": "Check out the code here: {link}",
"uD/N6c": "Zap {target} {n} sats",
"uSV4Ti": "Reposts need to be manually confirmed",
"usAvMr": "Edit Profile",