From 816ce3180fdf96eca0a8d6c17c2e38558574e06f Mon Sep 17 00:00:00 2001 From: James Prado Date: Wed, 21 Mar 2018 23:50:25 -0400 Subject: [PATCH] Translation Updates (#1323) * Update account view routing * Temporarily add unicode character to translated strings for testing * Temporarily select add unicode to all untranslated strings * Format changes * Add all english translations for /account & /generate * Add the rest of the english translations * Add a few more missing translations * Update en translations * Get selectedLanguage from localstorage instead of redux sttate * Update snapshots * Add missing translation keys & Update translate functs & change variable prefix * translate all markdown strings & remove old translation strings * Update snapshot * Add a few more translation strs * Move raw strings being translated into json * All translation keys are now Uppercase * Fix up the last few translations * Update snapshot * Uppercase de translation strings * Bring back shapeshift logo on swap * Fix contracts tab translations * Fix a few more translations * Fix translations * remove debugging stuff * Update snapshots * Use react.fragment as markdown root renderer * Seperate markdown translations into their own function * Clean up translation functions * Clean up translation functions * Update snapshot * Fix some broken translation strings * Add prettier ignore file --- .prettierignore | 1 + common/components/AddressField.tsx | 2 +- common/components/AmountField.tsx | 6 +- .../components/BalanceSidebar/AccountInfo.tsx | 10 +- .../BalanceSidebar/EquivalentValues.tsx | 10 +- .../TokenBalances/AddCustomTokenForm.tsx | 14 +- .../BalanceSidebar/TokenBalances/Balances.tsx | 14 +- .../BalanceSidebar/TokenBalances/index.tsx | 4 +- .../components/Body/Body.tsx | 3 +- .../components/Body/components/Addresses.tsx | 9 +- .../components/Body/components/Amounts.tsx | 7 +- .../ConfirmationModalTemplate.tsx | 10 +- common/components/DataField.tsx | 2 +- .../TransactionSucceeded.tsx | 2 +- common/components/Footer/DisclaimerModal.tsx | 5 +- common/components/Footer/PreFooter.tsx | 6 +- common/components/Footer/index.tsx | 50 +- common/components/GasLimitField.tsx | 4 +- .../GenerateKeystoreModal/index.tsx | 24 +- common/components/GenerateTransaction.tsx | 2 +- .../Header/components/CustomNodeModal.tsx | 23 +- .../Header/components/Navigation.tsx | 16 +- .../Header/components/NavigationLink.scss | 10 +- common/components/LogOutPrompt.tsx | 9 +- common/components/NonceField.tsx | 4 +- common/components/PrintableWallet/index.tsx | 6 +- common/components/SendButton.tsx | 4 +- .../SendButtonFactory/SendButtonFactory.tsx | 4 +- .../SendEverything/SendEverything.tsx | 2 +- common/components/SigningStatus.tsx | 3 +- .../TXMetaDataPanel/TXMetaDataPanel.tsx | 6 +- .../components/AdvancedGas.tsx | 6 +- .../TXMetaDataPanel/components/SimpleGas.tsx | 8 +- common/components/TogglablePassword.tsx | 8 +- .../TransactionDataTable.tsx | 26 +- .../TransactionStatus/TransactionStatus.tsx | 13 +- common/components/Translate.tsx | 10 +- .../WalletDecrypt/WalletDecrypt.tsx | 572 +++---- .../components/DeterministicWalletsModal.tsx | 16 +- .../components/InsecureWalletWarning.tsx | 44 +- .../WalletDecrypt/components/Keystore.tsx | 6 +- .../WalletDecrypt/components/LedgerNano.tsx | 13 +- .../WalletDecrypt/components/Mnemonic.tsx | 10 +- .../WalletDecrypt/components/PrivateKey.tsx | 8 +- .../WalletDecrypt/components/Trezor.tsx | 7 +- .../WalletDecrypt/components/ViewOnly.tsx | 2 +- .../WalletDecrypt/components/WalletButton.tsx | 16 +- .../WalletDecrypt/components/Web3.tsx | 4 +- common/components/ui/SimpleButton.tsx | 2 +- common/components/ui/UnlockHeader.tsx | 6 +- .../components/BlockchainSlide.tsx | 14 +- .../OnboardModal/components/FinalSlide.tsx | 20 +- .../components/InterfaceSlide.tsx | 16 +- .../OnboardModal/components/NotABankSlide.tsx | 12 +- .../components/SecureSlideOne.tsx | 16 +- .../components/SecureSlideThree.tsx | 16 +- .../components/SecureSlideTwo.tsx | 12 +- .../OnboardModal/components/WelcomeSlide.tsx | 18 +- .../components/WhyMyCryptoSlide.tsx | 14 +- .../OnboardModal/components/WhySlide.tsx | 22 +- common/containers/OnboardModal/index.tsx | 10 +- common/containers/Tabs/BroadcastTx/index.tsx | 10 +- .../components/TxHashInput.tsx | 8 +- .../Tabs/CheckTransaction/index.tsx | 20 +- .../Tabs/Contracts/components/Deploy.tsx | 6 +- .../components/InteractExplorer/index.tsx | 8 +- .../components/InteractForm/index.tsx | 14 +- common/containers/Tabs/Contracts/index.tsx | 4 +- .../Tabs/ENS/components/NameInput.tsx | 16 +- .../NameResolve/components/NameAuction.tsx | 11 +- .../NameResolve/components/NameForbidden.tsx | 3 +- .../NameResolve/components/NameOpen.tsx | 10 +- .../NameResolve/components/NameOwned.tsx | 17 +- .../NameResolve/components/NameReveal.tsx | 17 +- common/containers/Tabs/ENS/index.tsx | 19 +- .../GenerateWallet/components/FinalSteps.tsx | 23 +- .../components/Keystore/DownloadWallet.tsx | 24 +- .../components/Keystore/EnterPassword.tsx | 31 +- .../components/Keystore/PaperWallet.tsx | 23 +- .../components/Mnemonic/Mnemonic.tsx | 17 +- .../components/Mnemonic/Word.tsx | 2 +- .../GenerateWallet/components/Template.tsx | 3 +- .../GenerateWallet/components/WalletTypes.tsx | 27 +- .../SendTransaction/components/Donate.tsx | 35 + .../components/Fields/Fields.tsx | 2 +- .../components/RecentTransactions.tsx | 28 +- .../components/RequestPayment.tsx | 4 +- .../SendTransaction/components/WalletInfo.tsx | 16 +- .../containers/Tabs/SendTransaction/index.tsx | 12 +- .../components/SignMessage/SignButton.tsx | 6 +- .../components/SignMessage/index.tsx | 13 +- .../components/VerifyMessage/index.tsx | 6 +- .../Tabs/SignAndVerifyMessage/index.tsx | 4 +- .../Tabs/Swap/components/BitcoinQR.tsx | 15 +- .../Tabs/Swap/components/CurrencySwap.tsx | 22 +- .../Tabs/Swap/components/CurrentRates.tsx | 2 +- .../Tabs/Swap/components/LiteSend/Fields.tsx | 9 +- .../Tabs/Swap/components/PaymentInfo.tsx | 14 +- .../Tabs/Swap/components/ReceivingAddress.tsx | 6 +- .../Tabs/Swap/components/SupportFooter.tsx | 5 +- .../Tabs/Swap/components/SwapInfoHeader.tsx | 10 +- .../Swap/components/SwapInfoHeaderTitle.tsx | 4 +- .../Tabs/Swap/components/SwapProgress.tsx | 20 +- common/containers/Tabs/ViewWallet/index.tsx | 26 + common/libs/transaction/utils/ether.ts | 8 +- common/libs/wallet/deterministic/ledger.ts | 2 +- common/libs/wallet/deterministic/trezor.ts | 2 +- common/reducers/wallet.ts | 3 +- common/translations/index.tsx | 45 +- common/translations/lang/ar.json | 1197 +++++++------- common/translations/lang/de.json | 1218 +++++++------- common/translations/lang/el.json | 1218 +++++++------- common/translations/lang/en.json | 1072 ++++++------ common/translations/lang/es.json | 1217 +++++++------- common/translations/lang/fi.json | 1218 +++++++------- common/translations/lang/fr.json | 1218 +++++++------- common/translations/lang/ht.json | 1197 +++++++------- common/translations/lang/hu.json | 1220 +++++++------- common/translations/lang/id.json | 1218 +++++++------- common/translations/lang/it.json | 1196 +++++++------- common/translations/lang/ja.json | 1217 +++++++------- common/translations/lang/ko.json | 1197 +++++++------- common/translations/lang/nl.json | 1195 +++++++------- common/translations/lang/no.json | 1218 +++++++------- common/translations/lang/pl.json | 1218 +++++++------- common/translations/lang/pt.json | 1218 +++++++------- common/translations/lang/ru.json | 1218 +++++++------- common/translations/lang/sk.json | 1448 ++++++++++------- common/translations/lang/sl.json | 1218 +++++++------- common/translations/lang/sv.json | 1198 +++++++------- common/translations/lang/tr.json | 1217 +++++++------- common/translations/lang/vi.json | 1218 +++++++------- common/translations/lang/zhcn.json | 1218 +++++++------- common/translations/lang/zhtw.json | 1193 +++++++------- spec/pages/__snapshots__/ENS.spec.tsx.snap | 14 +- 135 files changed, 16096 insertions(+), 16149 deletions(-) create mode 100644 .prettierignore create mode 100644 common/containers/Tabs/SendTransaction/components/Donate.tsx create mode 100644 common/containers/Tabs/ViewWallet/index.tsx diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..aeba9142 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +common/translations \ No newline at end of file diff --git a/common/components/AddressField.tsx b/common/components/AddressField.tsx index a9e1f065..29318f82 100644 --- a/common/components/AddressField.tsx +++ b/common/components/AddressField.tsx @@ -13,7 +13,7 @@ export const AddressField: React.SFC = ({ isReadOnly }) => ( withProps={({ currentTo, isValid, onChange, readOnly }) => (