From 993f84022edab0c3aceca5ec66b9f2718e5177f2 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 16 Jul 2026 09:35:04 +0100 Subject: [PATCH] add to i18n --- lnbits/static/i18n/en.js | 4 ++++ lnbits/static/js/components/lnbits-wallet-api-docs.js | 4 +--- lnbits/templates/components/lnbits-wallet-api-docs.vue | 9 ++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lnbits/static/i18n/en.js b/lnbits/static/i18n/en.js index e979e23d6..b62e4d700 100644 --- a/lnbits/static/i18n/en.js +++ b/lnbits/static/i18n/en.js @@ -98,6 +98,10 @@ window.localisation.en = { view_swagger_docs: 'View LNbits Swagger API docs', api_docs: 'API docs', api_keys_api_docs: 'Node URL, API keys and API docs', + api_keys_warning: + 'These keys should be kept safe, sharing them could risk losing funds.', + admin_key_warning: + 'Your admin key grants full access to your wallet, including the ability to send payments. Never share it unless you fully trust the recipient.', lnbits_version: 'LNbits version', runs_on: 'Runs on', paste: 'Paste', diff --git a/lnbits/static/js/components/lnbits-wallet-api-docs.js b/lnbits/static/js/components/lnbits-wallet-api-docs.js index 7f0225dd7..3072b94d1 100644 --- a/lnbits/static/js/components/lnbits-wallet-api-docs.js +++ b/lnbits/static/js/components/lnbits-wallet-api-docs.js @@ -3,9 +3,7 @@ window.app.component('lnbits-wallet-api-docs', { methods: { copyAdminKey() { LNbits.utils - .confirmDialog( - `Anyone with this key can drain your entire wallet's funds. Do not share it unless you are ok with this.` - ) + .confirmDialog(this.$t('admin_key_warning')) .onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey)) }, resetKeys() { diff --git a/lnbits/templates/components/lnbits-wallet-api-docs.vue b/lnbits/templates/components/lnbits-wallet-api-docs.vue index 3f80b5777..624b0db0b 100644 --- a/lnbits/templates/components/lnbits-wallet-api-docs.vue +++ b/lnbits/templates/components/lnbits-wallet-api-docs.vue @@ -6,9 +6,12 @@ :content-inset-level="0.5" > - - These keys should be kept safe, sharing them could risk losing funds. - +