language translate in api-view

This commit is contained in:
shunmugam 2019-09-11 19:06:29 +05:30
parent 539fae5496
commit 8b58039614
3 changed files with 51 additions and 15 deletions

View File

@ -84,5 +84,23 @@
"ADDR" : "Adr", "ADDR" : "Adr",
"DIRECTION" : "Richtung", "DIRECTION" : "Richtung",
"SPENT" : "Verbraucht" "SPENT" : "Verbraucht"
},
"api-view": {
"query-api" : "Abfrage-API",
"query-api-line1" : "Die aufzurufende API-Funktion wird über den Parameter q angegeben.",
"query-api-line2" : "Zum Beispiel können Sie die Gesamtmünzen des epischen Bargeldes mit fragen 'https://explorer.epic.tech/api?q=totalcoins'",
"circulating" : "Gibt die Anzahl der umlaufenden Münzen zurück",
"getblockcount":"Gibt die aktuelle Blockhöhe als reine Textzeichenfolge zurück",
"getdifficulty-randomx" : "Gibt die RandomX-Schwierigkeit als reine Textzeichenfolge zurück",
"getdifficulty-progpow" : "Gibt die Schwierigkeit ProgPow als reine Textzeichenfolge zurück",
"getdifficulty-cuckoo" : "returns the Cuckoo difficulty as a plain text string",
"totalcoins" : "Gibt die Cuckoo-Schwierigkeit als reine Textzeichenfolge zurück",
"Block-Queries": "Abfragen blockieren",
"real-time-simple-query" : "Einfache Echtzeitabfragen",
"block-query-text" : "Block-APIs berücksichtigen nur Blöcke in der 'Haupt'-Kette (wie in der Explorer-Brieftasche festgelegt).",
"getblockhash" : "Nimmt einen Höhenparameter und gibt den entsprechenden Block-Hash zurück",
"getblockheight" : "Nimmt einen Hash-Parameter und gibt die entsprechende Blockhöhe zurück.",
"getblocktime" : "Nimmt einen Höhenparameter und gibt die unixtime des Blocks zurück.",
"takes":"nimmt ein"
} }
} }

View File

@ -84,5 +84,23 @@
"ADDR" : "Addr", "ADDR" : "Addr",
"DIRECTION" : "Direction", "DIRECTION" : "Direction",
"SPENT" : "Spent" "SPENT" : "Spent"
},
"api-view": {
"query-api" : "Query API",
"query-api-line1" : "The API function to call is specified through the q parameter.",
"query-api-line2" : "For instance you can ask the totalcoins of epic cash with 'https://explorer.epic.tech/api?q=totalcoins'",
"circulating" : "returns the number of circulating coins",
"getblockcount":"returns the current block height as a plain text string",
"getdifficulty-randomx" : "returns the RandomX difficulty as a plain text string",
"getdifficulty-progpow" : "returns the ProgPow difficulty as a plain text string",
"getdifficulty-cuckoo" : "returns the Cuckoo difficulty as a plain text string",
"totalcoins" : "returns the outstanding number of coins",
"Block-Queries": "Block Queries",
"real-time-simple-query" : "Real-Time Simple Queries",
"block-query-text" : "Block APIs only consider blocks in the 'main' chain (as determined by the explorer wallet).",
"getblockhash" : " parameter and returns corresponding block hash.",
"getblockheight" : " parameter and returns corresponding block height.",
"getblocktime" : " parameter and returns unixtime of the block.",
"takes" : "takes a"
} }
} }

View File

@ -1,29 +1,29 @@
<div class="view_content py-4"> <div class="view_content py-4">
<div class="container"> <div class="container">
<h3>Query API</h3> <h3>{{'api-view.query-api' | translate}}</h3>
<p> <p>
The API function to call is specified through the <code>q</code> parameter.<br> {{'api-view.query-api-line1' | translate}} <code>q</code> parameter.<br>
For instance you can ask the totalcoins of epic cash with "<i>https://explorer.epic.tech/api?q=totalcoins</i>". {{'api-view.query-api-line2' | translate}} "<i>https://explorer.epic.tech/api?q=totalcoins</i>".
</p> </p>
<h4>Real-Time Simple Queries</h4> <h4>{{'api-view.real-time-simple-query' | translate}}</h4>
<ul> <ul>
<li><b>circulating</b>: returns the number of circulating coins </li> <li><b>circulating</b>: {{'api-view.circulating' | translate}} </li>
<li><b>getblockcount</b>: returns the current block height as a plain text string</li> <li><b>getblockcount</b>: {{'api-view.getblockcount' | translate}}</li>
<li><b>getdifficulty-randomx</b>: returns the RandomX difficulty as a plain text string</li> <li><b>getdifficulty-randomx</b>: {{'api-view.getdifficulty-randomx' | translate}}</li>
<li><b>getdifficulty-progpow</b>: returns the ProgPow difficulty as a plain text string</li> <li><b>getdifficulty-progpow</b>: {{'api-view.getdifficulty-progpow' | translate}}</li>
<li><b>getdifficulty-cuckoo</b>: returns the Cuckoo difficulty as a plain text string</li> <li><b>getdifficulty-cuckoo</b>: {{'api-view.getdifficulty-cuckoo' | translate}}</li>
<li><b>totalcoins</b>: returns the outstanding number of coins</li> <li><b>totalcoins</b>: {{'api-view.totalcoins' | translate}}</li>
</ul> </ul>
<h4>Block Queries</h4> <h4>{{'api-view.Block-Queries' | translate}}</h4>
<p> <p>
Block APIs only consider blocks in the "main" chain (as determined by the explorer wallet). {{'api-view.block-query-text' | translate}}
</p> </p>
<ul> <ul>
<li><b>getblockhash</b>: takes a <code>height</code> parameter and returns corresponding block hash.</li> <li><b>getblockhash</b>: takes a <code>height</code> {{'api-view.getblockhash' | translate}}</li>
<li><b>getblockheight</b>: takes a <code>hash</code> parameter and returns corresponding block height.</li> <li><b>getblockheight</b>: takes a <code>hash</code> {{'api-view.getblockheight' | translate}}</li>
<li><b>getblocktime</b>: takes a <code>height</code> parameter and returns unixtime of the block.</li> <li><b>getblocktime</b>: takes a <code>height</code> {{'api-view.getblocktime' | translate}}</li>
</ul> </ul>
</div> </div>
</div> </div>