commit
6306c7b190
@ -1,10 +1,609 @@ |
||||
{ |
||||
"accept": { |
||||
"message": "Accept" |
||||
}, |
||||
"account": { |
||||
"message": "Account" |
||||
}, |
||||
"accountDetails": { |
||||
"message": "Account Details" |
||||
}, |
||||
"accountName": { |
||||
"message": "Account Name" |
||||
}, |
||||
"address": { |
||||
"message": "Address" |
||||
}, |
||||
"addToken": { |
||||
"message": "Add Token" |
||||
}, |
||||
"amount": { |
||||
"message": "Amount" |
||||
}, |
||||
"amountPlusGas": { |
||||
"message": "Amount + Gas" |
||||
}, |
||||
"appDescription": { |
||||
"message": "Ethereum Browser Extension", |
||||
"description": "The description of the application" |
||||
}, |
||||
"appName": { |
||||
"message": "MetaMask", |
||||
"description": "The name of the application" |
||||
}, |
||||
"appDescription": { |
||||
"message": "Ethereum Identity Management", |
||||
"description": "The description of the application" |
||||
"attemptingConnect": { |
||||
"message": "Attempting to connect to blockchain." |
||||
}, |
||||
"available": { |
||||
"message": "Available" |
||||
}, |
||||
"back": { |
||||
"message": "Back" |
||||
}, |
||||
"balance": { |
||||
"message": "Balance:" |
||||
}, |
||||
"balanceIsInsufficientGas": { |
||||
"message": "Insufficient balance for current gas total" |
||||
}, |
||||
"beta": { |
||||
"message": "BETA" |
||||
}, |
||||
"betweenMinAndMax": { |
||||
"message": "must be greater than or equal to $1 and less than or equal to $2.", |
||||
"description": "helper for inputting hex as decimal input" |
||||
}, |
||||
"borrowDharma": { |
||||
"message": "Borrow With Dharma (Beta)" |
||||
}, |
||||
"buy": { |
||||
"message": "Buy" |
||||
}, |
||||
"buyCoinbase": { |
||||
"message": "Buy on Coinbase" |
||||
}, |
||||
"buyCoinbaseExplainer": { |
||||
"message": "Coinbase is the world’s most popular way to buy and sell bitcoin, ethereum, and litecoin." |
||||
}, |
||||
"cancel": { |
||||
"message": "Cancel" |
||||
}, |
||||
"clickCopy": { |
||||
"message": "Click to Copy" |
||||
}, |
||||
"confirm": { |
||||
"message": "Confirm" |
||||
}, |
||||
"confirmContract": { |
||||
"message": "Confirm Contract" |
||||
}, |
||||
"confirmPassword": { |
||||
"message": "Confirm Password" |
||||
}, |
||||
"confirmTransaction": { |
||||
"message": "Confirm Transaction" |
||||
}, |
||||
"continueToCoinbase": { |
||||
"message": "Continue to Coinbase" |
||||
}, |
||||
"contractDeployment": { |
||||
"message": "Contract Deployment" |
||||
}, |
||||
"conversionProgress": { |
||||
"message": "Conversion in progress" |
||||
}, |
||||
"copiedButton": { |
||||
"message": "Copied" |
||||
}, |
||||
"copiedClipboard": { |
||||
"message": "Copied to Clipboard" |
||||
}, |
||||
"copiedExclamation": { |
||||
"message": "Copied!" |
||||
}, |
||||
"copy": { |
||||
"message": "Copy" |
||||
}, |
||||
"copyToClipboard": { |
||||
"message": "Copy to clipboard" |
||||
}, |
||||
"copyButton": { |
||||
"message": " Copy " |
||||
}, |
||||
"copyPrivateKey": { |
||||
"message": "This is your private key (click to copy)" |
||||
}, |
||||
"create": { |
||||
"message": "Create" |
||||
}, |
||||
"createAccount": { |
||||
"message": "Create Account" |
||||
}, |
||||
"createDen": { |
||||
"message": "Create" |
||||
}, |
||||
"crypto": { |
||||
"message": "Crypto", |
||||
"description": "Exchange type (cryptocurrencies)" |
||||
}, |
||||
"customGas": { |
||||
"message": "Customize Gas" |
||||
}, |
||||
"customize": { |
||||
"message": "Customize" |
||||
}, |
||||
"customRPC": { |
||||
"message": "Custom RPC" |
||||
}, |
||||
"defaultNetwork": { |
||||
"message": "The default network for Ether transactions is Main Net." |
||||
}, |
||||
"denExplainer": { |
||||
"message": "Your DEN is your password-encrypted storage within MetaMask." |
||||
}, |
||||
"deposit": { |
||||
"message": "Deposit" |
||||
}, |
||||
"depositBTC": { |
||||
"message": "Deposit your BTC to the address below:" |
||||
}, |
||||
"depositCoin": { |
||||
"message": "Deposit your $1 to the address below", |
||||
"description": "Tells the user what coin they have selected to deposit with shapeshift" |
||||
}, |
||||
"depositEth": { |
||||
"message": "Deposit Eth" |
||||
}, |
||||
"depositEther": { |
||||
"message": "Deposit Ether" |
||||
}, |
||||
"depositFiat": { |
||||
"message": "Deposit with Fiat" |
||||
}, |
||||
"depositFromAccount": { |
||||
"message": "Deposit from another account" |
||||
}, |
||||
"depositShapeShift": { |
||||
"message": "Deposit with ShapeShift" |
||||
}, |
||||
"depositShapeShiftExplainer": { |
||||
"message": "If you own other cryptocurrencies, you can trade and deposit Ether directly into your MetaMask wallet. No Account Needed." |
||||
}, |
||||
"details": { |
||||
"message": "Details" |
||||
}, |
||||
"directDeposit": { |
||||
"message": "Direct Deposit" |
||||
}, |
||||
"directDepositEther": { |
||||
"message": "Directly Deposit Ether" |
||||
}, |
||||
"directDepositEtherExplainer": { |
||||
"message": "If you already have some Ether, the quickest way to get Ether in your new wallet by direct deposit." |
||||
}, |
||||
"done": { |
||||
"message": "Done" |
||||
}, |
||||
"edit": { |
||||
"message": "Edit" |
||||
}, |
||||
"editAccountName": { |
||||
"message": "Edit Account Name" |
||||
}, |
||||
"encryptNewDen": { |
||||
"message": "Encrypt your new DEN" |
||||
}, |
||||
"enterPassword": { |
||||
"message": "Enter password" |
||||
}, |
||||
"etherscanView": { |
||||
"message": "View account on Etherscan" |
||||
}, |
||||
"exchangeRate": { |
||||
"message": "Exchange Rate" |
||||
}, |
||||
"exportPrivateKey": { |
||||
"message": "Export Private Key" |
||||
}, |
||||
"exportPrivateKeyWarning": { |
||||
"message": "Export private keys at your own risk." |
||||
}, |
||||
"failed": { |
||||
"message": "Failed" |
||||
}, |
||||
"fiat": { |
||||
"message": "FIAT", |
||||
"description": "Exchange type" |
||||
}, |
||||
"fileImportFail": { |
||||
"message": "File import not working? Click here!", |
||||
"description": "Helps user import their account from a JSON file" |
||||
}, |
||||
"from": { |
||||
"message": "From" |
||||
}, |
||||
"fromShapeShift": { |
||||
"message": "From ShapeShift" |
||||
}, |
||||
"gas": { |
||||
"message": "Gas", |
||||
"description": "Short indication of gas cost" |
||||
}, |
||||
"gasFee": { |
||||
"message": "Gas Fee" |
||||
}, |
||||
"gasLimit": { |
||||
"message": "Gas Limit" |
||||
}, |
||||
"gasLimitCalculation": { |
||||
"message": "We calculate the suggested gas limit based on network success rates." |
||||
}, |
||||
"gasLimitRequired": { |
||||
"message": "Gas Limit Required" |
||||
}, |
||||
"gasLimitTooLow": { |
||||
"message": "Gas limit must be at least 21000" |
||||
}, |
||||
"gasPrice": { |
||||
"message": "Gas Price (GWEI)" |
||||
}, |
||||
"gasPriceCalculation": { |
||||
"message": "We calculate the suggested gas prices based on network success rates." |
||||
}, |
||||
"gasPriceRequired": { |
||||
"message": "Gas Price Required" |
||||
}, |
||||
"getEther": { |
||||
"message": "Get Ether" |
||||
}, |
||||
"getEtherFromFaucet": { |
||||
"message": "Get Ether from a faucet for the $1", |
||||
"description": "Displays network name for Ether faucet" |
||||
}, |
||||
"greaterThanMin": { |
||||
"message": "must be greater than or equal to $1.", |
||||
"description": "helper for inputting hex as decimal input" |
||||
}, |
||||
"here": { |
||||
"message": "here", |
||||
"description": "as in -click here- for more information (goes with troubleTokenBalances)" |
||||
}, |
||||
"hide": { |
||||
"message": "Hide" |
||||
}, |
||||
"hideToken": { |
||||
"message": "Hide Token" |
||||
}, |
||||
"hideTokenPrompt": { |
||||
"message": "Hide Token?" |
||||
}, |
||||
"howToDeposit": { |
||||
"message": "How would you like to deposit Ether?" |
||||
}, |
||||
"import": { |
||||
"message": "Import", |
||||
"description": "Button to import an account from a selected file" |
||||
}, |
||||
"importAccount": { |
||||
"message": "Import Account" |
||||
}, |
||||
"importAnAccount": { |
||||
"message": "Import an account" |
||||
}, |
||||
"importDen": { |
||||
"message": "Import Existing DEN" |
||||
}, |
||||
"imported": { |
||||
"message": "Imported", |
||||
"description": "status showing that an account has been fully loaded into the keyring" |
||||
}, |
||||
"infoHelp": { |
||||
"message": "Info & Help" |
||||
}, |
||||
"invalidAddress": { |
||||
"message": "Invalid address" |
||||
}, |
||||
"invalidGasParams": { |
||||
"message": "Invalid Gas Parameters" |
||||
}, |
||||
"invalidInput": { |
||||
"message": "Invalid input." |
||||
}, |
||||
"invalidRequest": { |
||||
"message": "Invalid Request" |
||||
}, |
||||
"jsonFile": { |
||||
"message": "JSON File", |
||||
"description": "format for importing an account" |
||||
}, |
||||
"kovan": { |
||||
"message": "Kovan Test Network" |
||||
}, |
||||
"lessThanMax": { |
||||
"message": "must be less than or equal to $1.", |
||||
"description": "helper for inputting hex as decimal input" |
||||
}, |
||||
"limit": { |
||||
"message": "Limit" |
||||
}, |
||||
"loading": { |
||||
"message": "Loading..." |
||||
}, |
||||
"loadingTokens": { |
||||
"message": "Loading Tokens..." |
||||
}, |
||||
"localhost": { |
||||
"message": "Localhost 8545" |
||||
}, |
||||
"logout": { |
||||
"message": "Log out" |
||||
}, |
||||
"loose": { |
||||
"message": "Loose" |
||||
}, |
||||
"mainnet": { |
||||
"message": "Main Ethereum Network" |
||||
}, |
||||
"message": { |
||||
"message": "Message" |
||||
}, |
||||
"min": { |
||||
"message": "Minimum" |
||||
}, |
||||
"myAccounts": { |
||||
"message": "My Accounts" |
||||
}, |
||||
"needEtherInWallet": { |
||||
"message": "To interact with decentralized applications using MetaMask, you’ll need Ether in your wallet." |
||||
}, |
||||
"needImportFile": { |
||||
"message": "You must select a file to import.", |
||||
"description": "User is important an account and needs to add a file to continue" |
||||
}, |
||||
"needImportPassword": { |
||||
"message": "You must enter a password for the selected file.", |
||||
"description": "Password and file needed to import an account" |
||||
}, |
||||
"networks": { |
||||
"message": "Networks" |
||||
}, |
||||
"newAccount": { |
||||
"message": "New Account" |
||||
}, |
||||
"newAccountNumberName": { |
||||
"message": "Account $1", |
||||
"description": "Default name of next account to be created on create account screen" |
||||
}, |
||||
"newContract": { |
||||
"message": "New Contract" |
||||
}, |
||||
"newPassword": { |
||||
"message": "New Password (min 8 chars)" |
||||
}, |
||||
"newRecipient": { |
||||
"message": "New Recipient" |
||||
}, |
||||
"next": { |
||||
"message": "Next" |
||||
}, |
||||
"noAddressForName": { |
||||
"message": "No address has been set for this name." |
||||
}, |
||||
"noDeposits": { |
||||
"message": "No deposits received" |
||||
}, |
||||
"noTransactionHistory": { |
||||
"message": "No transaction history." |
||||
}, |
||||
"noTransactions": { |
||||
"message": "No Transactions" |
||||
}, |
||||
"notStarted": { |
||||
"message": "Not Started" |
||||
}, |
||||
"oldUI": { |
||||
"message": "Old UI" |
||||
}, |
||||
"oldUIMessage": { |
||||
"message": "You have returned to the old UI. You can switch back to the New UI through the option in the top right dropdown menu." |
||||
}, |
||||
"or": { |
||||
"message": "or", |
||||
"description": "choice between creating or importing a new account" |
||||
}, |
||||
"passwordMismatch": { |
||||
"message": "passwords don't match", |
||||
"description": "in password creation process, the two new password fields did not match" |
||||
}, |
||||
"passwordShort": { |
||||
"message": "password not long enough", |
||||
"description": "in password creation process, the password is not long enough to be secure" |
||||
}, |
||||
"pastePrivateKey": { |
||||
"message": "Paste your private key string here:", |
||||
"description": "For importing an account from a private key" |
||||
}, |
||||
"pasteSeed": { |
||||
"message": "Paste your seed phrase here!" |
||||
}, |
||||
"pleaseReviewTransaction": { |
||||
"message": "Please review your transaction." |
||||
}, |
||||
"privateKey": { |
||||
"message": "Private Key", |
||||
"description": "select this type of file to use to import an account" |
||||
}, |
||||
"privateKeyWarning": { |
||||
"message": "Warning: Never disclose this key. Anyone with your private keys can take steal any assets held in your account." |
||||
}, |
||||
"privateNetwork": { |
||||
"message": "Private Network" |
||||
}, |
||||
"qrCode": { |
||||
"message": "Show QR Code" |
||||
}, |
||||
"readdToken": { |
||||
"message": "You can add this token back in the future by going go to “Add token” in your accounts options menu." |
||||
}, |
||||
"readMore": { |
||||
"message": "Read more here." |
||||
}, |
||||
"receive": { |
||||
"message": "Receive" |
||||
}, |
||||
"recipientAddress": { |
||||
"message": "Recipient Address" |
||||
}, |
||||
"refundAddress": { |
||||
"message": "Your Refund Address" |
||||
}, |
||||
"rejected": { |
||||
"message": "Rejected" |
||||
}, |
||||
"required": { |
||||
"message": "Required" |
||||
}, |
||||
"retryWithMoreGas": { |
||||
"message": "Retry with a higher gas price here" |
||||
}, |
||||
"revert": { |
||||
"message": "Revert" |
||||
}, |
||||
"rinkeby": { |
||||
"message": "Rinkeby Test Network" |
||||
}, |
||||
"ropsten": { |
||||
"message": "Ropsten Test Network" |
||||
}, |
||||
"sampleAccountName": { |
||||
"message": "E.g. My new account", |
||||
"description": "Help user understand concept of adding a human-readable name to their account" |
||||
}, |
||||
"save": { |
||||
"message": "Save" |
||||
}, |
||||
"saveAsFile": { |
||||
"message": "Save as File", |
||||
"description": "Account export process" |
||||
}, |
||||
"selectService": { |
||||
"message": "Select Service" |
||||
}, |
||||
"send": { |
||||
"message": "Send" |
||||
}, |
||||
"sendTokens": { |
||||
"message": "Send Tokens" |
||||
}, |
||||
"sendTokensAnywhere": { |
||||
"message": "Send Tokens to anyone with an Ethereum account" |
||||
}, |
||||
"settings": { |
||||
"message": "Settings" |
||||
}, |
||||
"shapeshiftBuy": { |
||||
"message": "Buy with Shapeshift" |
||||
}, |
||||
"showPrivateKeys": { |
||||
"message": "Show Private Keys" |
||||
}, |
||||
"showQRCode": { |
||||
"message": "Show QR Code" |
||||
}, |
||||
"sign": { |
||||
"message": "Sign" |
||||
}, |
||||
"signMessage": { |
||||
"message": "Sign Message" |
||||
}, |
||||
"signNotice": { |
||||
"message": "Signing this message can have \ndangerous side effects. Only sign messages from \nsites you fully trust with your entire account.\n This dangerous method will be removed in a future version. " |
||||
}, |
||||
"sigRequest": { |
||||
"message": "Signature Request" |
||||
}, |
||||
"sigRequested": { |
||||
"message": "Signature Requested" |
||||
}, |
||||
"status": { |
||||
"message": "Status" |
||||
}, |
||||
"submit": { |
||||
"message": "Submit" |
||||
}, |
||||
"takesTooLong": { |
||||
"message": "Taking too long?" |
||||
}, |
||||
"testFaucet": { |
||||
"message": "Test Faucet" |
||||
}, |
||||
"to": { |
||||
"message": "To" |
||||
}, |
||||
"toETHviaShapeShift": { |
||||
"message": "$1 to ETH via ShapeShift", |
||||
"description": "system will fill in deposit type in start of message" |
||||
}, |
||||
"tokenBalance": { |
||||
"message": "Your Token Balance is:" |
||||
}, |
||||
"total": { |
||||
"message": "Total" |
||||
}, |
||||
"transactionMemo": { |
||||
"message": "Transaction memo (optional)" |
||||
}, |
||||
"transactionNumber": { |
||||
"message": "Transaction Number" |
||||
}, |
||||
"transfers": { |
||||
"message": "Transfers" |
||||
}, |
||||
"troubleTokenBalances": { |
||||
"message": "We had trouble loading your token balances. You can view them ", |
||||
"description": "Followed by a link (here) to view token balances" |
||||
}, |
||||
"typePassword": { |
||||
"message": "Type Your Password" |
||||
}, |
||||
"uiWelcome": { |
||||
"message": "Welcome to the New UI (Beta)" |
||||
}, |
||||
"uiWelcomeMessage": { |
||||
"message": "You are now using the new Metamask UI. Take a look around, try out new features like sending tokens, and let us know if you have any issues." |
||||
}, |
||||
"unavailable": { |
||||
"message": "Unavailable" |
||||
}, |
||||
"unknown": { |
||||
"message": "Unknown" |
||||
}, |
||||
"unknownNetwork": { |
||||
"message": "Unknown Private Network" |
||||
}, |
||||
"unknownNetworkId": { |
||||
"message": "Unknown network ID" |
||||
}, |
||||
"usaOnly": { |
||||
"message": "USA only", |
||||
"description": "Using this exchange is limited to people inside the USA" |
||||
}, |
||||
"usedByClients": { |
||||
"message": "Used by a variety of different clients" |
||||
}, |
||||
"viewAccount": { |
||||
"message": "View Account" |
||||
}, |
||||
"warning": { |
||||
"message": "Warning" |
||||
}, |
||||
"whatsThis": { |
||||
"message": "What's this?" |
||||
}, |
||||
"yourSigRequested": { |
||||
"message": "Your signature is being requested" |
||||
}, |
||||
"youSign": { |
||||
"message": "You are signing" |
||||
} |
||||
} |
||||
|
@ -0,0 +1,609 @@ |
||||
{ |
||||
"accept": { |
||||
"message": "Accepter" |
||||
}, |
||||
"account": { |
||||
"message": "Compte" |
||||
}, |
||||
"accountDetails": { |
||||
"message": "Détails du compte" |
||||
}, |
||||
"accountName": { |
||||
"message": "Nom du compte" |
||||
}, |
||||
"address": { |
||||
"message": "Adresse" |
||||
}, |
||||
"addToken": { |
||||
"message": "Ajouter un jeton" |
||||
}, |
||||
"amount": { |
||||
"message": "Montant" |
||||
}, |
||||
"amountPlusGas": { |
||||
"message": "Montant + Gaz" |
||||
}, |
||||
"appDescription": { |
||||
"message": "Extension Ethereum pour navigateur", |
||||
"description": "La description de l'application" |
||||
}, |
||||
"appName": { |
||||
"message": "MetaMask", |
||||
"description": "Le nom de l'application" |
||||
}, |
||||
"attemptingConnect": { |
||||
"message": "Tentative de connexion à blockchain." |
||||
}, |
||||
"available": { |
||||
"message": "Disponible" |
||||
}, |
||||
"back": { |
||||
"message": "Retour" |
||||
}, |
||||
"balance": { |
||||
"message": "Balance:" |
||||
}, |
||||
"balanceIsInsufficientGas": { |
||||
"message": "Solde insuffisant pour le total actuel de gaz" |
||||
}, |
||||
"beta": { |
||||
"message": "BETA" |
||||
}, |
||||
"betweenMinAndMax": { |
||||
"message": "doit être supérieur ou égal à $1 et inférieur ou égal à $2", |
||||
"description": "helper pour la saisie hexadécimale en entrée décimale" |
||||
}, |
||||
"borrowDharma": { |
||||
"message": "Emprunter avec Dharma (Bêta)" |
||||
}, |
||||
"buy": { |
||||
"message": "Acheter" |
||||
}, |
||||
"buyCoinbase": { |
||||
"message": "Acheter sur Coinbase" |
||||
}, |
||||
"buyCoinbaseExplainer": { |
||||
"message": "Coinbase est le moyen le plus populaire au monde d'acheter et de vendre du bitcoin, de l'ethereum et du litecoin." |
||||
}, |
||||
"cancel": { |
||||
"message": "Annuler" |
||||
}, |
||||
"clickCopy": { |
||||
"message": "Cliquer pour copier" |
||||
}, |
||||
"confirm": { |
||||
"message": "Confirmer" |
||||
}, |
||||
"confirmContract": { |
||||
"message": "Confirmer le contrat" |
||||
}, |
||||
"confirmPassword": { |
||||
"message": "Confirmer le mot de passe" |
||||
}, |
||||
"confirmTransaction": { |
||||
"message": "Confirmer la transaction" |
||||
}, |
||||
"continueToCoinbase": { |
||||
"message": "Continuer vers Coinbase" |
||||
}, |
||||
"contractDeployment": { |
||||
"message": "Déploiement de contrat" |
||||
}, |
||||
"conversionProgress": { |
||||
"message": "Conversion en cours" |
||||
}, |
||||
"copiedButton": { |
||||
"message": "Copié" |
||||
}, |
||||
"copiedClipboard": { |
||||
"message": "Copié dans le Presse-papiers" |
||||
}, |
||||
"copiedExclamation": { |
||||
"message": "Copié!" |
||||
}, |
||||
"copy": { |
||||
"message": "Copier" |
||||
}, |
||||
"copyToClipboard": { |
||||
"message": "Copier dans le presse-papier" |
||||
}, |
||||
"copyButton": { |
||||
"message": " Copier " |
||||
}, |
||||
"copyPrivateKey": { |
||||
"message": "Ceci est votre clé privée (cliquez pour copier)" |
||||
}, |
||||
"create": { |
||||
"message": "Créer" |
||||
}, |
||||
"createAccount": { |
||||
"message": "Créer un compte" |
||||
}, |
||||
"createDen": { |
||||
"message": "Créer" |
||||
}, |
||||
"crypto": { |
||||
"message": "Crypto", |
||||
"description": "Type d'échange (cryptocurrencies)" |
||||
}, |
||||
"customGas": { |
||||
"message": "Personnaliser le Gaz" |
||||
}, |
||||
"customize": { |
||||
"message": "Personnaliser" |
||||
}, |
||||
"customRPC": { |
||||
"message": "RPC personnalisé" |
||||
}, |
||||
"defaultNetwork": { |
||||
"message": "Le réseau par défaut pour les transactions Ether est Main Net." |
||||
}, |
||||
"denExplainer": { |
||||
"message": "Votre DEN est votre stockage crypté par mot de passe dans MetaMask." |
||||
}, |
||||
"deposit": { |
||||
"message": "Dépôt" |
||||
}, |
||||
"depositBTC": { |
||||
"message": "Déposez vos BTC à l'adresse ci-dessous:" |
||||
}, |
||||
"depositCoin": { |
||||
"message": "Déposez votre $1 à l'adresse ci-dessous", |
||||
"description": "Indique à l'utilisateur quelle monnaie ils a choisi de déposer avec shapeshift" |
||||
}, |
||||
"depositEth": { |
||||
"message": "Dépôt Eth" |
||||
}, |
||||
"depositEther": { |
||||
"message": "Dépôt Ether" |
||||
}, |
||||
"depositFiat": { |
||||
"message": "Dépôt de monnaie-fiat" |
||||
}, |
||||
"depositFromAccount": { |
||||
"message": "Dépôt d'un autre compte" |
||||
}, |
||||
"depositShapeShift": { |
||||
"message": "Déposez avec ShapeShift" |
||||
}, |
||||
"depositShapeShiftExplainer": { |
||||
"message": "Si vous possédez d'autres crypto-monnaies, vous pouvez échanger et déposer de l'Ether directement dans votre portefeuille MetaMask. Aucun compte n'est requis." |
||||
}, |
||||
"details": { |
||||
"message": "Détails" |
||||
}, |
||||
"directDeposit": { |
||||
"message": "Dépôt direct" |
||||
}, |
||||
"directDepositEther": { |
||||
"message": "Dépôt direct d'Ether" |
||||
}, |
||||
"directDepositEtherExplainer": { |
||||
"message": "Si vous avez déjà de l'Ether, le moyen le plus rapide d'obtenir des Ether dans votre nouveau portefeuille est par dépôt direct." |
||||
}, |
||||
"done": { |
||||
"message": "Fait" |
||||
}, |
||||
"edit": { |
||||
"message": "Modifier" |
||||
}, |
||||
"editAccountName": { |
||||
"message": "Modifier le nom du compte" |
||||
}, |
||||
"encryptNewDen": { |
||||
"message": "Chiffrer votre nouveau DEN" |
||||
}, |
||||
"enterPassword": { |
||||
"message": "Entrer le mot de passe" |
||||
}, |
||||
"etherscanView": { |
||||
"message": "Afficher le compte sur Etherscan" |
||||
}, |
||||
"exchangeRate": { |
||||
"message": "Taux de change" |
||||
}, |
||||
"exportPrivateKey": { |
||||
"message": "Exporter la clé privée" |
||||
}, |
||||
"exportPrivateKeyWarning": { |
||||
"message": "Exporter les clés privées à vos risques et périls." |
||||
}, |
||||
"failed": { |
||||
"message": "Échec" |
||||
}, |
||||
"fiat": { |
||||
"message": "FIAT", |
||||
"description": "Type d'échange" |
||||
}, |
||||
"fileImportFail": { |
||||
"message": "L'importation de fichier ne fonctionne pas? Cliquez ici!", |
||||
"description": "Aide l'utilisateur à importer son compte à partir d'un fichier JSON" |
||||
}, |
||||
"from": { |
||||
"message": "de" |
||||
}, |
||||
"fromShapeShift": { |
||||
"message": "ShapeShift de" |
||||
}, |
||||
"gas": { |
||||
"message": "Gas", |
||||
"description": "Indication courte du coût du gaz" |
||||
}, |
||||
"gasFee": { |
||||
"message": "Frais de gaz" |
||||
}, |
||||
"gasLimit": { |
||||
"message": "Limite de gaz" |
||||
}, |
||||
"gasLimitCalculation": { |
||||
"message": "Nous calculons la limite de gaz suggérée en fonction des taux de réussite du réseau." |
||||
}, |
||||
"gasLimitRequired": { |
||||
"message": "Limite de gaz requise" |
||||
}, |
||||
"gasLimitTooLow": { |
||||
"message": "La limite de gaz doit être d'au moins 21000" |
||||
}, |
||||
"gasPrice": { |
||||
"message": "Prix du gaz (GWEI)" |
||||
}, |
||||
"gasPriceCalculation": { |
||||
"message": "Nous calculons les prix du gaz proposés en fonction des taux de réussite du réseau." |
||||
}, |
||||
"gasPriceRequired": { |
||||
"message": "Prix du gaz requis" |
||||
}, |
||||
"getEther": { |
||||
"message": "Obtenir des Ether" |
||||
}, |
||||
"getEtherFromFaucet": { |
||||
"message": "Obtenir de l'Ether d'une faucet pour $1", |
||||
"description": "Affiche le nom du réseau pour la faucet d'Ether" |
||||
}, |
||||
"greaterThanMin": { |
||||
"message": "doit être supérieur ou égal à $1.", |
||||
"description": "helper pour la saisie hexadécimale en entrée décimale" |
||||
}, |
||||
"here": { |
||||
"message": "ici", |
||||
"description": "comme dans -cliquer ici- pour plus d'informations (en rapport avec troubleTokenBalances)" |
||||
}, |
||||
"hide": { |
||||
"message": "Cacher" |
||||
}, |
||||
"hideToken": { |
||||
"message": "Masquer le jeton" |
||||
}, |
||||
"hideTokenPrompt": { |
||||
"message": "Masquer le jeton?" |
||||
}, |
||||
"howToDeposit": { |
||||
"message": "Comment voulez-vous déposer de l'Ether?" |
||||
}, |
||||
"import": { |
||||
"message": "Importer", |
||||
"description": "Bouton pour importer un compte à partir d'un fichier sélectionné" |
||||
}, |
||||
"importAccount": { |
||||
"message": "Importer compte" |
||||
}, |
||||
"importAnAccount": { |
||||
"message": "Importer un compte" |
||||
}, |
||||
"importDen": { |
||||
"message": "Importer DEN existant" |
||||
}, |
||||
"imported": { |
||||
"message": "Importé", |
||||
"description": "statut indiquant qu'un compte a été entièrement chargé dans le trousseau de clés" |
||||
}, |
||||
"infoHelp": { |
||||
"message": "Info & Aide" |
||||
}, |
||||
"invalidAddress": { |
||||
"message": "Adresse invalide" |
||||
}, |
||||
"invalidGasParams": { |
||||
"message": "Paramètres de gaz invalides" |
||||
}, |
||||
"invalidInput": { |
||||
"message": "Entrée non valide." |
||||
}, |
||||
"invalidRequest": { |
||||
"message": "Requête invalide" |
||||
}, |
||||
"jsonFile": { |
||||
"message": "Fichier JSON", |
||||
"description": "format d'importation d'un compte" |
||||
}, |
||||
"kovan": { |
||||
"message": "Réseau de test Kovan" |
||||
}, |
||||
"lessThanMax": { |
||||
"message": "doit être inférieur ou égal à $1.", |
||||
"description": "helper pour la saisie hexadécimale en entrée décimale" |
||||
}, |
||||
"limit": { |
||||
"message": "Limite" |
||||
}, |
||||
"loading": { |
||||
"message": "Chargement..." |
||||
}, |
||||
"loadingTokens": { |
||||
"message": "Chargement des jetons..." |
||||
}, |
||||
"localhost": { |
||||
"message": "Localhost 8545" |
||||
}, |
||||
"logout": { |
||||
"message": "Déconnexion" |
||||
}, |
||||
"loose": { |
||||
"message": "Vacant" |
||||
}, |
||||
"mainnet": { |
||||
"message": "Réseau principal Ethereum" |
||||
}, |
||||
"message": { |
||||
"message": "Message" |
||||
}, |
||||
"min": { |
||||
"message": "Minimum" |
||||
}, |
||||
"myAccounts": { |
||||
"message": "Mes comptes" |
||||
}, |
||||
"needEtherInWallet": { |
||||
"message": "Pour interagir avec des applications décentralisées à l'aide de MetaMask, vous aurez besoin d'Ether dans votre portefeuille." |
||||
}, |
||||
"needImportFile": { |
||||
"message": "Vous devez sélectionner un fichier à importer.", |
||||
"description": "L'utilisateur doit ajouter un fichier pour continuer" |
||||
}, |
||||
"needImportPassword": { |
||||
"message": "Vous devez entrer un mot de passe pour le fichier sélectionné.", |
||||
"description": "Mot de passe et fichier requis pour importer un compte" |
||||
}, |
||||
"networks": { |
||||
"message": "Réseaux" |
||||
}, |
||||
"newAccount": { |
||||
"message": "Nouveau compte" |
||||
}, |
||||
"newAccountNumberName": { |
||||
"message": "Compte $1", |
||||
"description": "Nom par défaut du compte suivant à créer sur l'écran de création de compte" |
||||
}, |
||||
"newContract": { |
||||
"message": "Nouveau contrat" |
||||
}, |
||||
"newPassword": { |
||||
"message": "Nouveau mot de passe (min 8 caractères)" |
||||
}, |
||||
"newRecipient": { |
||||
"message": "Nouveau destinataire" |
||||
}, |
||||
"next": { |
||||
"message": "Suivant" |
||||
}, |
||||
"noAddressForName": { |
||||
"message": "Aucune adresse n'a été définie pour ce nom." |
||||
}, |
||||
"noDeposits": { |
||||
"message": "Aucun dépôt reçu" |
||||
}, |
||||
"noTransactionHistory": { |
||||
"message": "Aucun historique de transaction." |
||||
}, |
||||
"noTransactions": { |
||||
"message": "Aucune transaction" |
||||
}, |
||||
"notStarted": { |
||||
"message": "Pas démarré" |
||||
}, |
||||
"oldUI": { |
||||
"message": "Ancienne interface utilisateur" |
||||
}, |
||||
"oldUIMessage": { |
||||
"message": "Vous êtes revenu à l'ancienne interface utilisateur.Vous pouvez revenir à la nouvelle interface via l'option dans le menu déroulant en haut à droite." |
||||
}, |
||||
"or": { |
||||
"message": "ou", |
||||
"description": "choix entre la création ou l'importation d'un nouveau compte" |
||||
}, |
||||
"passwordMismatch": { |
||||
"message": "les mots de passe ne correspondent pas", |
||||
"description": "dans le processus de création de mot de passe, les deux nouveaux champs de mot de passe ne correspondent pas" |
||||
}, |
||||
"passwordShort": { |
||||
"message": "mot de passe pas assez long", |
||||
"description": "dans le processus de création de mot de passe, le mot de passe n'est pas assez long pour être sécurisé" |
||||
}, |
||||
"pastePrivateKey": { |
||||
"message": "Collez votre clé privée ici:", |
||||
"description": "Pour l'importation d'un compte à partir d'une clé privée" |
||||
}, |
||||
"pasteSeed": { |
||||
"message": "Collez votre seed phrase ici!" |
||||
}, |
||||
"pleaseReviewTransaction": { |
||||
"message": "Veuillez vérifier votre transaction." |
||||
}, |
||||
"privateKey": { |
||||
"message": "Clé privée", |
||||
"description": "sélectionnez ce type de fichier à utiliser pour importer un compte" |
||||
}, |
||||
"privateKeyWarning": { |
||||
"message": "Avertissement: Ne divulguez jamais cette clé, quiconque avec vos clés privées peut voler tous les actifs de votre compte." |
||||
}, |
||||
"privateNetwork": { |
||||
"message": "Réseau privé" |
||||
}, |
||||
"qrCode": { |
||||
"message": "Afficher le QR Code" |
||||
}, |
||||
"readdToken": { |
||||
"message": "Vous pouvez ajouter ce jeton dans le futur en allant sur “Ajouter un jeton” dans le menu des options de votre compte." |
||||
}, |
||||
"readMore": { |
||||
"message": "En savoir plus ici." |
||||
}, |
||||
"receive": { |
||||
"message": "Recevoir" |
||||
}, |
||||
"recipientAddress": { |
||||
"message": "Adresse du destinataire" |
||||
}, |
||||
"refundAddress": { |
||||
"message": "Votre adresse de remboursement" |
||||
}, |
||||
"rejected": { |
||||
"message": "Rejeté" |
||||
}, |
||||
"required": { |
||||
"message": "Obligatoire" |
||||
}, |
||||
"retryWithMoreGas": { |
||||
"message": "Réessayez avec un prix plus élevé du gaz ici" |
||||
}, |
||||
"revert": { |
||||
"message": "Rétablir" |
||||
}, |
||||
"rinkeby": { |
||||
"message": "Réseau de test Rinkeby" |
||||
}, |
||||
"ropsten": { |
||||
"message": "Réseau de test Ropsten" |
||||
}, |
||||
"sampleAccountName": { |
||||
"message": "Par exemple mon nouveau compte", |
||||
"description": "Aidez l'utilisateur à comprendre le concept d'ajout d'un nom lisible par un humain à son compte" |
||||
}, |
||||
"save": { |
||||
"message": "Enregistrer" |
||||
}, |
||||
"saveAsFile": { |
||||
"message": "Enregistrer dans un fichier", |
||||
"description": "Processus d'exportation de compte" |
||||
}, |
||||
"selectService": { |
||||
"message": "Sélectionner un service" |
||||
}, |
||||
"send": { |
||||
"message": "Envoyé" |
||||
}, |
||||
"sendTokens": { |
||||
"message": "Envoyer des jetons" |
||||
}, |
||||
"sendTokensAnywhere": { |
||||
"message": "Envoyer des jetons à toute personne possédant un compte Ethereum" |
||||
}, |
||||
"settings": { |
||||
"message": "Paramètres" |
||||
}, |
||||
"shapeshiftBuy": { |
||||
"message": "Acheter avec Shapeshift" |
||||
}, |
||||
"showPrivateKeys": { |
||||
"message": "Afficher les clés privées" |
||||
}, |
||||
"showQRCode": { |
||||
"message": "Afficher le QR Code" |
||||
}, |
||||
"sign": { |
||||
"message": "Signer" |
||||
}, |
||||
"signMessage": { |
||||
"message": "Signer le message" |
||||
}, |
||||
"signNotice": { |
||||
"message": "La signature de ce message peut avoir des effets secondaires \ndangereux. Signer uniquement les messages de \nsites auxquels vous faites entièrement confiance avec votre compte.\n Cette méthode dangereuse sera supprimée dans une future version." |
||||
}, |
||||
"sigRequest": { |
||||
"message": "Demande de signature" |
||||
}, |
||||
"sigRequested": { |
||||
"message": "Signature demandée" |
||||
}, |
||||
"status": { |
||||
"message": "Statut" |
||||
}, |
||||
"submit": { |
||||
"message": "Soumettre" |
||||
}, |
||||
"takesTooLong": { |
||||
"message": "Prend trop de temps?" |
||||
}, |
||||
"testFaucet": { |
||||
"message": "Test Faucet" |
||||
}, |
||||
"to": { |
||||
"message": "Destinataire" |
||||
}, |
||||
"toETHviaShapeShift": { |
||||
"message": "$1 à ETH via ShapeShift", |
||||
"description": "le système remplira le type de dépôt au début du message" |
||||
}, |
||||
"tokenBalance": { |
||||
"message": "Votre solde de jeton est:" |
||||
}, |
||||
"total": { |
||||
"message": "Total" |
||||
}, |
||||
"transactionMemo": { |
||||
"message": "Mémo de transaction (optionnel)" |
||||
}, |
||||
"transactionNumber": { |
||||
"message": "Numéro de transaction" |
||||
}, |
||||
"transfers": { |
||||
"message": "Transferts" |
||||
}, |
||||
"troubleTokenBalances": { |
||||
"message": "Nous avons eu du mal à charger votre balance de jetons, vous pouvez la consulter ", |
||||
"description": "Suivi par un lien (ici) pour voir les soldes des jetons" |
||||
}, |
||||
"typePassword": { |
||||
"message": "Entrez votre mot de passe" |
||||
}, |
||||
"uiWelcome": { |
||||
"message": "Bienvenue dans la nouvelle interface utilisateur (Beta)" |
||||
}, |
||||
"uiWelcomeMessage": { |
||||
"message": "Vous utilisez maintenant la nouvelle interface utilisateur Metamask. Jetez un coup d'oeil, essayez de nouvelles fonctionnalités comme l'envoi de jetons, et faites-nous savoir si vous avez des problèmes." |
||||
}, |
||||
"unavailable": { |
||||
"message": "Indisponible" |
||||
}, |
||||
"unknown": { |
||||
"message": "Inconnu" |
||||
}, |
||||
"unknownNetwork": { |
||||
"message": "Réseau privé inconnu" |
||||
}, |
||||
"unknownNetworkId": { |
||||
"message": "ID réseau inconnu" |
||||
}, |
||||
"usaOnly": { |
||||
"message": "Etats-Unis seulement", |
||||
"description": "Utiliser cet échange est limité aux personnes à l'intérieur des Etats-Unis" |
||||
}, |
||||
"usedByClients": { |
||||
"message": "Utilisé par une variété de clients différents" |
||||
}, |
||||
"viewAccount": { |
||||
"message": "Afficher le compte" |
||||
}, |
||||
"warning": { |
||||
"message": "Avertissement" |
||||
}, |
||||
"whatsThis": { |
||||
"message": "Qu'est-ce que c'est?" |
||||
}, |
||||
"yourSigRequested": { |
||||
"message": "Votre signature est demandée" |
||||
}, |
||||
"youSign": { |
||||
"message": "Vous signez" |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
// We should not rely on local storage in an extension!
|
||||
// We should use this instead!
|
||||
// https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/storage/local
|
||||
|
||||
const extension = require('extensionizer') |
||||
|
||||
module.exports = class ExtensionStore { |
||||
constructor() { |
||||
this.isSupported = !!(extension.storage.local) |
||||
if (!this.isSupported) { |
||||
log.error('Storage local API not available.') |
||||
} |
||||
} |
||||
|
||||
async get() { |
||||
if (!this.isSupported) return undefined |
||||
const result = await this._get() |
||||
// extension.storage.local always returns an obj
|
||||
// if the object is empty, treat it as undefined
|
||||
if (isEmpty(result)) { |
||||
return undefined |
||||
} else { |
||||
return result |
||||
} |
||||
} |
||||
|
||||
async set(state) { |
||||
return this._set(state) |
||||
} |
||||
|
||||
_get() { |
||||
const local = extension.storage.local |
||||
return new Promise((resolve, reject) => { |
||||
local.get(null, (result) => { |
||||
const err = extension.runtime.lastError |
||||
if (err) { |
||||
reject(err) |
||||
} else { |
||||
resolve(result) |
||||
} |
||||
}) |
||||
}) |
||||
} |
||||
|
||||
_set(obj) { |
||||
const local = extension.storage.local |
||||
return new Promise((resolve, reject) => { |
||||
local.set(obj, () => { |
||||
const err = extension.runtime.lastError |
||||
if (err) { |
||||
reject(err) |
||||
} else { |
||||
resolve() |
||||
} |
||||
}) |
||||
}) |
||||
} |
||||
} |
||||
|
||||
function isEmpty(obj) { |
||||
return Object.keys(obj).length === 0 |
||||
} |
@ -1,18 +1,21 @@ |
||||
const fs = require('fs') |
||||
const path = require('path') |
||||
const promisify = require('pify') |
||||
|
||||
const statesPath = path.join(__dirname, 'states') |
||||
const stateNames = fs.readdirSync(statesPath) |
||||
|
||||
const states = stateNames.reduce((result, stateFileName) => { |
||||
const statePath = path.join(__dirname, 'states', stateFileName) |
||||
const stateFile = fs.readFileSync(statePath).toString() |
||||
const state = JSON.parse(stateFile) |
||||
result[stateFileName.split('.')[0].replace(/-/g, ' ', 'g')] = state |
||||
return result |
||||
}, {}) |
||||
start().catch(console.error) |
||||
|
||||
const result = `module.exports = ${JSON.stringify(states)}` |
||||
|
||||
const statesJsonPath = path.join(__dirname, 'states.js') |
||||
fs.writeFileSync(statesJsonPath, result) |
||||
async function start () { |
||||
const statesPath = path.join(__dirname, 'states') |
||||
const stateFilesNames = await promisify(fs.readdir)(statesPath) |
||||
const states = {} |
||||
await Promise.all(stateFilesNames.map(async (stateFileName) => { |
||||
const stateFilePath = path.join(__dirname, 'states', stateFileName) |
||||
const stateFileContent = await promisify(fs.readFile)(stateFilePath, 'utf8') |
||||
const state = JSON.parse(stateFileContent) |
||||
const stateName = stateFileName.split('.')[0].replace(/-/g, ' ', 'g') |
||||
states[stateName] = state |
||||
})) |
||||
const generatedFileContent = `module.exports = ${JSON.stringify(states)}` |
||||
const generatedFilePath = path.join(__dirname, 'states.js') |
||||
await promisify(fs.writeFile)(generatedFilePath, generatedFileContent) |
||||
} |
||||
|
@ -0,0 +1,18 @@ |
||||
# MetaMask Translation Guide |
||||
|
||||
The MetaMask browser extension supports new translations added in the form of new locales files added in `app/_locales`. |
||||
|
||||
- [The MDN Guide to Internationalizing Extensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Internationalization) |
||||
|
||||
## Adding a new Language |
||||
|
||||
Each supported language is represented by a folder in `app/_locales` whose name is that language's subtag ([look up a language subtag using this tool](https://r12a.github.io/app-subtags/)). |
||||
|
||||
Inside that folder there should be a `messages.json` file that follows the specified format. An easy way to start your translation is to first duplicate `app/_locales/en/messages.json` (the english translation), and then update the `message` key for each in-app message. |
||||
|
||||
That's it! When MetaMask is loaded on a computer with that language set as the system language, they will see your translation instead of the default one. |
||||
|
||||
## Testing |
||||
|
||||
To verify that your translation works, you will need to [build a local copy](https://github.com/MetaMask/metamask-extension#building-locally) of MetaMask. |
||||
|
@ -0,0 +1,53 @@ |
||||
module.exports = { |
||||
timeout, |
||||
queryAsync, |
||||
findAsync, |
||||
pollUntilTruthy, |
||||
} |
||||
|
||||
function timeout (time) { |
||||
return new Promise((resolve, reject) => { |
||||
setTimeout(resolve, time || 1500) |
||||
}) |
||||
} |
||||
|
||||
async function findAsync(container, selector, opts) { |
||||
try { |
||||
return await pollUntilTruthy(() => { |
||||
const result = container.find(selector) |
||||
if (result.length > 0) return result |
||||
}, opts) |
||||
} catch (err) { |
||||
throw new Error(`Failed to find element within interval: "${selector}"`) |
||||
} |
||||
} |
||||
|
||||
async function queryAsync(jQuery, selector, opts) { |
||||
try { |
||||
return await pollUntilTruthy(() => { |
||||
const result = jQuery(selector) |
||||
if (result.length > 0) return result |
||||
}, opts) |
||||
} catch (err) { |
||||
throw new Error(`Failed to find element within interval: "${selector}"`) |
||||
} |
||||
} |
||||
|
||||
async function pollUntilTruthy(fn, opts = {}){ |
||||
const pollingInterval = opts.pollingInterval || 100 |
||||
const timeoutInterval = opts.timeoutInterval || 5000 |
||||
const start = Date.now() |
||||
let result |
||||
while (!result) { |
||||
// check if timedout
|
||||
const now = Date.now() |
||||
if ((now - start) > timeoutInterval) { |
||||
throw new Error(`pollUntilTruthy - failed to return truthy within interval`) |
||||
} |
||||
// check for result
|
||||
result = fn() |
||||
// run again after timeout
|
||||
await timeout(pollingInterval, timeoutInterval) |
||||
} |
||||
return result |
||||
} |
@ -0,0 +1,59 @@ |
||||
.welcome-screen { |
||||
display: flex; |
||||
flex-flow: column; |
||||
justify-content: center; |
||||
align-items: center; |
||||
font-family: Roboto; |
||||
font-weight: 400; |
||||
width: 100%; |
||||
flex: 1 0 auto; |
||||
padding: 70px 0; |
||||
background: $white; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
padding: 0; |
||||
} |
||||
|
||||
&__info { |
||||
display: flex; |
||||
flex-flow: column; |
||||
width: 100%; |
||||
height: 100%; |
||||
align-items: center; |
||||
|
||||
&__header { |
||||
font-size: 1.65em; |
||||
margin-bottom: 14px; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
font-size: 1.5em; |
||||
} |
||||
} |
||||
|
||||
&__copy { |
||||
font-size: 1em; |
||||
width: 400px; |
||||
max-width: 90vw; |
||||
text-align: center; |
||||
|
||||
@media screen and (max-width: 575px) { |
||||
font-size: 0.9em; |
||||
} |
||||
} |
||||
} |
||||
|
||||
&__button { |
||||
height: 54px; |
||||
width: 198px; |
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.14); |
||||
color: #FFFFFF; |
||||
font-size: 20px; |
||||
font-weight: 500; |
||||
line-height: 26px; |
||||
text-align: center; |
||||
text-transform: uppercase; |
||||
margin: 35px 0 14px; |
||||
transition: 200ms ease-in-out; |
||||
background-color: rgba(247, 134, 28, 0.9); |
||||
} |
||||
} |
@ -0,0 +1,56 @@ |
||||
import EventEmitter from 'events' |
||||
import h from 'react-hyperscript' |
||||
import { Component } from 'react' |
||||
import PropTypes from 'prop-types' |
||||
import {connect} from 'react-redux' |
||||
import {closeWelcomeScreen} from './actions' |
||||
import Mascot from './components/mascot' |
||||
|
||||
class WelcomeScreen extends Component { |
||||
static propTypes = { |
||||
closeWelcomeScreen: PropTypes.func.isRequired, |
||||
} |
||||
|
||||
constructor(props) { |
||||
super(props) |
||||
this.animationEventEmitter = new EventEmitter() |
||||
} |
||||
|
||||
initiateAccountCreation = () => { |
||||
this.props.closeWelcomeScreen() |
||||
} |
||||
|
||||
render () { |
||||
return h('div.welcome-screen', [ |
||||
|
||||
h('div.welcome-screen__info', [ |
||||
|
||||
h(Mascot, { |
||||
animationEventEmitter: this.animationEventEmitter, |
||||
width: '225', |
||||
height: '225', |
||||
}), |
||||
|
||||
h('div.welcome-screen__info__header', 'Welcome to MetaMask Beta'), |
||||
|
||||
h('div.welcome-screen__info__copy', 'MetaMask is a secure identity vault for Ethereum.'), |
||||
|
||||
h('div.welcome-screen__info__copy', `It allows you to hold ether & tokens,
|
||||
and serves as your bridge to decentralized applications.`),
|
||||
|
||||
h('button.welcome-screen__button', { |
||||
onClick: this.initiateAccountCreation, |
||||
}, 'Continue'), |
||||
|
||||
]), |
||||
|
||||
]) |
||||
} |
||||
} |
||||
|
||||
export default connect( |
||||
null, |
||||
dispatch => ({ |
||||
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()), |
||||
}) |
||||
)(WelcomeScreen) |
@ -0,0 +1,33 @@ |
||||
|
||||
// cross-browser connection to extension i18n API
|
||||
|
||||
const chrome = chrome || null |
||||
const browser = browser || null |
||||
const extension = require('extensionizer') |
||||
var log = require('loglevel') |
||||
window.log = log |
||||
let getMessage |
||||
|
||||
if (extension.i18n && extension.i18n.getMessage) { |
||||
getMessage = extension.i18n.getMessage |
||||
} else { |
||||
// fallback function
|
||||
log.warn('browser.i18n API not available, calling back to english.') |
||||
const msg = require('../app/_locales/en/messages.json') |
||||
getMessage = function (key, substitutions) { |
||||
if (!msg[key]) { |
||||
log.error(key) |
||||
throw new Error(key) |
||||
} |
||||
let phrase = msg[key].message |
||||
if (substitutions && substitutions.length) { |
||||
phrase = phrase.replace(/\$1/g, substitutions[0]) |
||||
if (substitutions.length > 1) { |
||||
phrase = phrase.replace(/\$2/g, substitutions[1]) |
||||
} |
||||
} |
||||
return phrase |
||||
} |
||||
} |
||||
|
||||
module.exports = getMessage |
Loading…
Reference in new issue