From 27cf614048043d0609aeb1e62b27cc3ea39af2ca Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 14 Nov 2023 15:14:33 +0000 Subject: [PATCH] chore: Update translations --- src/element/chat-message.tsx | 16 ++++++++-------- src/element/goal.tsx | 4 +++- src/element/live-chat.tsx | 4 +++- src/element/stream-time.tsx | 4 +--- src/element/text.tsx | 4 +--- src/hooks/live-chat.tsx | 7 ++++++- src/pages/profile-page.tsx | 6 +++++- src/pages/stream-page.tsx | 2 +- src/pages/widgets.tsx | 2 +- src/translations/ar_SA.json | 1 - src/translations/bg_BG.json | 1 - src/translations/bn_BD.json | 1 - src/translations/da_DK.json | 1 - src/translations/de_DE.json | 1 - src/translations/es_ES.json | 1 - src/translations/fa_IR.json | 1 - src/translations/fi_FI.json | 1 - src/translations/fr_FR.json | 1 - src/translations/hu_HU.json | 1 - src/translations/it_IT.json | 1 - src/translations/ja_JP.json | 1 - src/translations/nl_NL.json | 1 - src/translations/pt_BR.json | 1 - src/translations/ru_RU.json | 1 - src/translations/sv_SE.json | 1 - src/translations/sw_KE.json | 1 - src/translations/th_TH.json | 1 - src/translations/zh_CN.json | 1 - src/translations/zh_TW.json | 1 - 29 files changed, 29 insertions(+), 40 deletions(-) diff --git a/src/element/chat-message.tsx b/src/element/chat-message.tsx index f8bf470..b994069 100644 --- a/src/element/chat-message.tsx +++ b/src/element/chat-message.tsx @@ -175,15 +175,15 @@ export function ChatMessage({ style={ isTablet ? { - display: showZapDialog || isHovering ? "flex" : "none", - } + display: showZapDialog || isHovering ? "flex" : "none", + } : { - position: "fixed", - top: topOffset ? topOffset - 12 : 0, - left: leftOffset ? leftOffset - 32 : 0, - opacity: showZapDialog || isHovering ? 1 : 0, - pointerEvents: showZapDialog || isHovering ? "auto" : "none", - } + position: "fixed", + top: topOffset ? topOffset - 12 : 0, + left: leftOffset ? leftOffset - 32 : 0, + opacity: showZapDialog || isHovering ? 1 : 0, + pointerEvents: showZapDialog || isHovering ? "auto" : "none", + } }> {zapTarget && ( { - return zaps.filter(z => z.receiver === ev.pubkey && z.targetEvents.some(a => a.matchesEvent(ev))).reduce((acc, z) => acc + z.amount, 0); + return zaps + .filter(z => z.receiver === ev.pubkey && z.targetEvents.some(a => a.matchesEvent(ev))) + .reduce((acc, z) => acc + z.amount, 0); }, [zaps]); const progress = Math.max(0, Math.min(100, (soFar / goalAmount) * 100)); diff --git a/src/element/live-chat.tsx b/src/element/live-chat.tsx index 6ec554c..bd0a2e0 100644 --- a/src/element/live-chat.tsx +++ b/src/element/live-chat.tsx @@ -81,7 +81,9 @@ export function LiveChat({ const reactions = useEventReactions(link, feed.reactions); const events = useMemo(() => { - return [...feed.messages, ...feed.reactions, ...awards].filter(a => a.created_at > started).sort((a, b) => b.created_at - a.created_at); + return [...feed.messages, ...feed.reactions, ...awards] + .filter(a => a.created_at > started) + .sort((a, b) => b.created_at - a.created_at); }, [feed.messages, feed.reactions, awards]); const filteredEvents = useMemo(() => { diff --git a/src/element/stream-time.tsx b/src/element/stream-time.tsx index 2eac41a..9735510 100644 --- a/src/element/stream-time.tsx +++ b/src/element/stream-time.tsx @@ -28,7 +28,5 @@ export function StreamTimer({ ev }: { ev?: NostrEvent }) { return () => clearInterval(t); }, []); - return - {time} - ; + return {time}; } diff --git a/src/element/text.tsx b/src/element/text.tsx index 77dd5b6..beda1a9 100644 --- a/src/element/text.tsx +++ b/src/element/text.tsx @@ -50,9 +50,7 @@ export function Text({ content, tags, eventComponent }: TextProps) { // LUD-17: https://github.com/lnurl/luds/blob/luds/17.md const url = new URL(f.content); url.protocol = "https:"; - return - {f.content} - } /> + return {f.content}} />; } return {f.content}; } diff --git a/src/hooks/live-chat.tsx b/src/hooks/live-chat.tsx index 96b0b6c..5bb658a 100644 --- a/src/hooks/live-chat.tsx +++ b/src/hooks/live-chat.tsx @@ -22,6 +22,11 @@ export function useLiveChatFeed(link: NostrLink, eZaps?: Array) { return (feed.data ?? []).filter(ev => ev.kind === LIVE_STREAM_CHAT); }, [feed.data]); - const reactions = useReactions(`live:${link.id}:${link.author}:reactions`, messages.map(a => NostrLink.fromEvent(a)).concat(link), undefined, true); + const reactions = useReactions( + `live:${link.id}:${link.author}:reactions`, + messages.map(a => NostrLink.fromEvent(a)).concat(link), + undefined, + true + ); return { messages, reactions: reactions.data ?? [] }; } diff --git a/src/pages/profile-page.tsx b/src/pages/profile-page.tsx index bf11089..4957ef8 100644 --- a/src/pages/profile-page.tsx +++ b/src/pages/profile-page.tsx @@ -76,7 +76,11 @@ export function ProfilePage() { return (
- {profile?.name + {profile?.name
{profile?.picture ? ( {profile.name diff --git a/src/pages/stream-page.tsx b/src/pages/stream-page.tsx index ae516b7..4e1ceaf 100644 --- a/src/pages/stream-page.tsx +++ b/src/pages/stream-page.tsx @@ -82,7 +82,7 @@ function ProfileInfo({ ev, goal }: { ev?: NostrEvent; goal?: TaggedNostrEvent })
-
+
{ev && ( diff --git a/src/pages/widgets.tsx b/src/pages/widgets.tsx index f9e4055..9a09f09 100644 --- a/src/pages/widgets.tsx +++ b/src/pages/widgets.tsx @@ -77,7 +77,7 @@ function ZapAlertConfiguration({ npub, baseUrl }: ZapAlertConfigurationProps) { errors: [], sender: login?.pubkey, amount: 1_000_000, - targetEvents: [] + targetEvents: [], }} />
diff --git a/src/translations/ar_SA.json b/src/translations/ar_SA.json index e5d924d..067b125 100644 --- a/src/translations/ar_SA.json +++ b/src/translations/ar_SA.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Alert" } } - diff --git a/src/translations/bg_BG.json b/src/translations/bg_BG.json index 108a34d..6065db1 100644 --- a/src/translations/bg_BG.json +++ b/src/translations/bg_BG.json @@ -418,4 +418,3 @@ "defaultMessage": "Зап Тревога" } } - diff --git a/src/translations/bn_BD.json b/src/translations/bn_BD.json index bf63cd6..a842c07 100644 --- a/src/translations/bn_BD.json +++ b/src/translations/bn_BD.json @@ -418,4 +418,3 @@ "defaultMessage": "জ্যাপ অ্যালার্ট" } } - diff --git a/src/translations/da_DK.json b/src/translations/da_DK.json index 1423a9b..a244eb2 100644 --- a/src/translations/da_DK.json +++ b/src/translations/da_DK.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap-alarm" } } - diff --git a/src/translations/de_DE.json b/src/translations/de_DE.json index 59f7a89..b8deb12 100644 --- a/src/translations/de_DE.json +++ b/src/translations/de_DE.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Alert" } } - diff --git a/src/translations/es_ES.json b/src/translations/es_ES.json index 2810490..99a4a3a 100644 --- a/src/translations/es_ES.json +++ b/src/translations/es_ES.json @@ -418,4 +418,3 @@ "defaultMessage": "Alerta de Zap" } } - diff --git a/src/translations/fa_IR.json b/src/translations/fa_IR.json index 2567df4..fc0b695 100644 --- a/src/translations/fa_IR.json +++ b/src/translations/fa_IR.json @@ -418,4 +418,3 @@ "defaultMessage": "هشدار زپ" } } - diff --git a/src/translations/fi_FI.json b/src/translations/fi_FI.json index 042d774..5b0f580 100644 --- a/src/translations/fi_FI.json +++ b/src/translations/fi_FI.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap-hälytys" } } - diff --git a/src/translations/fr_FR.json b/src/translations/fr_FR.json index 5a6d0b6..2662617 100644 --- a/src/translations/fr_FR.json +++ b/src/translations/fr_FR.json @@ -418,4 +418,3 @@ "defaultMessage": "Alerte Zap" } } - diff --git a/src/translations/hu_HU.json b/src/translations/hu_HU.json index 7321e37..b6774a0 100644 --- a/src/translations/hu_HU.json +++ b/src/translations/hu_HU.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Riadó" } } - diff --git a/src/translations/it_IT.json b/src/translations/it_IT.json index 8e76d93..c5c88be 100644 --- a/src/translations/it_IT.json +++ b/src/translations/it_IT.json @@ -418,4 +418,3 @@ "defaultMessage": "Allarme Zap" } } - diff --git a/src/translations/ja_JP.json b/src/translations/ja_JP.json index 3a7189e..11e0369 100644 --- a/src/translations/ja_JP.json +++ b/src/translations/ja_JP.json @@ -418,4 +418,3 @@ "defaultMessage": "ザップアラート" } } - diff --git a/src/translations/nl_NL.json b/src/translations/nl_NL.json index bd533ed..ef3014f 100644 --- a/src/translations/nl_NL.json +++ b/src/translations/nl_NL.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Alert" } } - diff --git a/src/translations/pt_BR.json b/src/translations/pt_BR.json index c99ebd7..1a82582 100644 --- a/src/translations/pt_BR.json +++ b/src/translations/pt_BR.json @@ -418,4 +418,3 @@ "defaultMessage": "Alerta Zap" } } - diff --git a/src/translations/ru_RU.json b/src/translations/ru_RU.json index ae880ae..ee2fdc4 100644 --- a/src/translations/ru_RU.json +++ b/src/translations/ru_RU.json @@ -418,4 +418,3 @@ "defaultMessage": "Оповещение о запе" } } - diff --git a/src/translations/sv_SE.json b/src/translations/sv_SE.json index d42352f..d1909b1 100644 --- a/src/translations/sv_SE.json +++ b/src/translations/sv_SE.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Alert" } } - diff --git a/src/translations/sw_KE.json b/src/translations/sw_KE.json index 5036802..ec0f619 100644 --- a/src/translations/sw_KE.json +++ b/src/translations/sw_KE.json @@ -418,4 +418,3 @@ "defaultMessage": "Tahadhari ya Zap" } } - diff --git a/src/translations/th_TH.json b/src/translations/th_TH.json index 556aacf..1455f7b 100644 --- a/src/translations/th_TH.json +++ b/src/translations/th_TH.json @@ -418,4 +418,3 @@ "defaultMessage": "Zap Alert" } } - diff --git a/src/translations/zh_CN.json b/src/translations/zh_CN.json index 99150bd..71c3f4e 100644 --- a/src/translations/zh_CN.json +++ b/src/translations/zh_CN.json @@ -418,4 +418,3 @@ "defaultMessage": "打闪提示" } } - diff --git a/src/translations/zh_TW.json b/src/translations/zh_TW.json index e82f18f..9f4950c 100644 --- a/src/translations/zh_TW.json +++ b/src/translations/zh_TW.json @@ -418,4 +418,3 @@ "defaultMessage": "打閃提示" } } -