diff --git a/README.md b/README.md index 5eb79bc..1c16769 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Languages : + diff --git a/README_BR.md b/README_BR.md new file mode 100644 index 0000000..5447dfb --- /dev/null +++ b/README_BR.md @@ -0,0 +1,97 @@ +

+ + + + + + + +
Idiomas :
+

+ +

+ wallet-web +
+

+ +

+ Carteira digital para Protocolo Tron +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + +

+ +

+ Como utilizar • + Links • + Wiki • + Comunidade +

+ +# Como Utilizar + +## Requisitos + +* Node v9.8.0 +* Yarn + +## Funcionamento + +```bash +> yarn install +> yarn start +``` + +A carteira então pode ser acessada através do endereço: [http://localhost:3000](http://localhost:3000) + +## Alterando o URL da API padrão + +Por padrão, o Explorer se conectará à https://tronscan.io para obter os dados. + +Quando executada localmente, o URL pode ser alterado definindo a variável de ambiente `API_URL` + +```bash +> API_URL=http://127.0.0.0:8088 yarn start +``` + +Isto deve alterar a variável API_URL, apontando para o serviço local `wallet-cli` + +# Comunidade + +* [Slack](https://join.slack.com/t/tronfoundation/shared_invite/enQtMzAzNzg4NTI4NDM3LTAyZGQzMzEzMjNkNDU0ZjNkNTA4OTYyNTA5YWZmYjE3MTEyOWZhNzljNzQwODM3NDQ0OWRiMTIyMDhlYzgyOGQ) +* [Telegram](https://t.me/tronnetworkEN) + +# Links + +* [Website](https://tron.network/) +* [Documentação](https://github.com/tronprotocol/wallet-web) +* [Blog](https://tronprotocol.github.io/tron-blog/) +* [TRON Wiki](http://wiki.tron.network/en/latest/) + +# Projetos + +* [TRON Protocol](https://github.com/tronprotocol/protocol) +* [Wallet-CLI](https://github.com/tronprotocol/wallet-cli) diff --git a/README_FR.md b/README_FR.md index 33d269e..6ddf23c 100644 --- a/README_FR.md +++ b/README_FR.md @@ -4,6 +4,7 @@ Langues : + diff --git a/src/components/account/Account.js b/src/components/account/Account.js index db9eae7..c81c212 100644 --- a/src/components/account/Account.js +++ b/src/components/account/Account.js @@ -1,6 +1,6 @@ import React, {Component} from 'react'; import {connect} from "react-redux"; -import {tu} from "../../utils/i18n"; +import {tu, tup} from "../../utils/i18n"; import {loadTokenBalances} from "../../actions/account"; import {BarLoader} from "../common/loaders"; import xhr from "axios"; @@ -273,7 +273,7 @@ class Account extends Component {

- Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet. + {tu("unfreeze_error")}

