From 8b58039614e156fc16a727e7a6f30424054d129f Mon Sep 17 00:00:00 2001 From: shunmugam Date: Wed, 11 Sep 2019 19:06:29 +0530 Subject: [PATCH] language translate in api-view --- server/i18n/de.json | 18 +++++++++++ server/i18n/en.json | 18 +++++++++++ src/app/view/api-view/api-view.component.html | 30 +++++++++---------- 3 files changed, 51 insertions(+), 15 deletions(-) diff --git a/server/i18n/de.json b/server/i18n/de.json index d2445de..c723961 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -84,5 +84,23 @@ "ADDR" : "Adr", "DIRECTION" : "Richtung", "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" } } diff --git a/server/i18n/en.json b/server/i18n/en.json index 98c2b4f..779e7b5 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -84,5 +84,23 @@ "ADDR" : "Addr", "DIRECTION" : "Direction", "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" } } diff --git a/src/app/view/api-view/api-view.component.html b/src/app/view/api-view/api-view.component.html index 634a719..03e1ce1 100644 --- a/src/app/view/api-view/api-view.component.html +++ b/src/app/view/api-view/api-view.component.html @@ -1,29 +1,29 @@
-

Query API

+

{{'api-view.query-api' | translate}}

- The API function to call is specified through the q parameter.
- For instance you can ask the totalcoins of epic cash with "https://explorer.epic.tech/api?q=totalcoins". + {{'api-view.query-api-line1' | translate}} q parameter.
+ {{'api-view.query-api-line2' | translate}} "https://explorer.epic.tech/api?q=totalcoins".

-

Real-Time Simple Queries

+

{{'api-view.real-time-simple-query' | translate}}

    -
  • 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
  • +
  • circulating: {{'api-view.circulating' | translate}}
  • +
  • getblockcount: {{'api-view.getblockcount' | translate}}
  • +
  • getdifficulty-randomx: {{'api-view.getdifficulty-randomx' | translate}}
  • +
  • getdifficulty-progpow: {{'api-view.getdifficulty-progpow' | translate}}
  • +
  • getdifficulty-cuckoo: {{'api-view.getdifficulty-cuckoo' | translate}}
  • +
  • totalcoins: {{'api-view.totalcoins' | translate}}
-

Block Queries

+

{{'api-view.Block-Queries' | translate}}

- Block APIs only consider blocks in the "main" chain (as determined by the explorer wallet). + {{'api-view.block-query-text' | translate}}

    -
  • getblockhash: takes a height parameter and returns corresponding block hash.
  • -
  • getblockheight: takes a hash parameter and returns corresponding block height.
  • -
  • getblocktime: takes a height parameter and returns unixtime of the block.
  • +
  • getblockhash: takes a height {{'api-view.getblockhash' | translate}}
  • +
  • getblockheight: takes a hash {{'api-view.getblockheight' | translate}}
  • +
  • getblocktime: takes a height {{'api-view.getblocktime' | translate}}