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: <censored>

Public Key: <censored>

=== END OF KEYS === ```

The fix simply replicates the behaviour used elsewhere in
PKIIBackupDialog.
This commit is contained in:
zeo
2025-11-18 18:04:40 -05:00
committed by GitHub
parent b99057df69
commit 295755ec4c
@@ -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`,