Phase 6: Translate User Pages - exchange, trades, invites, profile
- Expand exchange.json with all exchange page strings (page, steps, detailsStep, bookingStep, confirmationStep, priceDisplay) - Create trades.json translation files for es, en, ca - Create invites.json translation files for es, en, ca - Create profile.json translation files for es, en, ca - Translate exchange page and all components (ExchangeDetailsStep, BookingStep, ConfirmationStep, StepIndicator, PriceDisplay) - Translate trades page (titles, sections, buttons, status labels) - Translate invites page (titles, sections, status badges, copy button) - Translate profile page (form labels, hints, placeholders, messages) - Update IntlProvider to load all new namespaces - All frontend tests passing
This commit is contained in:
parent
7dd13292a0
commit
246553c402
22 changed files with 559 additions and 115 deletions
|
|
@ -8,10 +8,70 @@
|
|||
},
|
||||
"direction": {
|
||||
"buy": "BUY BTC",
|
||||
"sell": "SELL BTC"
|
||||
"sell": "SELL BTC",
|
||||
"buyShort": "Buy BTC",
|
||||
"sellShort": "Sell BTC"
|
||||
},
|
||||
"transferMethod": {
|
||||
"onchain": "Onchain",
|
||||
"lightning": "Lightning"
|
||||
},
|
||||
"page": {
|
||||
"title": "Exchange Bitcoin",
|
||||
"subtitle": "Buy or sell Bitcoin with a 5% premium",
|
||||
"viewExistingTrade": "View your existing trade →"
|
||||
},
|
||||
"steps": {
|
||||
"details": "Exchange Details",
|
||||
"booking": "Book Appointment",
|
||||
"confirm": "Confirm"
|
||||
},
|
||||
"detailsStep": {
|
||||
"paymentMethod": "Payment Method",
|
||||
"required": "*",
|
||||
"lightningThreshold": "Lightning payments are only available for amounts up to €{max}",
|
||||
"amount": "Amount (EUR)",
|
||||
"summaryBuy": "You buy {sats}, you sell {eur}",
|
||||
"summarySell": "You buy {eur}, you sell {sats}",
|
||||
"continueToBooking": "Continue to Booking"
|
||||
},
|
||||
"bookingStep": {
|
||||
"yourExchange": "Your Exchange",
|
||||
"edit": "Edit",
|
||||
"buy": "Buy",
|
||||
"sell": "Sell",
|
||||
"receiveVia": "Receive via",
|
||||
"sendVia": "Send via",
|
||||
"selectDate": "Select a Date",
|
||||
"existingTradeWarning": "You already have a trade booked on this day. You can only book one trade per day.",
|
||||
"viewExistingTrade": "View your existing trade →",
|
||||
"availableSlots": "Available Slots for",
|
||||
"loadingSlots": "Loading slots...",
|
||||
"noSlots": "No available slots for this date"
|
||||
},
|
||||
"confirmationStep": {
|
||||
"appointment": "Appointment",
|
||||
"edit": "Edit",
|
||||
"confirmTrade": "Confirm Trade",
|
||||
"time": "Time:",
|
||||
"direction": "Direction:",
|
||||
"eur": "EUR:",
|
||||
"btc": "BTC:",
|
||||
"rate": "Rate:",
|
||||
"payment": "Payment:",
|
||||
"receiveVia": "Receive via",
|
||||
"sendVia": "Send via",
|
||||
"booking": "Booking...",
|
||||
"priceStale": "Price Stale",
|
||||
"confirmBuy": "Confirm Buy",
|
||||
"confirmSell": "Confirm Sell",
|
||||
"back": "Back"
|
||||
},
|
||||
"priceDisplay": {
|
||||
"loading": "Loading price...",
|
||||
"market": "Market:",
|
||||
"ourPrice": "Our price:",
|
||||
"updated": "Updated",
|
||||
"stale": "(stale)"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
17
frontend/locales/en/invites.json
Normal file
17
frontend/locales/en/invites.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"page": {
|
||||
"title": "My Invites",
|
||||
"subtitle": "Share your invite codes with friends to let them join",
|
||||
"noInvites": "You don't have any invites yet.",
|
||||
"noInvitesHint": "Contact an admin if you need invite codes to share.",
|
||||
"available": "Available ({count})",
|
||||
"availableHint": "Share these links with people you want to invite",
|
||||
"used": "Used ({count})",
|
||||
"revoked": "Revoked ({count})",
|
||||
"copyLink": "Copy Link",
|
||||
"copied": "Copied!",
|
||||
"usedBy": "by {email}",
|
||||
"usedStatus": "Used",
|
||||
"revokedStatus": "Revoked"
|
||||
}
|
||||
}
|
||||
33
frontend/locales/en/profile.json
Normal file
33
frontend/locales/en/profile.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"page": {
|
||||
"title": "My Profile",
|
||||
"subtitle": "Manage your contact information"
|
||||
},
|
||||
"form": {
|
||||
"email": "Email",
|
||||
"emailHint": "This is your login email and cannot be changed here.",
|
||||
"invitedBy": "Invited By",
|
||||
"invitedByHint": "The user who invited you to join.",
|
||||
"readOnly": "Read only",
|
||||
"contactDetails": "Contact Details",
|
||||
"contactDetailsHint": "These are for communication purposes only — they won't affect your login.",
|
||||
"contactEmail": "Contact Email",
|
||||
"telegram": "Telegram",
|
||||
"signal": "Signal",
|
||||
"nostrNpub": "Nostr (npub)",
|
||||
"saving": "Saving...",
|
||||
"saveChanges": "Save Changes"
|
||||
},
|
||||
"messages": {
|
||||
"loadError": "Failed to load profile",
|
||||
"saveSuccess": "Profile saved successfully!",
|
||||
"fixErrors": "Please fix the errors below",
|
||||
"networkError": "Network error. Please try again."
|
||||
},
|
||||
"placeholders": {
|
||||
"contactEmail": "alternate@example.com",
|
||||
"telegram": "@username",
|
||||
"signal": "username.01",
|
||||
"nostrNpub": "npub1..."
|
||||
}
|
||||
}
|
||||
16
frontend/locales/en/trades.json
Normal file
16
frontend/locales/en/trades.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"page": {
|
||||
"title": "My Trades",
|
||||
"subtitle": "View and manage your Bitcoin trades",
|
||||
"loadingTrades": "Loading trades...",
|
||||
"noTrades": "You don't have any trades yet.",
|
||||
"startTrading": "Start trading",
|
||||
"upcoming": "Upcoming ({count})",
|
||||
"history": "History ({count})"
|
||||
},
|
||||
"trade": {
|
||||
"rate": "Rate:",
|
||||
"cancel": "Cancel",
|
||||
"viewDetails": "View Details"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue