diff --git a/src/Element/Thread.tsx b/src/Element/Thread.tsx index cc82312b..547a451c 100644 --- a/src/Element/Thread.tsx +++ b/src/Element/Thread.tsx @@ -271,6 +271,7 @@ export default function Thread(props: ThreadProps) { const navigate = useNavigate(); const isSingleNote = parsedNotes.filter(a => a.Kind === EventKind.TextNote).length === 1; const location = useLocation(); + const { formatMessage } = useIntl(); const urlNoteId = location?.pathname.slice(3); const urlNoteHex = urlNoteId && bech32ToHex(urlNoteId); @@ -366,9 +367,17 @@ export default function Thread(props: ThreadProps) { } } + const parentText = formatMessage({ + defaultMessage: "Parent", + description: "Link to parent note in thread", + }); + const backText = formatMessage({ + defaultMessage: "Back", + description: "Navigate back button on threads view", + }); return (
- 1 ? "Parent" : "Back"} /> + 1 ? parentText : backText} />
{currentRoot && renderRoot(currentRoot)} {currentRoot && renderChain(currentRoot.Id)} diff --git a/src/lang.json b/src/lang.json index 648dedc0..43ac0696 100644 --- a/src/lang.json +++ b/src/lang.json @@ -134,6 +134,10 @@ "9wO4wJ": { "string": "Lightning Invoice" }, + "ADmfQT": { + "developer_comment": "Link to parent note in thread", + "string": "Parent" + }, "ASRK0S": { "string": "This author has been muted" }, @@ -522,6 +526,10 @@ "jCA7Cw": { "string": "Preview on snort" }, + "jfV8Wr": { + "developer_comment": "Navigate back button on threads view", + "string": "Back" + }, "juhqvW": { "string": "Improve login security with browser extensions" }, diff --git a/src/translations/en.json b/src/translations/en.json index a6cb368f..e5f0be4c 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -43,6 +43,7 @@ "9WRlF4": "Send", "9gqH2W": "Login", "9wO4wJ": "Lightning Invoice", + "ADmfQT": "Parent", "ASRK0S": "This author has been muted", "Adk34V": "Setup your Profile", "AyGauy": "Login", @@ -170,6 +171,7 @@ "izWS4J": "Unfollow", "jA3OE/": "{n,plural,=1{{n} sat} other{{n} sats}}", "jCA7Cw": "Preview on snort", + "jfV8Wr": "Back", "juhqvW": "Improve login security with browser extensions", "jvo0vs": "Save", "k2veDA": "Write",