Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Add french translation and format files #315

Merged
merged 4 commits into from
Jun 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ const reduxProps = ({ account }) => ({
});

export default withRouter(
connect(reduxProps, {
warningOffline,
warningOnline,
})(Router),
connect(
reduxProps,
{
warningOffline,
warningOnline,
},
)(Router),
);
5 changes: 4 additions & 1 deletion src/components/CopyToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,7 @@ CopyToClipboard.defaultProps = {
iconOnHover: false,
};

export default connect(null, { notificationShow })(CopyToClipboard);
export default connect(
null,
{ notificationShow },
)(CopyToClipboard);
5 changes: 4 additions & 1 deletion src/components/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ const reduxProps = ({ notification }) => ({
message: notification.message,
});

export default connect(reduxProps, null)(Notification);
export default connect(
reduxProps,
null,
)(Notification);
5 changes: 4 additions & 1 deletion src/components/Warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,7 @@ const reduxProps = ({ warning }) => ({
active: warning.active,
});

export default connect(reduxProps, null)(Warning);
export default connect(
reduxProps,
null,
)(Warning);
196 changes: 196 additions & 0 deletions src/languages/_french.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"translation": {
"homepage": {
"connect_metamask": {
"description": "Connectez-vous à l’extension Chrome de MetaMask.",
"button": "Se connecter à MetaMask"
},
"connect_ledger": {
"description": "Connectez-vous et signez vos transactions avec votre ",
"link_text": "hardware wallet Ledger",
"link_title": "Acheter un hardware wallet Ledger",
"button": "Se connecter à Ledger"
},
"connect_trezor": {
"description": " Connectez-vous et signez vos transactions avec votre ",
"link_text": "hardware wallet Trezor",
"link_title": "Acheter un hardware wallet Trezor",
"button": "Se connecter à Trezor"
},
"connect_walletconnect": "Connectez-vous et signez vos transactions avec votre portefeuille mobile WalletConnect",
"coming_soon": "À venir."
},
"account": {
"tab_balances": "Soldes",
"tab_transactions": "Transactions",
"tab_interactions": "Interactions",
"tab_uniquetokens": "Tokens uniques",
"tab_balances_tooltip": "Soldes en Ethereum et en tokens",
"tab_transactions_tooltip": "Transactions et transferts de tokens",
"tab_interactions_tooltip": "Interactions de smart-contracts",
"tab_uniquetokens_tooltip": "Tokens uniques",
"label_asset": "Actif",
"label_quantity": "Quantité",
"label_price": "Prix",
"label_24h": "24 h",
"label_status": "État",
"label_total": "Total",
"show": "Afficher",
"hide": "Masquer",
"token": "token",
"tokens": "tokens",
"no_market_value": "avec aucune valeur marchande",
"low_market_value": "avec une faible valeur marchande",
"tx_hash": "Hachage de transaction",
"tx_timestamp": "Horodatage",
"tx_fee": "Frais",
"tx_to": "À",
"tx_from": "De",
"tx_self": "Moi",
"tx_sent": "Envoyé",
"tx_received": "Reçu",
"tx_failed": "Échoué",
"tx_pending": "En attente",
"show_all": "Afficher tout",
"show_less": "Afficher moins",
"unknown_token": "Token inconnu"
},
"button": {
"connect_walletconnect": "Utiliser WalletConnect",
"exchange": "Échanger",
"send": "Envoyer",
"donate": "Donner de l’ETH",
"receive": "Recevoir",
"close": "Fermer",
"confirm": "Confirmer",
"cancel": "Annuler",
"go_back": "Retourner",
"send_another": "Envoyer un autre",
"exchange_again": "Échanger encore",
"notify_me": "Recevoir des notifications",
"try_again": "Réessayer",
"learn_more": "En savoir plus",
"view": "Affichage"
},
"input": {
"recipient_address": "Adresse du destinataire",
"private_key": "Clé privée",
"donation_address": "Adresse du Balance Manager",
"asset_amount": "Quantité",
"email": "Adresse de courriel",
"password": "Mot de passe",
"input_text": "Input",
"email_placeholder": "[email protected]",
"password_placeholder": "••••••••••",
"input_placeholder": "Saisissez ici"
},
"modal": {
"receive_title": "Recevoir à {{walletName}}",
"exchange_title": "Échanger de {{walletName}}",
"donate_title": "Envoyer de {{walletName}} au Balance Manager",
"send_title": "Envoyer de {{walletName}}",
"approve_tx": "Permettre une transaction de {{walletType}}",
"confirm_tx": "Confirmer une transaction de {{walletName}}",
"invalid_address": "Adresse non valide",
"send_max": "Envoyer la valeur max",
"exchange_max": "Échanger la valeur max",
"default_wallet": " Wallet",
"gas_slow": "Lent",
"gas_average": "Moyen",
"gas_fast": "Vite",
"gas_fee": "Frais",
"tx_confirm_sender": "Payeur",
"tx_confirm_recipient": "Bénéficiaire",
"tx_confirm_amount": "Quantité",
"tx_confirm_fee": "Frais de transaction",
"tx_hash": "Hachage de transaction",
"tx_verify": "Vérifiez votre transaction ici",
"deposit_dropdown_label": "Échanger mes",
"withdrawal_dropdown_label": "pour",
"deposit_input_label": "Payer",
"withdrawal_input_label": "Obtenir",
"tx_fee": "Frais de transaction",
"exchange_fee": "Frais d’échange",
"previous_short": "Préc.",
"new": "New",
"helper_balance": "Solde",
"helper_value": "Valeur",
"helper_rate": "Taux",
"helper_price": "Prix",
"helper_min": "Min",
"helper_max": "Max"
},
"message": {
"web3_not_available": "Veuillez installer l’extension Chrome de MetaMask",
"web3_not_unlocked": "Veuillez déverrouiller votre wallet MetaMask",
"web3_unknown_network": "Réseau inconnu, veuillez basculer vers un autre",
"page_not_found": "404 Page introuvable",
"coming_soon": "À venir...",
"click_to_copy_to_clipboard": "Cliquez ici pour copier dans les presse-papiers",
"failed_request": "Requête échouée, veuillez rafraîchir la page",
"failed_ledger_connection": "Erreur de connexion à Ledger, veuillez vérifier votre appareil",
"failed_trezor_connection": "Erreur de connexion à Trezor, veuillez vérifier votre appareil",
"failed_trezor_popup_blocked": "Veuillez permettre l’affichage de fenêtres contextuelles de Balance",
"no_transactions": "Aucune transaction n’a été trouvée pour ce compte",
"no_unique_tokens": "Aucun token unique n’a été trouvé pour ce compte ",
"no_interactions": "Aucune interaction n’a été trouvée pour ce compte",
"please_connect_ledger": "Veuillez choisir Ethereum après la connexion et le déverrouillage de Ledger",
"please_connect_trezor": "Veuillez vous connecter à Trezor puis suivez les instructions",
"opensea_footer": " est un marché de tokens uniques (non-fongible). En échangeant sur ce marché, on augmente de la valeur de ces tokens. Vous pouvez vendre vos tokens pour de l’argent. Tout cela utilise l’Ethereum. ",
"opensea_header": "Comment est-ce que cela marche « sous le capot ? »",
"power_by": "Réalisé par",
"exchange_not_available": "L’échange n’est pas disponible dans votre région",
"learn_more": "En savoir plus"
},
"notification": {
"error": {
"no_accounts_found": "Aucun compte Ethereum n’a été trouvé",
"invalid_address": "Adresse non valide, veuillez la vérifier",
"insufficient_balance": "Ce compte a un solde insuffisant",
"insufficient_for_fees": "Solde insuffisant pour payer les frais de transaction",
"invalid_address_scanned": "Adresse non valide, veuillez réessayer",
"invalid_private_key_scanned": "Clé privée non valide, veuillez réessayer",
"failed_scanning_qr_code": "Impossible de scanner le code QR, veuillez réessayer",
"failed_get_gas_prices": "Échec de l’obtention des prix de Gas d’Ethereum",
"failed_get_tx_fee": "Échec de l’estimation des frais de transaction",
"failed_get_account_tx": "Échec de l’obtention des transactions de compte",
"generic_error": "Une erreur s’est produite, veuillez réessayer"
},
"info": {
"address_copied_to_clipboard": "L’adresse a été copiée dans le presse-papiers"
}
},
"warning": {
"user_is_offline": "Hors connexion, veuillez vérifier votre connexion Internet",
"user_is_online": "Connexion réussie ! Vous êtes encore connecté à Internet"
},
"subscribe_form": {
"email_already_subscribed": "Désolé, vous vous êtes déjà inscrit avec cette adresse de courriel",
"too_many_signup_request": "Nous avons détecté trop de demandes d’inscription, veuillez réessayer plus tard",
"successful": "Veuillez consulter vos courriels",
"sending": "En train d’en envoyer...",
"generic_error": "Oups, une erreur s’est produite"
},
"time": {
"ms": "ms",
"milisecond": "milliseconde",
"miliseconds": "millisecondes",
"s": "s",
"sec": "sec",
"secs": "secs",
"second": "seconde",
"seconds": "secondes",
"min": "min",
"mins": "mins",
"minute": "minute",
"minutes": "minutes",
"hr": "h",
"hrs": "hres",
"hour": "heure",
"hours": "heures",
"day": "jour",
"days": "jours",
"now": "Maintenant"
}
}
}
2 changes: 2 additions & 0 deletions src/languages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import i18next from 'i18next';
import brazilian from './_brazilian.json';
import english from './_english.json';
import french from './_french.json';
import german from './_german.json';
import italian from './_italian.json';
import portuguese from './_portuguese.json';
Expand All @@ -13,6 +14,7 @@ export const resources = {
br: brazilian,
de: german,
es: spanish,
fr: french,
it: italian,
pt: portuguese,
ru: russian,
Expand Down
19 changes: 11 additions & 8 deletions src/layouts/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,14 @@ const reduxProps = ({ account, ledger, trezor, metamask, warning }) => ({
online: warning.online,
});

export default connect(reduxProps, {
ledgerUpdateNetwork,
trezorUpdateNetwork,
accountChangeNativeCurrency,
accountUpdateAccountAddress,
modalOpen,
accountChangeLanguage,
})(BaseLayout);
export default connect(
reduxProps,
{
ledgerUpdateNetwork,
trezorUpdateNetwork,
accountChangeNativeCurrency,
accountUpdateAccountAddress,
modalOpen,
accountChangeLanguage,
},
)(BaseLayout);
28 changes: 16 additions & 12 deletions src/modals/DonationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ class DonationModal extends Component {
? `${this.props.network}.`
: ''
}etherscan.io/tx/${this.props.txHash}`}
rel="noopener noreferrer"
target="_blank"
>
{lang.t('modal.tx_verify')}
Expand Down Expand Up @@ -537,15 +538,18 @@ const reduxProps = ({ modal, send, account }) => ({
prices: account.prices,
});

export default connect(reduxProps, {
modalClose,
sendModalInit,
sendUpdateGasPrice,
sendTransaction,
sendClearFields,
sendUpdateRecipient,
sendUpdateNativeAmount,
sendUpdateAssetAmount,
sendToggleConfirmationView,
notificationShow,
})(DonationModal);
export default connect(
reduxProps,
{
modalClose,
sendModalInit,
sendUpdateGasPrice,
sendTransaction,
sendClearFields,
sendUpdateRecipient,
sendUpdateNativeAmount,
sendUpdateAssetAmount,
sendToggleConfirmationView,
notificationShow,
},
)(DonationModal);
36 changes: 20 additions & 16 deletions src/modals/ExchangeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ class ExchangeModal extends Component {
? `${this.props.network}.`
: ''
}etherscan.io/tx/${this.props.txHash}`}
rel="noopener noreferrer"
target="_blank"
>
{lang.t('modal.tx_verify')}
Expand Down Expand Up @@ -914,19 +915,22 @@ const reduxProps = ({ modal, exchange, account }) => ({
fetchingShapeshift: account.fetchingShapeshift,
});

