aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-13 09:53:45 -0700
committerAdam Soltys <[email protected]>2026-09-13 09:53:45 -0700
commitfda681331ae3de5abee04042caed994954e1b705 (patch)
tree64e35f74d9af1869b66b386a0165d08f783f31fe /src/i18n.js
parent38b3d091e8e1bece958c0d7e80a5ee78434de933 (diff)
downloadcoinosv3-fda681331ae3de5abee04042caed994954e1b705.tar.gz
coinosv3-fda681331ae3de5abee04042caed994954e1b705.zip
See the post before you post it.
A draft is written as plain text but doesn't arrive as plain text: a URL ending in .jpg becomes a picture, a youtu.be link becomes a player, a nostr: reference becomes the note it points at, an npub becomes a name. The only way to find out how yours would land was to send it. The eye beside the paperclip — on the composer and on a reply — opens a preview. It runs the draft through noteBody, the very renderer the feed uses, so this isn't a lookalike of the real thing: it IS the real thing, in a dashed frame with a PREVIEW label so it can never be mistaken for the post itself. It follows the draft live while it's open (and only while it's open — a render per keystroke is not free). Attaching a picture opens it by itself. Showing you what you attached is the answer to the question attaching it raises, and it costs no tap. tools/compose-preview-test.js covers both the composer and a reply: the picture renders rather than sitting there as a URL, the YouTube link becomes a player, the preview tracks typing, and it puts itself away. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019mrt228Upn9nNCwGixzSLx
Diffstat (limited to 'src/i18n.js')
-rw-r--r--src/i18n.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i18n.js b/src/i18n.js
index 6a46823..5ec5986 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -715,6 +715,10 @@ const STR = {
arkLnPaidTitle: 'Paid!',
or: 'or',
nlSignIn: 'Sign in',
+ composePreview: 'Preview',
+ composePreviewHide: 'Hide preview',
+ composePreviewTag: 'Preview',
+ composePreviewEmpty: 'Nothing to preview yet.',
onbWelcomeTitle: 'Welcome to coinos',
onbWelcomeBody: 'Bitcoin you actually hold. Your wallet is twelve words — nobody else ever has them, and they work in any wallet, anywhere.',
onbStart: 'Create a new wallet',