add to i18n

This commit is contained in:
Tiago Vasconcelos
2026-07-16 09:35:04 +01:00
parent 8c068e1b27
commit 993f84022e
3 changed files with 11 additions and 6 deletions
+4
View File
@@ -98,6 +98,10 @@ window.localisation.en = {
view_swagger_docs: 'View LNbits Swagger API docs', view_swagger_docs: 'View LNbits Swagger API docs',
api_docs: 'API docs', api_docs: 'API docs',
api_keys_api_docs: 'Node URL, API keys and 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', lnbits_version: 'LNbits version',
runs_on: 'Runs on', runs_on: 'Runs on',
paste: 'Paste', paste: 'Paste',
@@ -3,9 +3,7 @@ window.app.component('lnbits-wallet-api-docs', {
methods: { methods: {
copyAdminKey() { copyAdminKey() {
LNbits.utils LNbits.utils
.confirmDialog( .confirmDialog(this.$t('admin_key_warning'))
`Anyone with this key can drain your entire wallet's funds. Do not share it unless you are ok with this.`
)
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey)) .onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
}, },
resetKeys() { resetKeys() {
@@ -6,9 +6,12 @@
:content-inset-level="0.5" :content-inset-level="0.5"
> >
<q-card-section> <q-card-section>
<q-banner dense rounded class="bg-warning text-black q-mb-md"> <q-banner
These keys should be kept safe, sharing them could risk losing funds. dense
</q-banner> rounded
class="bg-warning text-black q-mb-md"
v-text="$t('api_keys_warning')"
></q-banner>
<q-list> <q-list>
<q-item dense class="q-pa-none"> <q-item dense class="q-pa-none">
<q-item-section> <q-item-section>