export default connect(reduxProps, {
modalClose,
exchangeClearFields,
exchangeModalInit,
exchangeSendTransaction,
exchangeUpdateWithdrawalAmount,
exchangeUpdateWithdrawalNative,
exchangeUpdateDepositAmount,
exchangeUpdateDepositSelected,
exchangeUpdateWithdrawalSelected,
exchangeToggleConfirmationView,
exchangeConfirmTransaction,
exchangeToggleWithdrawalNative,
exchangeMaxBalance,
notificationShow,
})(ExchangeModal);
export default connect(
reduxProps,
{
modalClose,
exchangeClearFields,
exchangeModalInit,
exchangeSendTransaction,
exchangeUpdateWithdrawalAmount,
exchangeUpdateWithdrawalNative,
exchangeUpdateDepositAmount,
exchangeUpdateDepositSelected,
exchangeUpdateWithdrawalSelected,
exchangeToggleConfirmationView,
exchangeConfirmTransaction,
exchangeToggleWithdrawalNative,
exchangeMaxBalance,
notificationShow,
},
)(ExchangeModal);
9 changes: 6 additions & 3 deletions src/modals/ReceiveModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ const reduxProps = ({ account }) => ({
accountType: account.accountType,
});

export default connect(reduxProps, {
modalClose,
})(ReceiveModal);
export default connect(
reduxProps,
{
modalClose,
},
)(ReceiveModal);
Loading