mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-19 13:18:30 +02:00
chore(i18n): extract hardcoded strings in CreateFidelityBondDialog (#1037)
This commit is contained in:
parent
09bc57a7c4
commit
4a6716dced
2 changed files with 38 additions and 13 deletions
|
|
@ -84,7 +84,7 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-medium">{t('earn.fidelity_bond.select_date.description')}</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">Choose when your funds will be unlocked</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">{t('earn.fidelity_bond.select_date.subtitle')}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -141,7 +141,9 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
|
||||
{selectedLockdate && (
|
||||
<div className="bg-primary/5 border-primary/20 rounded-lg border p-4">
|
||||
<p className="text-muted-foreground text-sm">Selected lock date</p>
|
||||
<p className="text-muted-foreground text-sm">
|
||||
{t('earn.fidelity_bond.select_date.label_selected_lock_date')}
|
||||
</p>
|
||||
<p className="mt-1 text-lg font-semibold">{selectedDateLabel}</p>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -167,7 +169,7 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
<WalletIcon className="text-primary h-5 w-5" />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-medium">Select Source Jar</p>
|
||||
<p className="font-medium">{t('earn.fidelity_bond.select_jar.title')}</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">{t('earn.fidelity_bond.select_jar.description')}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -193,7 +195,9 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
<div>
|
||||
<p className="font-semibold">{jar.name}</p>
|
||||
<p className="text-muted-foreground text-sm">
|
||||
{jar.utxos.filter((u) => !u.frozen && !fb.utxo.isFidelityBond(u)).length} available UTXOs
|
||||
{t('earn.fidelity_bond.select_jar.text_available_utxos', {
|
||||
count: jar.utxos.filter((u) => !u.frozen && !fb.utxo.isFidelityBond(u)).length,
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -225,7 +229,7 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
<CoinsIcon className="text-primary h-5 w-5" />
|
||||
</div>
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="font-medium">Select UTXOs</p>
|
||||
<p className="font-medium">{t('earn.fidelity_bond.select_utxos.title')}</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">
|
||||
{t('earn.fidelity_bond.select_utxos.description', { jar: selectedJarIndex })}
|
||||
</p>
|
||||
|
|
@ -321,7 +325,7 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
{selectedUtxos.length > 0 && (
|
||||
<div className="border-t pt-4">
|
||||
<div className="bg-muted/50 flex items-center justify-between rounded-lg p-3">
|
||||
<span className="font-medium">Total Selected</span>
|
||||
<span className="font-medium">{t('earn.fidelity_bond.select_utxos.label_total_selected')}</span>
|
||||
<span className="font-mono text-lg font-bold">{formatSats(totalAmount)}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -351,14 +355,16 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
<LockIcon className="text-primary h-5 w-5" />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-medium">Freeze Remaining UTXOs</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">Protect your privacy by freezing unselected UTXOs</p>
|
||||
<p className="font-medium">{t('earn.fidelity_bond.freeze_utxos.title')}</p>
|
||||
<p className="text-muted-foreground mt-1 text-sm">{t('earn.fidelity_bond.freeze_utxos.subtitle')}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
||||
<p className="mb-3 text-sm font-medium">Selected UTXOs ({selectedUtxos.length})</p>
|
||||
<p className="mb-3 text-sm font-medium">
|
||||
{t('earn.fidelity_bond.freeze_utxos.label_selected_utxos', { count: selectedUtxos.length })}
|
||||
</p>
|
||||
<div className="max-h-40 space-y-2 overflow-y-auto">
|
||||
{selectedUtxos.map((utxo) => (
|
||||
<div key={utxo.utxo} className="flex items-center justify-between py-1 text-sm">
|
||||
|
|
@ -371,7 +377,9 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
|
||||
{utxosToFreeze.length > 0 && (
|
||||
<div className="rounded-lg border border-orange-500/20 bg-orange-500/10 p-4">
|
||||
<p className="mb-1 text-sm font-medium">UTXOs to Freeze ({utxosToFreeze.length})</p>
|
||||
<p className="mb-1 text-sm font-medium">
|
||||
{t('earn.fidelity_bond.freeze_utxos.label_utxos_to_freeze', { count: utxosToFreeze.length })}
|
||||
</p>
|
||||
<p className="text-muted-foreground mb-3 text-xs">
|
||||
{t('earn.fidelity_bond.freeze_utxos.description_selected_utxos_to_freeze', {
|
||||
jar: selectedJarIndex,
|
||||
|
|
@ -487,7 +495,7 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
</div>
|
||||
</div>
|
||||
<p className="mt-6 text-lg font-semibold">{t('earn.fidelity_bond.text_creating')}</p>
|
||||
<p className="text-muted-foreground mt-2 text-sm">This may take a moment...</p>
|
||||
<p className="text-muted-foreground mt-2 text-sm">{t('earn.fidelity_bond.text_creating_subtitle')}</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
|
|
@ -499,7 +507,9 @@ export function CreateFidelityBondDialogSteps({ wizard }: CreateFidelityBondDial
|
|||
<CheckCircle2Icon className="h-16 w-16 text-green-500" />
|
||||
</div>
|
||||
<p className="mt-4 text-xl font-bold">{t('earn.fidelity_bond.create_fidelity_bond.success_text')}</p>
|
||||
<p className="text-muted-foreground mt-2 text-sm">Your fidelity bond has been created successfully</p>
|
||||
<p className="text-muted-foreground mt-2 text-sm">
|
||||
{t('earn.fidelity_bond.create_fidelity_bond.text_success_subtitle')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3">
|
||||
|
|
|
|||
|
|
@ -524,6 +524,7 @@
|
|||
"alert_all_funds_in_use": "<strong>Keep in mind</strong>: As you are using all available funds for the creation of this fidelity bond, you will not have any UTXOs left. <br /><br />A fidelity bond <strong>will not participate in collaborative transactions</strong> and you <strong>have to fund your wallet again</strong> to start sending or earning.",
|
||||
"text_loading": "Loading...",
|
||||
"text_creating": "Creating...",
|
||||
"text_creating_subtitle": "This may take a moment...",
|
||||
"text_unfreezing": "Unfreezing...",
|
||||
"select_date": {
|
||||
"text_primary_button": "Next",
|
||||
|
|
@ -531,22 +532,29 @@
|
|||
"form_label_year": "Year",
|
||||
"form_label_month": "Month",
|
||||
"description": "Fidelity bond expiration date:",
|
||||
"subtitle": "Choose when your funds will be unlocked",
|
||||
"label_selected_lock_date": "Selected lock date",
|
||||
"warning_fb_with_same_expiry": "<strong>Warning</strong>: A fidelity bond with the same expiry date already exists."
|
||||
},
|
||||
"select_jar": {
|
||||
"text_primary_button": "Next",
|
||||
"text_secondary_button": "Cancel",
|
||||
"title": "Select Source Jar",
|
||||
"description": "Select a jar to fund the fidelity bond from.",
|
||||
"text_available_utxos_one": "{{ count }} available UTXO",
|
||||
"text_available_utxos_other": "{{ count }} available UTXOs",
|
||||
"alert_no_jars_available": "No jars with available UTXOs found."
|
||||
},
|
||||
"select_utxos": {
|
||||
"text_primary_button": "Next",
|
||||
"text_primary_button_unsafe": "Select potentially less private UTXOs",
|
||||
"text_secondary_button": "Cancel",
|
||||
"title": "Select UTXOs",
|
||||
"description": "Select one or more UTXOs from Jar {{ jar }} to use for the fidelity bond.",
|
||||
"button_select_all": "Select All",
|
||||
"button_deselect_all": "Deselect All",
|
||||
"label_total": "Total:",
|
||||
"label_total_selected": "Total Selected",
|
||||
"utxo_card": {
|
||||
"confirmations": "{{ confs }} Confirmations",
|
||||
"label_frozen": "frozen",
|
||||
|
|
@ -559,6 +567,12 @@
|
|||
"text_primary_button_all_frozen": "Review bond configuration",
|
||||
"text_primary_button_error": "Try again",
|
||||
"text_secondary_button": "Cancel",
|
||||
"title": "Freeze Remaining UTXOs",
|
||||
"subtitle": "Protect your privacy by freezing unselected UTXOs",
|
||||
"label_selected_utxos_one": "Selected UTXO ({{ count }})",
|
||||
"label_selected_utxos_other": "Selected UTXOs ({{ count }})",
|
||||
"label_utxos_to_freeze_one": "UTXO to Freeze ({{ count }})",
|
||||
"label_utxos_to_freeze_other": "UTXOs to Freeze ({{ count }})",
|
||||
"description_selected_utxos": "Selected UTXOs:",
|
||||
"description_unselected_utxos": "The following UTXOs will not be used for the fidelity bond:",
|
||||
"description_selected_utxos_to_freeze": "They will be frozen to remain in Jar {{ jar }}. You can unfreeze them anytime after creating the bond."
|
||||
|
|
@ -587,7 +601,8 @@
|
|||
"label_address": "Time-locked address",
|
||||
"label_transaction_id": "Transaction ID",
|
||||
"text_copy_transaction_id": "Transaction ID copied",
|
||||
"label_utxos_to_unfreeze": "Do you want to unfreeze the UTXOs that were frozen earlier?"
|
||||
"label_utxos_to_unfreeze": "Do you want to unfreeze the UTXOs that were frozen earlier?",
|
||||
"text_success_subtitle": "Your fidelity bond has been created successfully"
|
||||
},
|
||||
"unfreeze_utxos": {
|
||||
"text_primary_button": "Done",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue