diff --git a/apps/remix-ide/src/app/tabs/locales/en/solidity.json b/apps/remix-ide/src/app/tabs/locales/en/solidity.json index 947bfeae94..6e7a6e45ac 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/solidity.json +++ b/apps/remix-ide/src/app/tabs/locales/en/solidity.json @@ -26,6 +26,15 @@ "solidity.generateUML": "Generate a UML diagram of your contract.", "solidity.flattenLabel": "Flatten", "solidity.generateUMLLabel": "Generate UML Diagram", + "solidity.copy": "Copy", + "solidity.copyABI": "Copy ABI to clipboard", + "solidity.copyBytecode": "Copy Bytecode to clipboard", + "solidity.unableToDisplay": "Unable to display", + "solidity.download": "Download", + "solidity.close": "Close", + "solidity.contract": "Contract", + "solidity.displayContractDetails": "Display Contract Details", + "solidity.noContractCompiled": "No Contract Compiled Yet", "solidity.Assembly": "Assembly opcodes describing the contract including corresponding solidity source code", "solidity.Opcodes": "Assembly opcodes describing the contract", "solidity.name": "Name of the compiled contract", @@ -37,5 +46,9 @@ "solidity.functionHashes": "List of declared function and their corresponding hash", "solidity.gasEstimates": "Gas estimation for each function call", "solidity.Runtime Bytecode": "Bytecode storing the state and being executed during normal contract call", + "solidity.storageLayout": "See the Storage Layout documentation.", + "solidity.devdoc": "Developer documentation (natspec)", + "solidity.userdoc": "User documentation (natspec)", + "solidity.compilerInput": "Input to the Solidity compiler", "solidity.swarmLocation": "Swarm url where all metadata information can be found (contract needs to be published first)" } diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index 9b7edb66f1..eb2fb58495 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -143,7 +143,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { } catch (e) { node = (
- Unable to display "${propertyName}": ${e.message} + "${propertyName}": ${e.message}
) } @@ -173,6 +173,9 @@ export const ContractSelection = (props: ContractSelectionProps) => { 'abi': 'ABI: describing all the functions (input/output params, scope, ...)', 'name': 'Name of the compiled contract', 'swarmLocation': 'Swarm url where all metadata information can be found (contract needs to be published first)', + 'storageLayout': 'See the Storage Layout documentation.', + 'devdoc': 'Developer documentation (natspec)', + 'userdoc': 'User documentation (natspec)', 'web3Deploy': 'Copy/paste this code to any JavaScript/Web3 console to deploy this contract' } let contractProperties: any = {} @@ -185,7 +188,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { {Object.keys(contractProperties).map((propertyName, index) => { const copyDetails = ( - + ) const questionMark = ( @@ -222,7 +225,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { _paq.push(['trackEvent', 'compiler', 'compilerDetails', 'download']) saveAs(new Blob([JSON.stringify(contractProperties, null, '\t')]), `${selectedContract}_compData.json`) } - modal(selectedContract, log, 'Download', downloadFn, true, 'Close', null) + modal(selectedContract, log, intl.formatMessage({id: 'solidity.download'}), downloadFn, true, intl.formatMessage({id: 'solidity.close'}), null) } const copyBytecode = () => { @@ -238,7 +241,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { {/* Select Compiler Version */}