avimehenwal / ts-translate

promise based asynchronous translations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS-TRANSLATE

Acceptance Criteria

  • The items title and description will be translated in German
  • Once translation is complete, the complete item will be displayed (a simple console.log or a file write should be enough)

How to run

install the dependencies using the correct version of nodejs

nvm use
npm install

npm start

demo3

Tests

npm test

test

design decision

  • script created a Promise for each translation, which could be executed asynchronousely in parallel
  • Once all translation are resolved the data-object could be used to write/update a file or database entry
  • all errors are handeled and a summary of all actions is printed in the end

What could be improved?

  1. Ability to add more translation sources and multiple strategies
  2. Ability to read from multiple data-sources, like CSV file, API endpoint etc
  3. Ability to write to multiple destinations like console or a OUT.FILE or as streamed observable dataBuffer
  4. collect performance data and metrics
  5. look out for security vurnabilities and package and publish it
  6. CSV generator from exiting data 22df7
  7. debugging features and low-level code-introspection

Project Analysis

(1087.6 files/s, 23928.1 lines/s)

Language files blank comment code
TypeScript 11 28 13 215
CSV 1 0 0 8
-------- -------- -------- -------- --------
SUM: 12 28 13 223

@ Reach Me @

available for new opportunity ...

Buy Me A Coffee

Spread Love ♥️ and not 🚫 hatred Twitter Follow

About

promise based asynchronous translations


Languages

Language:TypeScript 99.1%Language:JavaScript 0.9%