Skip to content

Commit

Permalink
Adds missing translations, updates portuguese
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber committed Apr 12, 2020
1 parent 8ac695a commit ffb7448
Show file tree
Hide file tree
Showing 15 changed files with 76 additions and 28 deletions.
8 changes: 5 additions & 3 deletions app/components/AmountsPanel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import React from 'react'
import classNames from 'classnames'
import { orderBy, times, has } from 'lodash-es'
import { FormattedMessage } from 'react-intl'

import AmountsInfoBox from './AmountsInfoBox'
import { CURRENCIES, PRICE_UNAVAILABLE } from '../../core/constants'

import Nothing from '../../assets/icons/nothing.svg'

import amountBoxStyles from './AmountsInfoBox/AmountsInfoBox.scss'
import styles from './AmountsPanel.scss'

Expand Down Expand Up @@ -38,7 +37,10 @@ const AmountsPanel = ({ amountsData, currencyCode }: Props) => {
if (!Array.isArray(amountsData) || amountsData.length === 0) {
return (
<div className={styles.zeroAmount}>
<Nothing /> <h1> Nothing to see here! </h1>
<Nothing />{' '}
<h1>
<FormattedMessage id="nothingToSeeHere" />
</h1>
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ export default class TokenBalancesPanel extends React.Component<Props> {
return (
<div className={styles.emptyBalanceContainer}>
<div className={styles.headerContainer}>
<Nothing /> <h1> Nothing to see here! </h1>
<Nothing />
<h1>
<FormattedMessage id="nothingToSeeHere" />
</h1>
</div>
<p>
You’ll need to <b>transfer compatible NEP-5 assets</b> to this wallet
using{' '}
<NavLink id="wallet-manager" exact to={ROUTES.RECEIVE}>
<span> receive </span>
</NavLink>{' '}
or your public address:
</p>
<p />
<div className={styles.address}>
<TextInput value={address} disabled />
<CopyToClipboard
Expand Down
2 changes: 2 additions & 0 deletions app/components/Inputs/StyledReactSelect/StyledReactSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ const StyledReactSelect = props => (
{translation => (
<Select
{...props}
noOptionsMessage={() => <FormattedMessage id="noOptionsMessage" />}
loadingMessage={() => <FormattedMessage id="isLoadingMessage" />}
maxMenuHeight={140}
styles={customStyles}
className="react-select-container"
Expand Down
2 changes: 0 additions & 2 deletions app/containers/LoginLedgerNanoS/LoginLedgerNanoS.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export default class LoginLedgerNanoS extends React.Component<Props, State> {
super(props)
this.state = {
...this.computeStateFromProps(props),
// ledgerStage: OPEN_APP,
// isLoading: false,
addressOption: null,
publicKeys: [],
loadingPublicKeys: true,
Expand Down
2 changes: 1 addition & 1 deletion app/core/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const LANGUAGES = {
renderFlag: () => <France alt="Francés" />,
},
GERMAN: {
label: 'Deutsche',
label: 'Deutsch',
value: 'GERMAN',
renderFlag: () => <Germany alt="Deutsche" />,
},
Expand Down
5 changes: 5 additions & 0 deletions app/translations/arabic.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'إعدادات التحديث',
networkConfigTooltipPublicKey: 'المفتاح العمومي:',
networkConfigTooltipAddress: 'عنوان:',

noOptionsMessage: 'لا يوجد خيارات',
isLoadingMessage: 'جار التحميل...',

nothingToSeeHere: 'ليس هناك ما تراه هنا!',
}

const AUTH = {
Expand Down
5 changes: 5 additions & 0 deletions app/translations/chinese.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: '更新设定',
networkConfigTooltipPublicKey: '公钥:',
networkConfigTooltipAddress: '地址:',

noOptionsMessage: '没有选择',
isLoadingMessage: '载入中...',

nothingToSeeHere: '這沒東西看!',
}

const AUTH = {
Expand Down
5 changes: 5 additions & 0 deletions app/translations/english.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Update Settings',
networkConfigTooltipPublicKey: 'PUBLIC KEY:',
networkConfigTooltipAddress: 'ADDRESS:',

noOptionsMessage: 'No options',
isLoadingMessage: 'Loading...',

nothingToSeeHere: 'Nothing to see here!',
}

const AUTH = {
Expand Down
5 changes: 5 additions & 0 deletions app/translations/french.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Mise à jour',
networkConfigTooltipPublicKey: 'CLÉ PUBLIQUE:',
networkConfigTooltipAddress: 'ADRESSE:',

noOptionsMessage: 'Aucune option',
isLoadingMessage: 'Chargement...',

nothingToSeeHere: 'Rien à voir ici!',
}
const AUTH = {
authLogin: 'Connexion',
Expand Down
11 changes: 8 additions & 3 deletions app/translations/german.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,18 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Update Einstellungen',
networkConfigTooltipPublicKey: 'ÖFFENTLICHER SCHLÜSSEL:',
networkConfigTooltipAddress: 'ADRESSE:',

noOptionsMessage: 'Keine Optionen',
isLoadingMessage: 'Wird geladen...',

nothingToSeeHere: 'Es gibt hier nichts zu sehen!',
}

const AUTH = {
authLogin: 'Log-in',
authSaved: 'GESPEICHERT',
authPrivate: 'PRIVATER',
authEncrypted: 'VERSCHLÜSSELTER',
authPrivate: 'WIF',
authEncrypted: 'NEP-2',
authWatch: 'ANZEIGEN',
authLedger: 'LEDGER',
authCreateWallet: ' Wallet erstellen',
Expand Down Expand Up @@ -141,7 +146,7 @@ const SIDEBAR = {
sidebarActivity: 'Aktivität',
sidebarSend: 'Senden',
sidebarReceive: 'Empfangen',
sidebarContacts: 'Contacts',
sidebarContacts: 'Kontakte',
sidebarTokenSale: 'Token-Sale',
sidebarNews: 'News',
sidebarSettings: 'Einstellungen',
Expand Down
5 changes: 5 additions & 0 deletions app/translations/italian.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Aggiorna impostazioni',
networkConfigTooltipPublicKey: 'CHIAVE PUBBLICA:',
networkConfigTooltipAddress: 'INDIRIZZO:',

noOptionsMessage: 'Nessuna opzione',
isLoadingMessage: 'Caricamento in corso...',

nothingToSeeHere: 'Niente da vedere quì!',
}

const AUTH = {
Expand Down
5 changes: 5 additions & 0 deletions app/translations/korean.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: '업데이트 설정',
networkConfigTooltipPublicKey: '공개 키:',
networkConfigTooltipAddress: '주소:',

noOptionsMessage: '옵션이 없습니다',
isLoadingMessage: '불러오는 중...',

nothingToSeeHere: '여기는 볼게 없다!',
}

const AUTH = {
Expand Down
25 changes: 15 additions & 10 deletions app/translations/portuguese.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const INPUTS = {
inputSelectPlaceholder: 'Selecionar',
inputPasswordPlaceholder: 'Senha',
inputEncryptedPlaceholder: 'Chave Privada',
authPrivateKeyPlaceholder: 'Insira sua chave privada',
authPrivateKeyPlaceholder: 'Endereço NEO',
authWatchPlaceholder: 'Insira um endereço do NEO',
}

Expand Down Expand Up @@ -78,15 +78,20 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Atualizar configurações',
networkConfigTooltipPublicKey: 'CHAVE PÚBLICA:',
networkConfigTooltipAddress: 'ENDEREÇO:',

noOptionsMessage: 'Sem opções',
isLoadingMessage: 'Carregando...',

nothingToSeeHere: 'Nada para ver aqui!',
}

const AUTH = {
authLogin: 'Login',
authSaved: 'SALVO',
authPrivate: 'PRIVADO',
authEncrypted: 'CRIPTOGRAFADO',
authPrivate: 'CHAVE (WIF)',
authEncrypted: 'CHAVE (NEP-2)',
authWatch: 'OBSERVAR',
authLedger: 'REGISTRO',
authLedger: 'HARDWARE',
authCreateWallet: 'Criar Wallet',
authImportWallet: 'Importar Wallet',
authScanQRButton: 'Escanear QR Code',
Expand Down Expand Up @@ -122,10 +127,10 @@ const WALLET_CREATION = {

const DASHBOARD = {
dashboardBalancePanelLabel: 'Saldo de Tokens',
dashboardAssetsPanelLabel: 'Moedas do Sistema',
dashboardAssetsPanelLabel: 'Saldo de Moedas',
dashboardAssetsTotal: 'TOTAL',
dashboardMarketDataLabel: 'Dados do Mercado',
dashboardValueLabel: 'Valor Total da Wallet',
dashboardValueLabel: 'Valor da Wallet',
dashboardAddressLabel: 'Endereço:',
dashboardPriceNotAvailable: 'N/A',
dashboardGasClaimButton: 'Requerer {amount} GAS',
Expand Down Expand Up @@ -178,7 +183,7 @@ const RECEIVE = {
receiveCopyCodeButton: 'Copiar QR Code',
receiveDisclaimer:
'Apenas envie moedas <b>compatíveis com o blockchain NEO (NEO, GAS, etc.)</b>. Enviar outros ativos vai resultar em sua perda permanente.',
receiveRequestTabAssets: 'SOLICITAR ATIVOS',
receiveRequestTabAssets: 'SOLICITAR PAGAMENTO',
recieveWhyUseQRLabel: 'Por que usar um QR Code?',
receiveQRExplanation:
'<p>Já enviou ativos para o endereço errado por causa de um erro no caractere do endereço da wallet?</p><p>Se não, sorte a sua - mas acontece com uma frequência assustadora.</p> <p>Aqui na COZ, queremos garantir que as pessoas que te pagam acertem e tenham as informações corretas. Você pode gerar um QR Code na solicitação de ativos e pagamentos, para ajudá-los a te ajudar.</p><p>Todo código que você gerar vai incluir o endereço público da sua wallet, uma quantia e uma referência - todos determinados por você.</p>',
Expand All @@ -190,7 +195,7 @@ const REQUEST_ASSETS = {
requestAssetAmount: 'QUANTIA',
requestAssetDepositLabel: 'DEPOSITAR NESTA WALLET',
requestAssetRefLabel: 'REFERÊNCIA',
requestAssetRefPlaceholder: 'Adicionar uma anotação...',
requestAssetRefPlaceholder: 'Adicionar nota...',
requestAssetQRButton: 'Gerar QR Code',
requestAssetYourQRHeader: 'Seu QR Code',
requestAssetsPaymentDetails: 'DETALHES DA SOLICITAÇÃO DE PAGAMENTO',
Expand Down Expand Up @@ -258,7 +263,7 @@ const SETTINGS = {
settingsEncryptLink: 'CRIPTOGRAFE UMA CHAVE',
recoverWallet: 'RECUPERAR WALLET',
settingsRecoverWalletLink: 'IMPORTAR',
settingsBackUpLinkLabel: 'FAZER BACKUP DE WALLET',
settingsBackUpLinkLabel: 'FAZER BACKUP DA WALLET',
settingsBackUpLink: 'EXPORTAR',
settingsManageLabel: 'Administre sua Neon Wallet',
settingsCommunity: 'Suporte da Comunidade',
Expand All @@ -267,7 +272,7 @@ const SETTINGS = {

const NETWORK_SETTINGS = {
networkSettingsInstructions:
'Gerenciar configurações da rede relacionadas a como Neon Wallet interage com o blockchain',
'Gerenciar configurações da rede relacionadas a como Neon Wallet interage com o blockchain.',
networkSettingsNodeSelectLabel: 'SELECIONAR NÓ',
networkSettingsExplorerLabel: 'BLOCK EXPLORER',
networkSettingsCurrentLabel: 'REDE ATUAL',
Expand Down
5 changes: 5 additions & 0 deletions app/translations/turkish.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Ayarları güncelle',
networkConfigTooltipPublicKey: 'PGENEL ANAHTAR:',
networkConfigTooltipAddress: 'ADRES:',

noOptionsMessage: 'Seçenek yok',
isLoadingMessage: 'Yükleniyor...',

nothingToSeeHere: 'Görecek hiçbirşey yok!',
}

const AUTH = {
Expand Down
5 changes: 5 additions & 0 deletions app/translations/vietnamese.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ const VARIOUS_MISSING_TRANSLATIONS = {
networkConfigTooltipUpdateSettings: 'Cập nhật cài đặt',
networkConfigTooltipPublicKey: 'KHÓA CÔNG KHAI:',
networkConfigTooltipAddress: 'ĐỊA CHỈ:',

noOptionsMessage: 'Không có lựa chọn',
isLoadingMessage: 'Đang tải...',

nothingToSeeHere: 'Không có gì để xem!',
}
const AUTH = {
authLogin: 'Đăng nhập',
Expand Down

0 comments on commit ffb7448

Please sign in to comment.