@@ -399,26 +399,22 @@ class Account extends Component {
- {tu("Frozen TRX Tokens")} + {tu("frozen_trx_tokens")}
{this.renderFrozenTokens()}

- TRX can be frozen/locked to enable additional features. - For example, with your frozen TRX you can vote for super delegates.
- Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX - cannot be traded.
- After this period you can unfreeze the TRX and trade the tokens. + {tup("freeze_trx_txt")}

{ hasFrozen && }
diff --git a/src/components/account/FreezeBalanceModal.js b/src/components/account/FreezeBalanceModal.js index e39a54e..3d67f42 100644 --- a/src/components/account/FreezeBalanceModal.js +++ b/src/components/account/FreezeBalanceModal.js @@ -82,12 +82,12 @@ class FreezeBalanceModal extends React.PureComponent { return ( - {tu("Freeze TRX")} + {tu("freeze_trx")}
- + - {tu("Freeze TRX")} + {tu("freeze_trx")}

diff --git a/src/components/transfer/Receive.js b/src/components/transfer/Receive.js index bdb0f77..7ebdb84 100644 --- a/src/components/transfer/Receive.js +++ b/src/components/transfer/Receive.js @@ -27,7 +27,7 @@ class Receive extends React.Component { let rootUrl = process.env.PUBLIC_URL || window.location.origin; if (account.isLoggedIn) { - QRCode.toDataURL(`${rootUrl}/#/send?to=${account.address}`, (err, url) => { + QRCode.toDataURL(`${account.key}`, (err, url) => { this.setState({ qrcode: url, }); diff --git a/src/translations/br.js b/src/translations/br.js index aa988b6..14a2f7a 100644 --- a/src/translations/br.js +++ b/src/translations/br.js @@ -19,10 +19,10 @@ export const messages = { "view": "visualizar", "create": "novo", "country": "região", - "address": "endereço", + "address": "endereços", "balance": "saldo", "votes": "votos", - "password": "senha", + "password": "Chave privada", "showpassword":'mostrar senha', "my_vote": "meus votos", "submit_votes": "enviar votos", @@ -30,8 +30,7 @@ export const messages = { "your_personal_website_address": "Digite seu site pessoal", "send": "enviar", "amount": "quantidade", - "to": "para", - "apply_for_delegate_description": ` + "apply_for_delegate_description": ` Titulares do TRX podem aplicar para se tornar um super representante utilizando a função de gerenciamento de conta, e votando nos candidados. Cada conta pode atualizar suas informações de voto, também é permitido votar em vários candidatos. O número máximo de votos é menor ou igual a quantidade de TRX que o usuário retém no momento @@ -43,7 +42,7 @@ export const messages = { `, "unknown_error": "Ocoreu um erro desconhecido", "representative_understand": "Eu compreendo como ser um representante TRON", - "generate_account": "Clique para gerar seu endereço de conta e senha", + "generate_account": "Gerar nova conta e chave privada", "create_account_confirm_1": "Eu compreendo que, se eu perder minha senha, nunca acessarei meus ativos", "create_account_confirm_2": "Eu compreendo que se eu esquecer ou perder minha senha, ninguém poderá me ajudar a recuperá-la", "create_account_confirm_3": "Eu escrevi minha senha em um papel", @@ -51,15 +50,15 @@ export const messages = { "return_vate":"Devolva o voto", "recent_transactions": "transações recentes", "newest_account": "conta mais recente", - "most_trx": "maior carteira", "representatives": "representantes", "most_votes": "mais votado", "start_end_time": "Data Início / Fim ", "account": "conta", "accounts": "contas", "scan_qr_code": "Digitalize a imagem com um scanner de QR code", - "send_trx": "send TRX", + "send_trx": "Send TRX", "receive_trx": "receber TRX", + "send_trx_address": "Envie TRX para o seguinte endereço", "require_account_to_send": "Você precisa estar logado para enviar moedas", "require_account_to_receive": "Você precisa estar logado para receber moedas", "successful_send": "Enviado com sucesso!", @@ -118,6 +117,13 @@ export const messages = { "thanks_for_applying": "Obrigado por se inscrever!", "too_many_votes": "Votos excedentes", "no_trx_remaining": "Não há TRX restante", + "previous": "anterior", + "next": "próximo", + "block": "bloco", + "height": "altura", + "time": "hora", + "size": "tamanho", + "no_transactions": "Nenhuma transação no momento", "vote": "votar", "produced_by": "Produzido por {witnessAddress}", "show_more": "Mostrar mais {countriesLength}", @@ -141,7 +147,9 @@ export const messages = { "bytes": "bytes", "blockchain": "blockchain", "tokens": "tokens", + "not_started_yet": "Ainda não iniciado", "participate": "participar", + "participated_error": "Ocorreu um erro", "issue_a_token": "emitir um token", "token_name": "Nome do token", "exchange_rate": "câmbio", @@ -161,13 +169,46 @@ export const messages = { "participation_short_txt": `Especifique o período de participação no qual os tokens serão emitidos.      Durante o período de participação, os usuários podem trocar seus TRX por {name} tokens.`, "success_short_txt": "Token emitido com sucesso", + "witness": "representante", + "supply": "oferta", + "my_transactions": "Minhas Transações", + "from": "de", + "to": "para", "the_url": "A URL", "external_link_warning": "é um link externo e pode ser inseguro. Prossiga com cuidado.", "proceed": "Prosseguir", + "bytes": "bytes", + "create_account": "Criar conta", + "register_new_account": "ou Criar nova conta", + "account_address": "endereço da conta", + "welcome_to_tron": "Benvindo a TRON", + "your_wallet": "Sua carteira", "search_token": "Localizar Token por nome", - "send_trx_address": "Envie TRX para o seguinte endereço", - "Send TRX": "Enviar TRX", - "supply": "oferta", - "parenthash": "Parent Hash", - "search_representatives":"Search representatives" + "trx_balance": "Saldo TRX", + "remaining": "restantes", + "vote_info_link": "Para mais informações sobre os Super Representantes Tron, visite ", + "sr_guide": "Guia SR", + "votes_remaining": "Votos Restantes", + "countdown_txt": "Próximas contagem de votos em...", + "counting_votes":"Contando Votos", + "private_key": "Chave privada", + "show_private_key": "Exibir chave privada", + "most_trx": "maior carteira", + "parenthash": "Hash pai", + "no_tokens_found":"Nenhum Token Encontrado", + "search_representatives":"Localizar representantes", + "cancel": "Cancelar", + "freeze": "Congelar", + "unfreeze": "Descongelar", + "freeze_trx_txt": `TRX poden ser congelados/bloqueados para habilitar recursos adicionais. Por exemplo, com seu TRX congelado você pode votar em super delegados. + Os tokens congelados são "bloqueados" por um período de 3 dias. Durante este período, o TRX congelado não pode ser negociado. + Após este período, você pode descongelar o TRX e trocar os tokens.`, + "unfreeze_error": "Não é possível descongelar o TRX. Isso pode ser causado porque o período mínimo de congelamento ainda não foi atingido.", + "unfreeze_question": "Tem certeza de que deseja descongelar os seus TRX?", + "frozen_trx_tokens": "TRX Tokens Congelados", + "freeze_trx": "Congelar TRX", + "unfreeze_trx": "Descongelar TRX", + "trx_amount": "Quantidade de TRX", + "expires": "Expira em" }; + diff --git a/src/translations/en.js b/src/translations/en.js index 8e5ade3..5f7cfb1 100644 --- a/src/translations/en.js +++ b/src/translations/en.js @@ -52,8 +52,8 @@ export const messages = { "accounts": "accounts", "account": "account", "scan_qr_code": "Or scan this QR code on a mobile device", - "send_trx": "send TRX", - "receive_trx": "receive TRX", + "send_trx": "Send TRX", + "receive_trx": "Receive TRX", "send_trx_address": "Send TRX to the following address", "require_account_to_send": "You must be logged in to send coins", "require_account_to_receive": "You must be logged in to receive coins", @@ -190,6 +190,19 @@ export const messages = { "show_private_key": "Show Private Key", "most_trx": "Most TRX", "parenthash": "Parent Hash", - "no_tokens_found":"No Tokens Found", - "search_representatives":"Search representatives" + "no_tokens_found": "No Tokens Found", + "search_representatives": "Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; diff --git a/src/translations/es.js b/src/translations/es.js index 33b7a10..ecd94be 100644 --- a/src/translations/es.js +++ b/src/translations/es.js @@ -171,5 +171,18 @@ export const messages = { "send_trx_address": "Send TRX to the following address", "most_trx": "Most TRX", "parenthash": "Parent Hash", - "search_representatives":"Search representatives" + "search_representatives":"Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; diff --git a/src/translations/fa.js b/src/translations/fa.js index 084458c..36f45e1 100644 --- a/src/translations/fa.js +++ b/src/translations/fa.js @@ -167,5 +167,18 @@ export const messages = { "search_token": "Search for token name", "send_trx_address": "Send TRX to the following address", "parenthash": "Parent Hash", - "search_representatives":"Search representatives" + "search_representatives":"Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; \ No newline at end of file diff --git a/src/translations/fr.js b/src/translations/fr.js index ce98922..3bee51c 100644 --- a/src/translations/fr.js +++ b/src/translations/fr.js @@ -173,5 +173,18 @@ export const messages = { "search_token": "Rechercher un jeton par son nom", "to": "À", "most_trx": "solde max en TRX", - "search_representatives":"Search representatives" + "search_representatives":"Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; diff --git a/src/translations/ko.js b/src/translations/ko.js index 1224e47..56624a7 100644 --- a/src/translations/ko.js +++ b/src/translations/ko.js @@ -194,4 +194,17 @@ export const messages = { "too_many_votes": "투표수 초과", "thanks_for_applying": "신청해 주셔서 감사합니다", "search_representatives": "위임자 검색", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; diff --git a/src/translations/nl.js b/src/translations/nl.js index 58b63fe..be387df 100644 --- a/src/translations/nl.js +++ b/src/translations/nl.js @@ -111,5 +111,18 @@ export const messages = { "send_trx_address": "Send TRX to the following address", "most_trx": "Most TRX", "parenthash": "Parent Hash", - "search_representatives":"Search representatives" + "search_representatives":"Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" }; diff --git a/src/translations/zh.js b/src/translations/zh.js index 2f57a5e..ee313d0 100644 --- a/src/translations/zh.js +++ b/src/translations/zh.js @@ -110,5 +110,18 @@ export const messages = { "send_trx_address": "Send TRX to the following address", "most_trx": "Most TRX", "parenthash": "Parent Hash", - "search_representatives":"Search representatives" + "search_representatives":"Search representatives", + "cancel": "Cancel", + "freeze": "Freeze", + "unfreeze": "Unfreeze", + "freeze_trx_txt": `TRX can be frozen/locked to enable additional features. For example, with your frozen TRX you can vote for super delegates. + Frozen tokens are "locked" for a period of 3 days. During this period the frozen TRX cannot be traded. + After this period you can unfreeze the TRX and trade the tokens.`, + "unfreeze_error": "Unable to unfreeze TRX. This could be caused because the minimal freeze period hasn't been reached yet.", + "unfreeze_question": "Are you sure you want to unfreeze your TRX?", + "frozen_trx_tokens": "Frozen TRX Tokens", + "freeze_trx": "Freeze TRX", + "unfreeze_trx": "Unfreeze TRX", + "trx_amount": "TRX Amount", + "expires": "expires" };