Skip to content

Commit

Permalink
Merge pull request #59 from soramitsu/adar-dev
Browse files Browse the repository at this point in the history
Adar dev
  • Loading branch information
timofeytrepalin authored Jul 20, 2023
2 parents 302999f + d35ebcc commit 7dfd9f8
Show file tree
Hide file tree
Showing 25 changed files with 928 additions and 184 deletions.
4 changes: 2 additions & 2 deletions src/components/App/Header/AppDisclaimer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="disclaimer__text">
<p
v-html="
t('disclaimer', {
t('adar.disclaimer', {
disclaimerPrefix,
polkaswapFaqLink,
memorandumLink,
Expand Down Expand Up @@ -77,7 +77,7 @@ export default class AppDisclaimer extends Mixins(TranslationMixin) {
}
get disclaimerPrefix(): string {
return `<span class="disclaimer__prefix">${this.t('disclaimerTitle')}:</span>`;
return `<span class="disclaimer__prefix">${this.t('adar.disclaimerTitle')}:</span>`;
}
get memorandumLink(): string {
Expand Down
8 changes: 4 additions & 4 deletions src/consts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export enum Language {
// RU = 'ru',
// CS = 'cs',
// DE = 'de',
// ES = 'es',
// FR = 'fr',
ES = 'es',
FR = 'fr',
// HR = 'hr',
// HU = 'hu',
// HY = 'hy',
Expand All @@ -55,7 +55,7 @@ export const Languages = [
// { key: Language.HR, value: 'Croatian', name: 'Hrvatski' },
// { key: Language.CS, value: 'Czech', name: 'Čeština' },
// { key: Language.NL, value: 'Dutch', name: 'Nederlands' },
// { key: Language.FR, value: 'French', name: 'Français' },
{ key: Language.FR, value: 'French', name: 'Français' },
// { key: Language.DE, value: 'German', name: 'Deutsch' },
// { key: Language.HU, value: 'Hungarian', name: 'Magyar' },
// { key: Language.ID, value: 'Indonesian', name: 'bahasa Indonesia' },
Expand All @@ -65,7 +65,7 @@ export const Languages = [
// { key: Language.RU, value: 'Russian', name: 'Русский' },
// { key: Language.SR, value: 'Serbian', name: 'Српски' },
// { key: Language.SK, value: 'Slovak', name: 'Slovenský' },
// { key: Language.ES, value: 'Spanish', name: 'Español' },
{ key: Language.ES, value: 'Spanish', name: 'Español' },
// { key: Language.SV, value: 'Swedish', name: 'Svenska' },
// { key: Language.VI, value: 'Vietnamese', name: 'Tiếng Việt' },
// { key: Language.YO, value: 'Yoruba', name: 'Yoruba' },
Expand Down
171 changes: 171 additions & 0 deletions src/lang/adar/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
{
"adar": {
"disclaimerTitle": "Disclaimer",
"disclaimer": "The token swap functionality on ADAR Technologies Inc’s website is powered by the Polkaswap website (www.polkaswap.io) which is not maintained by us and is maintained by the SORA community. Therefore, in addition to our terms {adarTS} {adarPrivacy}, the terms of Polkaswap apply mutatis mutandis. The terms of Polkaswap are available at {polkaswapFaqLink}, {memorandumLink}, and {privacyLink} ",
"routeAssets": {
"continue": "Continue",
"cancelProcessing": "Cancel processing",
"cancel": "cancel",
"back": "back",
"total": "total",
"name": "name",
"wallet": "wallet",
"usd": "usd",
"asset": "asset",
"status": "status",
"recipients": "Recipients",
"totalUsdToRoute": "total usd to be routed",
"totalTokensRequired": "total tokens required",
"inputAsset": "input asset",
"stagesNames": {
"authorize": "Authorize",
"done": "Done",
"processTemplate": "Process template",
"reviewDetails": "Review Details",
"routing": "Routing",
"transactionOverview": "Transaction overview",
"uploadTemplate": "Upload template"
},
"stages": {
"uploadTemplate": {
"title": "Upload Routing Template for processing",
"description": "Upload your Process Routing Template as a .CSV file",
"instruction": "Drop your completed process routing template or click to upload",
"typesInfo": "Supported file types: CSV",
"uploadButtonTitle": "upload",
"templateHelp": "Dont have a template?",
"download": "Download",
"parcingError": {
"title": "The .csv file couldn’t be parsed.",
"description": "Please, upload new file or re-start the process.",
"buttonTitle": "Re-start process"
}
},
"processTemplate": {
"recipients": "Recipients",
"assets": "Assets",
"usd": "usd equivalent",
"wallets": "wallets",
"amount": "ESTIMATED AMOUNTS",
"calculated": "calculated",
"issues": "issues found",
"payeers": "payeers",
"processing": "processing",
"waiting": "waiting",
"title": "Process routing template",
"description": "Our system is processing your uploaded Routing Template",
"fixButton": "fix issues"
},
"transactionOverview": {
"title": "transaction overview",
"amount": "in tokens"
},
"reviewDetails": {
"title": "Review Routing Details",
"description": "Review the details of your routing transaction",
"asset": "input asset",
"adarFee": "estimated adar fee ({adarFee}%)",
"networkFee": "network fee",
"priceImpact": "maximum price impact ({priceImpact}%)",
"feeRequired": "XOR fee required",
"tokensAvailable": "total tokens available",
"remainingAmount": "remaining amount required",
"badBalance": "insufficient funds",
"okBalance": "balance is ok",
"add": "add",
"routingDetails": {
"title": "Routing Details",
"amount": "Token amount required"
}

},
"routing": {
"pending": "Processing the routing transactions...",
"passed": "Transactions are passed",
"success": "Completed",
"failed": "Failed",
"amountText": {
"pending": "total amount to be routed",
"passed": "total amount authorized",
"success": "total amount routed",
"default": "total amount"
}
},
"done": {
"title": "Review Routing Details",
"description": "Review the details of your routing transaction",
"failedTransactions": "FAILED TRANSACTIONS",
"rerun": "re-run failed transactions",
"finishAnyway": "Re-run doesn’t help? Finish routing anyway",
"pdfButton": "download report",
"finish": "finish",
"routingDetails": {
"title": "Routing Details",
"amount": "Token amount routed",
"status": {
"status": "status",
"success": "routed",
"pending": "pending",
"passed": "passed",
"failed": "failed"
}
}

}
},
"dialogs": {
"fixIssuesDialog": {
"title": "Fix or remove issues",
"issue": "Issue",
"recipient": "recipient",
"wallets": "wallets",
"walletAddress": "wallet address",
"fieldStatusCorrect": "correct",
"fieldStatusIncorrect": "incorrect",
"usd": "usd number",
"assets": "Assets",
"estimatedAmount": "estimated amount",
"amount": "amount",
"fixButton": "fix issue",
"deleteButton": "delete recipient",
"usdError": "Should be a number",
"amountError": "Token price hasn't been found"
},
"selectInputAssetDialog": {
"title": "Select an input asset",
"totalUsd": "total usd to be routed",
"estimatedToken": "estimated {assetName} required",
"description": "Select an asset you want to work with"
},
"reportDialog": {
"title": "Select report file format",
"description": "Please, upload new file or re-start the process.",
"pdf": "pdf",
"csv": "csv"
},
"failedTransactionDialog": {
"title": "Failed transactions",
"rerunButton": "re-run all"
},
"finishAnywayDialog": {
"title": "Confirm finishing routing despite transaction issues",
"description": "If there is a certain transaction issue and re-running it doesn’t help, you can finish the routing process despite transaction issues.",
"confirmButton": "I confirm, finish routing"
}
},
"txStatus": {
"status": "status",
"success": "success",
"pending": "pending",
"passed": "passed",
"failed": "failed",
"addressValid": "address valid",
"addressInvalid": "address Invalid"
}
},
"about": {
"description": "ADAR Saves Business Owners Of Small And Medium-Sized Businesses (SMBs) Time And Money By Making It Easy And Cost Effective To Pay Large Numbers Of Global Suppliers And Employees On A Recurring Basis.",
"learnMore": "Learn More"
}
}
}
170 changes: 170 additions & 0 deletions src/lang/adar/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"adar": {
"disclaimerTitle": "Descargo de responsabilidad",
"disclaimer": "La funcionalidad de intercambio de tokens en el sitio web de ADAR Technologies Inc está impulsada por el sitio web de Polkaswap (www.polkaswap.io), que no es mantenido por nosotros y es mantenido por la comunidad de SORA. Por lo tanto, además de nuestros términos {adarTS} {adarPrivacy}, se aplican mutatis mutandis los términos de Polkaswap. Los términos de Polkaswap están disponibles en {polkaswapFaqLink}, {memorandumLink} y {privacyLink}.",
"routeAssets": {
"continue": "Continuar",
"cancelProcessing": "Cancelar procesamiento",
"cancel": "Cancelar",
"back": "Atrás",
"total": "total",
"name": "nombre",
"wallet": "cartera",
"usd": "USD",
"asset": "activo",
"status": "estado",
"recipients": "Destinatarios",
"totalUsdToRoute": "USD total a enrutarse",
"totalTokensRequired": "Total de tokens requeridos",
"inputAsset": "Activo de entrada",
"stagesNames": {
"authorize": "Autorizar",
"done": "Hecho",
"processTemplate": "Procesar plantilla",
"reviewDetails": "Revisar detalles",
"routing": "Enrutamiento",
"transactionOverview": "Resumen de transacciones",
"uploadTemplate": "Subir plantilla"
},
"stages": {
"uploadTemplate": {
"title": "Subir plantilla de enrutamiento para su procesamiento",
"description": "Cargue su plantilla de enrutamiento de procesos como un archivo .CSV",
"instruction": "Arrastre su plantilla de enrutamiento de procesos completada o haga clic para cargarla",
"typesInfo": "Tipos de archivo admitidos: CSV",
"uploadButtonTitle": "cargar",
"templateHelp": "¿No tiene una plantilla?",
"download": "Descargar",
"parcingError": {
"title": "No se pudo analizar el archivo .csv.",
"description": "Por favor, cargue un nuevo archivo o reinicie el proceso.",
"buttonTitle": "Reiniciar proceso"
}
},
"processTemplate": {
"recipients": "Destinatarios",
"assets": "Activos",
"usd": "USD equivalente",
"wallets": "Carteras",
"amount": "CANTIDADES ESTIMADAS",
"calculated": "calculado",
"issues": "problemas encontrados",
"payeers": "pagadores",
"processing": "procesando",
"waiting": "esperando",
"title": "Plantilla de enrutamiento de procesos",
"description": "Nuestro sistema está procesando su Plantilla de Enrutamiento de Procesos cargada",
"fixButton": "solucionar problemas"
},
"transactionOverview": {
"title": "Resumen de transacciones",
"amount": "en tokens"
},
"reviewDetails": {
"title": "Revisar detalles de enrutamiento",
"description": "Revise los detalles de su transacción de enrutamiento",
"asset": "Activo de entrada",
"adarFee": "tarifa ADAR estimada ({adarFee}%)",
"networkFee": "tarifa de red",
"priceImpact": "impacto máximo del precio ({priceImpact}%)",
"feeRequired": "tarifa XOR requerida",
"tokensAvailable": "tokens disponibles en total",
"remainingAmount": "cantidad restante requerida",
"badBalance": "fondos insuficientes",
"okBalance": "saldo es correcto",
"add": "agregar",
"routingDetails": {
"title": "Detalles de enrutamiento",
"amount": "Cantidad de tokens requerida"
}
},
"routing": {
"pending": "Procesando las transacciones de enrutamiento...",
"passed": "Transacciones aprobadas",
"success": "Completado",
"failed": "Fallido",
"amountText": {
"pending": "cantidad total a enrutarse",
"passed": "cantidad total autorizada",
"success": "cantidad total enrutada",
"default": "cantidad total"
}
},
"done": {
"title": "Revisar detalles de enrutamiento",
"description": "Revise los detalles de su transacción de enrutamiento",
"failedTransactions": "TRANSACCIONES FALLIDAS",
"rerun": "volver a ejecutar transacciones fallidas",
"finishAnyway": "¿No ayuda volver a ejecutar? Finalizar enrutamiento de todos modos",
"pdfButton": "descargar informe",
"finish": "finalizar",
"routingDetails": {
"title": "Detalles de enrutamiento",
"amount": "Cantidad de tokens enrutada",
"status": {
"status": "estado",
"success": "enrutada",
"pending": "pendiente",
"passed": "aprobada",
"failed": "fallida"
}
}
}
},
"dialogs": {
"fixIssuesDialog": {
"title": "Solucionar o eliminar problemas",
"issue": "Problema",
"recipient": "destinatario",
"wallets": "carteras",
"walletAddress": "dirección de la cartera",
"fieldStatusCorrect": "correcto",
"fieldStatusIncorrect": "incorrecto",
"usd": "número de USD",
"assets": "Activos",
"estimatedAmount": "cantidad estimada",
"amount": "cantidad",
"fixButton": "solucionar problema",
"deleteButton": "eliminar destinatario",
"usdError": "Debe ser un número",
"amountError": "No se ha encontrado el precio del token"
},
"selectInputAssetDialog": {
"title": "Seleccione un activo de entrada",
"totalUsd": "USD total a enrutarse",
"estimatedToken": "{assetName} estimado requerido",
"description": "Seleccione un activo con el que desee trabajar"
},
"reportDialog": {
"title": "Seleccione el formato del archivo de informe",
"description": "Por favor, cargue un nuevo archivo o reinicie el proceso.",
"pdf": "pdf",
"csv": "csv"
},
"failedTransactionDialog": {
"title": "Transacciones fallidas",
"rerunButton": "volver a ejecutar todas"
},
"finishAnywayDialog": {
"title": "Confirmar finalización del enrutamiento a pesar de los problemas de transacción",
"description": "Si hay un cierto problema de transacción y volver a ejecutarlo no ayuda, puede finalizar el proceso de enrutamiento a pesar de los problemas de transacción.",
"confirmButton": "Confirmo, finalizar enrutamiento"
}
},
"txStatus": {
"status": "estado",
"success": "éxito",
"pending": "pendiente",
"passed": "aprobada",
"failed": "fallida",
"addressValid": "dirección válida",
"addressInvalid": "dirección inválida"
}
},
"about": {
"description": "ADAR ahorra tiempo y dinero a los propietarios de pequeñas y medianas empresas (PYMES) al facilitar y abaratar el pago a grandes números de proveedores y empleados globales de forma recurrente.",
"learnMore": "Obtener más información"
}
}
}

Loading

0 comments on commit 7dfd9f8

Please sign in to comment.