Phase 4: Translate Shared Components - common, navigation, status labels
- Translate LoadingState and EmptyState components (common namespace) - Translate Header navigation labels (navigation namespace) - Translate StatusBadge trade status labels (exchange namespace) - Create navigation.json translation files for es, en, ca - Create exchange.json translation files for status/direction/transfer labels - Update IntlProvider to load navigation and exchange namespaces - Update frontend tests to expect Spanish translations (default language) - Configure Playwright to use English language for e2e tests via storageState - Fix test expectations to match translated strings All frontend and e2e tests passing.
This commit is contained in:
parent
f86ec8b62d
commit
a5a1a2c1ad
14 changed files with 173 additions and 27 deletions
17
frontend/locales/ca/exchange.json
Normal file
17
frontend/locales/ca/exchange.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"status": {
|
||||
"pending": "Pendent",
|
||||
"completed": "Completada",
|
||||
"userCancelled": "Cancel·lada per Usuari",
|
||||
"adminCancelled": "Cancel·lada per Admin",
|
||||
"noShow": "No Present"
|
||||
},
|
||||
"direction": {
|
||||
"buy": "COMPRAR BTC",
|
||||
"sell": "VENDRE BTC"
|
||||
},
|
||||
"transferMethod": {
|
||||
"onchain": "Onchain",
|
||||
"lightning": "Lightning"
|
||||
}
|
||||
}
|
||||
11
frontend/locales/ca/navigation.json
Normal file
11
frontend/locales/ca/navigation.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"exchange": "Exchange",
|
||||
"myTrades": "Les Meves Operacions",
|
||||
"myInvites": "Les Meves Invitacions",
|
||||
"myProfile": "El Meu Perfil",
|
||||
"signOut": "Tancar sessió",
|
||||
"trades": "Operacions",
|
||||
"availability": "Disponibilitat",
|
||||
"invites": "Invitacions",
|
||||
"prices": "Preus"
|
||||
}
|
||||
17
frontend/locales/en/exchange.json
Normal file
17
frontend/locales/en/exchange.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"status": {
|
||||
"pending": "Pending",
|
||||
"completed": "Completed",
|
||||
"userCancelled": "User Cancelled",
|
||||
"adminCancelled": "Admin Cancelled",
|
||||
"noShow": "No Show"
|
||||
},
|
||||
"direction": {
|
||||
"buy": "BUY BTC",
|
||||
"sell": "SELL BTC"
|
||||
},
|
||||
"transferMethod": {
|
||||
"onchain": "Onchain",
|
||||
"lightning": "Lightning"
|
||||
}
|
||||
}
|
||||
11
frontend/locales/en/navigation.json
Normal file
11
frontend/locales/en/navigation.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"exchange": "Exchange",
|
||||
"myTrades": "My Trades",
|
||||
"myInvites": "My Invites",
|
||||
"myProfile": "My Profile",
|
||||
"signOut": "Sign out",
|
||||
"trades": "Trades",
|
||||
"availability": "Availability",
|
||||
"invites": "Invites",
|
||||
"prices": "Prices"
|
||||
}
|
||||
17
frontend/locales/es/exchange.json
Normal file
17
frontend/locales/es/exchange.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"status": {
|
||||
"pending": "Pendiente",
|
||||
"completed": "Completada",
|
||||
"userCancelled": "Cancelada por Usuario",
|
||||
"adminCancelled": "Cancelada por Admin",
|
||||
"noShow": "No Presente"
|
||||
},
|
||||
"direction": {
|
||||
"buy": "COMPRAR BTC",
|
||||
"sell": "VENDER BTC"
|
||||
},
|
||||
"transferMethod": {
|
||||
"onchain": "Onchain",
|
||||
"lightning": "Lightning"
|
||||
}
|
||||
}
|
||||
11
frontend/locales/es/navigation.json
Normal file
11
frontend/locales/es/navigation.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"exchange": "Exchange",
|
||||
"myTrades": "Mis Operaciones",
|
||||
"myInvites": "Mis Invitaciones",
|
||||
"myProfile": "Mi Perfil",
|
||||
"signOut": "Cerrar sesión",
|
||||
"trades": "Operaciones",
|
||||
"availability": "Disponibilidad",
|
||||
"invites": "Invitaciones",
|
||||
"prices": "Precios"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue