GithubHelp home page GithubHelp logo

giovanni-bertoncelli / json-translator Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 270 KB

Translate your JSON file with this tool!

License: GNU Affero General Public License v3.0

JavaScript 100.00%
i18n json web ibmcloud language nodejs javascript

json-translator's People

Contributors

giovanni-bertoncelli avatar

Stargazers

 avatar  avatar

Watchers

 avatar

json-translator's Issues

BUG: issue for translate to spanish

source json files here:

https://github.com/KnowageLabs/Knowage-Server/tree/master/knowage-vue/src/i18n/en_US/messages.json

pls help me to solve this

✔ Initialized!
⠧ Translating value #2/2159...Not Found: Unable to automatically detect the source language, confidence too low
    at RequestWrapper.formatError (/root/json-translator/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:290:21)
    at /root/json-translator/node_modules/ibm-cloud-sdk-core/lib/request-wrapper.js:275:45
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async TranslatorInCloud.translate (/root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/utils/cloud.js:30:26)
    at async /root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/index.js:30:26
    at async forInNestedRec (/root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/utils/trees.js:21:9)
    at async forInNestedRec (/root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/utils/trees.js:17:7)
    at async JsonTranslator.run (/root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/index.js:23:5)
    at async main (/root/json-translator/node_modules/@giovanni-bertoncelli/json-translator/cli.js:31:3) {
  statusText: 'Not Found',
  status: 404,
  code: 404,
  body: '{"code":404,"error":"Unable to automatically detect the source language, confidence too low"}',
  headers: {
    'content-length': '104',
    'content-type': 'application/json; charset=UTF-8',
    'x-xss-protection': '1; mode=block',
    'x-content-type-options': 'nosniff',
    'content-security-policy': "default-src 'none'",
    'cache-control': 'no-cache, no-store',
    pragma: 'no-cache',
    'content-language': 'en-US',
    'strict-transport-security': 'max-age=31536000; includeSubDomains;',
    'x-dp-watson-tran-id': 'c80cc328-a8f2-4a74-bfd0-390677f0b2ef',
    'x-request-id': 'c80cc328-a8f2-4a74-bfd0-390677f0b2ef',
    'x-global-transaction-id': 'c80cc328-a8f2-4a74-bfd0-390677f0b2ef',
    server: 'watson-gateway',
    'x-edgeconnect-midmile-rtt': '16',
    'x-edgeconnect-origin-mex-latency': '98',
    date: 'Sun, 19 Jun 2022 03:41:58 GMT',
    connection: 'close'
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.