From 295755ec4ccc196e3a62daf2db9ca764a39ed533 Mon Sep 17 00:00:00 2001 From: zeo Date: Wed, 19 Nov 2025 04:04:40 +0500 Subject: [PATCH] fix: interpolate longName and shortName in PKI backup download (#959) This caused {{shortName}} and {{longName}} to appear unformatted in the exported key files: ``` === MESHTASTIC KEYS FOR {{longName}} ({{shortName}}) === Private Key: Public Key: === END OF KEYS === ``` The fix simply replicates the behaviour used elsewhere in PKIIBackupDialog. --- packages/web/src/components/Dialog/PKIBackupDialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web/src/components/Dialog/PKIBackupDialog.tsx b/packages/web/src/components/Dialog/PKIBackupDialog.tsx index df68b59d..2c19721e 100644 --- a/packages/web/src/components/Dialog/PKIBackupDialog.tsx +++ b/packages/web/src/components/Dialog/PKIBackupDialog.tsx @@ -94,7 +94,11 @@ export const PkiBackupDialog = ({ const decodedPublicKey = decodeKeyData(publicKey); const formattedContent = [ - `${t("pkiBackup.header")}\n\n`, + `${t("pkiBackup.header", { + interpolation: { escapeValue: false }, + shortName: getMyNode()?.user?.shortName ?? t("unknown.shortName"), + longName: getMyNode()?.user?.longName ?? t("unknown.longName"), + })}\n\n`, `${t("pkiBackup.privateKey")}\n`, decodedPrivateKey, `\n\n${t("pkiBackup.publicKey")}\n`,