feat: localisation with lyricist

This commit is contained in:
2026-06-06 01:50:29 +02:00
parent 50d952b4d7
commit 8ef2d80901
9 changed files with 257 additions and 128 deletions
@@ -110,7 +110,7 @@ val EnHomeStrings = AppStrings(
receiveVmWithdrawRejected = "Withdraw service rejected the invoice",
receiveVmWithdrawFailed = "Withdraw failed",
// ── SendScreen — general ──────────────────────────────────────────────────
// ── SendScreen — general ──────────────────────────────────────────────────
send = "Send",
paste = "Paste",
continueButton = "Continue",
@@ -176,6 +176,20 @@ val EnHomeStrings = AppStrings(
routeHintHopsHeader = "Private route hint hops",
routeHintHopFees = { ppm, baseLabel -> "$ppm ppm · $baseLabel base" },
// ── SendViewModel ─────────────────────────────────────────────────────────
sendVmLnurlAuthNotSupported = "Lightning Login (LNURL-auth) is not yet supported",
sendVmUnrecognisedInput = "Unrecognised input — paste a BOLT-11 invoice, LNURL, or Lightning Address",
sendVmPaymentFailed = "Payment failed",
sendVmCouldNotFetchInvoice = "Could not fetch invoice from recipient",
sendVmCouldNotDecodeInvoice = "Could not decode invoice",
sendVmAuthFailed = { msg -> "Authentication failed: $msg" },
sendVmOnChainNotSupported = "On-chain Bitcoin payments are not supported — share a BIP-21 URI with a lightning= parameter",
sendVmChannelRequestNotSupported = "Channel requests (lnurlc) are not supported",
sendVmCouldNotResolveAddress = "Could not resolve address",
sendVmEmptyResponse = "Empty response from server",
sendVmUnsupportedType = { tag -> "Unsupported type: $tag" },
sendVmPaymentFailedRescan = "Payment failed — could not re-fetch address",
// ── HistoryScreen ─────────────────────────────────────────────────────────
historyTitle = "History",
historyClose = "Close",
@@ -110,7 +110,7 @@ val EsHomeStrings = AppStrings(
receiveVmWithdrawRejected = "El servicio de retiro rechazó la factura",
receiveVmWithdrawFailed = "Error al retirar",
// ── SendScreen — general ──────────────────────────────────────────────────
// ── SendScreen — general ──────────────────────────────────────────────────
send = "Enviar",
paste = "Pegar",
continueButton = "Continuar",
@@ -176,7 +176,21 @@ val EsHomeStrings = AppStrings(
routeHintHopsHeader = "Saltos de ruta privada",
routeHintHopFees = { ppm, baseLabel -> "$ppm ppm · $baseLabel base" },
// ── HistoryScreen ─────────────────────────────────────────────────────────
// ── SendViewModel ─────────────────────────────────────────────────────────
sendVmLnurlAuthNotSupported = "Lightning Login (LNURL-auth) aún no está disponible",
sendVmUnrecognisedInput = "Entrada no reconocida — pega una factura BOLT-11, LNURL o dirección Lightning",
sendVmPaymentFailed = "Pago fallido",
sendVmCouldNotFetchInvoice = "No se pudo obtener la factura del destinatario",
sendVmCouldNotDecodeInvoice = "No se pudo decodificar la factura",
sendVmAuthFailed = { msg -> "Autenticación fallida: $msg" },
sendVmOnChainNotSupported = "Los pagos Bitcoin en cadena no están disponibles — comparte un URI BIP-21 con el parámetro lightning=",
sendVmChannelRequestNotSupported = "Las solicitudes de canal (lnurlc) no están disponibles",
sendVmCouldNotResolveAddress = "No se pudo resolver la dirección",
sendVmEmptyResponse = "Respuesta vacía del servidor",
sendVmUnsupportedType = { tag -> "Tipo no compatible: $tag" },
sendVmPaymentFailedRescan = "Pago fallido — no se pudo volver a obtener la dirección",
// ── HistoryScreen ─────────────────────────────────────────────────────────
historyTitle = "Historial",
historyClose = "Cerrar",
historySearchPayments = "Buscar pagos",
@@ -185,6 +185,20 @@ data class AppStrings(
val routeHintHopsHeader : String,
val routeHintHopFees : (ppm: Long, baseLabel: String) -> String,
// ── SendViewModel ─────────────────────────────────────────────────────────
val sendVmLnurlAuthNotSupported : String,
val sendVmUnrecognisedInput : String,
val sendVmPaymentFailed : String,
val sendVmCouldNotFetchInvoice : String,
val sendVmCouldNotDecodeInvoice : String,
val sendVmAuthFailed : (msg: CharSequence) -> String,
val sendVmOnChainNotSupported : String,
val sendVmChannelRequestNotSupported : String,
val sendVmCouldNotResolveAddress : String,
val sendVmEmptyResponse : String,
val sendVmUnsupportedType : (tag: String) -> String,
val sendVmPaymentFailedRescan : String,
// ── HistoryScreen ─────────────────────────────────────────────────────────
val historyTitle : String,
val historyClose : String,