let new alerts button width expand, delete duplicate locale keys, move spanish into alerts.json

This commit is contained in:
rjpeterson 2022-02-22 17:03:27 -06:00
parent 8f0fdd2bc1
commit deb577e818
6 changed files with 21 additions and 34 deletions

View File

@ -100,7 +100,7 @@ const CreateAlertModal: FunctionComponent<CreateAlertModalProps> = ({
{t('alerts:active-alerts')}
</ElementTitle>
<Button
className="flex items-center justify-center pt-0 pb-0 h-8 text-xs w-20"
className="flex items-center justify-center pt-0 pb-0 h-8 text-xs min-w-20"
disabled={activeAlerts.length >= 5}
onClick={() => setShowAlertForm(true)}
>
@ -136,8 +136,12 @@ const CreateAlertModal: FunctionComponent<CreateAlertModalProps> = ({
) : showAlertForm ? (
<>
<Modal.Header>
<ElementTitle noMarginBottom>{t('alerts:create-alert')}</ElementTitle>
<p className="mt-1 text-center">{t('alerts:alerts-disclaimer')}</p>
<ElementTitle noMarginBottom>
{t('alerts:create-alert')}
</ElementTitle>
<p className="mt-1 text-center">
{t('alerts:alerts-disclaimer')}
</p>
</Modal.Header>
{error ? (
<div className="my-4">
@ -212,7 +216,9 @@ const CreateAlertModal: FunctionComponent<CreateAlertModalProps> = ({
) : (
<div>
<Modal.Header>
<ElementTitle noMarginBottom>{t('alerts:no-alerts')}</ElementTitle>
<ElementTitle noMarginBottom>
{t('alerts:no-alerts')}
</ElementTitle>
<p className="mt-1 text-center">{t('alerts:no-alerts-desc')}</p>
</Modal.Header>
<Button

View File

@ -21,11 +21,7 @@
"accounts": "Accounts",
"add-more-sol": "Add more SOL to your wallet to avoid failed transactions.",
"add-name": "Add Name",
"alert-health": "Alert when health is below",
"alert-info": "Email when health <= {{health}}%",
"alerts": "Alerts",
"alerts-disclaimer": "Do not rely solely on alerts to protect your account. We can't guarantee they will be delivered.",
"alerts-max": "You've reached the maximum number of active alerts.",
"all-assets": "All Assets",
"amount": "Amount",
"approximate-time": "Time",

View File

@ -1,13 +1,13 @@
{
"active-alerts": "Active Alerts",
"alert-health": "Alert when health is below",
"active-alerts": "Alertas activas",
"alert-health": "Alerta cuando la salud de tu cuenta está baja",
"alert-health-required": "Alert health is required",
"alert-info": "Email when health <= {{health}}%",
"alerts-disclaimer": "Do not rely solely on alerts to protect your account. We can't guarantee they will be delivered.",
"alert-info": "Envía correo electrónico cuando la salud de tu cuenta es <= {{health}}%",
"alerts-disclaimer": "Has alcanzado el número máximo de alertas activas.",
"alerts-max": "You've reached the maximum number of active alerts.",
"create-alert": "Create Alert",
"create-alert": "Crear alerta",
"email-address-required": "An email address is required",
"new-alert": "New Alert",
"no-alerts": "No Active Alerts",
"no-alerts-desc": "Create an alert to be notified when your account health is low."
"new-alert": "Alerta nueva",
"no-alerts": "No hay alertas activas",
"no-alerts-desc": "Cree una alerta para recibir una notificación cuando el estado de su cuenta sea bajo."
}

View File

@ -19,14 +19,9 @@
"account-risk": "Riesgo de cuenta",
"account-value": "Valor de la cuenta",
"accounts": "Cuentas",
"active-alerts": "Alertas activas",
"add-more-sol": "Agregue más SOL a su billetera para evitar transacciones fallidas.",
"add-name": "Añadir nombre",
"alert-health": "Alerta cuando la salud de tu cuenta está baja",
"alert-info": "Envía correo electrónico cuando la salud de tu cuenta es <= {{health}}%",
"alerts": "Alertas",
"alerts-disclaimer": "No confíe únicamente en las alertas para proteger su cuenta. No podemos garantizar que serán entregados.",
"alerts-max": "Has alcanzado el número máximo de alertas activas.",
"all-assets": "Todos los activos",
"amount": "Monto",
"approximate-time": "Tiempo aproximado",
@ -90,7 +85,6 @@
"country-not-allowed": "País no permitido",
"country-not-allowed-tooltip": "Está utilizando una interfaz de código abierto facilitada por Mango DAO. Como tal, restringe el acceso a ciertas regiones por precaución, debido a la incertidumbre regulatoria.",
"create-account": "Crear cuenta",
"create-alert": "Crear alerta",
"current-stats": "Estadísticas actuales",
"custom": "Personalizada",
"daily-change": "Cambio diario",
@ -126,7 +120,7 @@
"edit-name": "Actualizar nombre",
"edit-nickname": "Edite el apodo público de su cuenta",
"email-address": "Dirección de correo electrónico",
"english": "Inglés",
"english": "English",
"enter-amount": "Ingrese una cantidad para depositar",
"enter-name": "Ingrese un nombre de cuenta",
"equity": "Capital",
@ -235,12 +229,9 @@
"net-interest-value-desc": "Calculado en el momento en que se ganó / pagó. Esto podría ser útil al momento de impuestos.",
"new": "Nuevo",
"new-account": "Nuevo",
"new-alert": "Alerta nueva",
"next": "Próximo",
"no-account-found": "Cuenta no encontrada",
"no-address": "No ${tokenSymbol} dirección de billetera encontrada",
"no-alerts": "No hay alertas activas",
"no-alerts-desc": "Cree una alerta para recibir una notificación cuando el estado de su cuenta sea bajo.",
"no-balances": "Sin saldos",
"no-borrows": "No se encontraron préstamos.",
"no-funding": "Sin fondos ganados / pagados",

View File

@ -22,10 +22,6 @@
"add-more-sol": "为了避免交易出错请给被连结的钱包多存入一点SOL。",
"add-name": "加标签",
"alerts": "警报",
"alert-health": "健康度低于此度发警报",
"alert-info": "健康度在{{health}}%以下时发电子邮件",
"alerts-disclaimer": "请别全靠警报来保护资产。我们无法保证会准时发出。",
"alerts-max": "您以达到活动警报数量限制。",
"all-assets": "所有资产",
"amount": "数量",
"approximate-time": "大概时间",
@ -295,6 +291,7 @@
"redeem-failure": "收获MNGO奖励出错了",
"redeem-pnl": "结清",
"redeem-success": "已收获MNGO奖励了",
"referrals": "推荐",
"refresh": "更新",
"refresh-data": "更新资料",
"repay": "归还",

View File

@ -22,10 +22,6 @@
"add-more-sol": "為了避免交易出錯請給被連結的錢包多存入一點SOL。",
"add-name": "加標籤",
"alerts": "警報",
"alert-health": "健康度低於此度發警報",
"alert-info": "健康度在{{health}}%以下時發電子郵件",
"alerts-disclaimer": "請別全靠警報來保護資產。我們無法保證會準時發出。",
"alerts-max": "您以達到活動警報數量限制。",
"all-assets": "所有資產",
"amount": "數量",
"approximate-time": "大概時間",
@ -295,6 +291,7 @@
"redeem-failure": "收穫MNGO獎勵出錯了",
"redeem-pnl": "實現盈虧",
"redeem-success": "已收穫MNGO獎勵了",
"referrals": "推薦",
"refresh": "更新",
"refresh-data": "更新資料",
"repay": "歸還",