From d4e174af516f0704da13161850a307739597d6be Mon Sep 17 00:00:00 2001 From: Kieran Date: Sat, 11 Feb 2023 18:05:33 +0000 Subject: [PATCH] chore: donate page strings --- src/Pages/DonatePage.tsx | 51 ++++++++++++++++++++++++++++++---------- src/lang.json | 27 +++++++++++++++++++++ src/translations/en.json | 11 ++++++++- 3 files changed, 75 insertions(+), 14 deletions(-) diff --git a/src/Pages/DonatePage.tsx b/src/Pages/DonatePage.tsx index 5da50ec..b075a05 100644 --- a/src/Pages/DonatePage.tsx +++ b/src/Pages/DonatePage.tsx @@ -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 (
-

Help fund the development of Snort

-

Snort is an open source project built by passionate people in their free time

-

Your donations are greatly appreciated

+

+ +

- Check out the code here:{" "} - - https://github.com/v0l/snort - +

- Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts - below + +

+

+ + https://github.com/v0l/snort + + ), + }} + /> +

+

+

-
Lightning Donation:
+
+ +
- {today && Total today (UTC): {today.donations.toLocaleString()} sats} -

Primary Developers

+ {today && ( + + + + )} +

+ +

{Developers.map(a => ( ))} -

Contributors

+

+ +

{Contributors.map(a => ( ))} diff --git a/src/lang.json b/src/lang.json index 37e6473..e17796c 100644 --- a/src/lang.json +++ b/src/lang.json @@ -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" }, diff --git a/src/translations/en.json b/src/translations/en.json index e46795b..ae4c3e1 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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", @@ -221,4 +230,4 @@ "zjJZBd": "You're ready!", "zonsdq": "Failed to load LNURL service", "zvCDao": "Automatically show latest notes" -} +} \ No newline at end of file