← 开源
mololab

json-translator

jsontt 💡 - AI JSON Translator with GPT / Gemma / Mixtral / llama + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌ Supports GPT / Gemma / Mixtral / llama / DeepL / Google / Bing / Libre / Argos

ApplicationsProductivityTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
613
Star
81
Fork
+0
本周
15
贡献者
创建于 2021-12-11 · 更新于 2026-09-12 · 今日第 16071 名
主要开发者
ParvinEyvazovfadkeabhimyshkouski

mololab/json-translator 排名第 16,071,有 613 个星标。

同类别比较

mololab/json-translator 排名第 16,071,此处有 8 个同类条目;reriiasu/speech-to-text 排名第 16,075。

同类别比较
名称排名指标
liuzhao1225/YouDub16,045
语言:
Python
星标数:
615
分叉数:
66
简介:
Legacy YouDub AI video translation and voice-cloning pipeline. Active development continues in YouDub WebUI.
hofstadter-io/hof16,056
语言:
Go
星标数:
614
分叉数:
47
简介:
A developer experience centered on CUE. Unifies schemas, data models, deterministic and agentic code generation, workflow and task engine, dagger powered environments, coding assistant, and vscode extension; woven together on the CUE lattice. Squint harder if you can't see the cube :]
timmyy123/LLM-Hub16,060
语言:
C
星标数:
614
分叉数:
137
简介:
Local LLM, image&video&music generator, run codex with local models on your phone
abielzulio/chatgpt-raycast16,066
语言:
TypeScript
星标数:
613
分叉数:
50
简介:
ChatGPT raycast extension
reriiasu/speech-to-text16,075
语言:
HTML
星标数:
613
分叉数:
99
简介:
Real-time transcription using faster-whisper
sdcb/chats16,076
语言:
C#
星标数:
613
分叉数:
110
简介:
A powerful and flexible frontend & AI gateway for large language models, supporting 21+ mainstream AI model providers.
bradleyboyuyang/ML-HFT16,090
语言:
Jupyter Notebook
星标数:
612
分叉数:
144
简介:
High frequency trading (HFT) framework built for futures using machine learning and deep learning techniques
cpaczek/any-buddy16,091
语言:
TypeScript
星标数:
612
分叉数:
54
简介:
Hack Claude Code to get any buddy you want
关键参数与规格
关键参数与规格
参数值
语言TypeScript
类别Applications
子类别Productivity
关键词Translation
星标数613
分叉数81
贡献者15
创建日期2021-12-11
更新日期2026-09-12
1 天星标数0
7 天星标数0
排名16,071
上次排名15,872
排名变化-199
7 天星标排名15,330
上次 7 天星标排名15,337
7 天星标排名变化7
总星标排名16,496
上次总星标排名16,470
总星标排名变化-26
国家USA
README 摘录

support Contact with me on Twitter to advertise your project on jsontt cli **🚀 AI / FREE JSON & YAML TRANSLATOR 🆓** This package will provide you to translate your JSON/YAML files or JSON objects into different languages FREE. 5-turbo | ✅ | | | gpt-4 | ✅ | | | gpt-4o-mini | ✅ | | | gpt-5 | ✅ | | | gpt-5-nano | ✅ | | | gpt-5-mini | ✅ | | | gemma-7b | ✅ | | | gemma2-9b | ✅ | | | mixtral-8x7b | ✅ | | | llama3-8b | ✅ | | | llama3-70b | ✅ | | | llama-cpp | ✅ | | **_Supported languages_** **✅ Install** OR you can install it globally (in case of using CLI) **1. (video below

) Arguments : Required JSON/YAML file path : optional proxy list txt file path Options Examples Translate a JSON file using Google Translate: with output name with fallback logic (try other possible translation modules on fail) set concurrency limit (higher faster, but easy to get banned | default: 3) other usage examples translate (json/yaml) with proxy (only Google Translate module) Result will be in the same folder as the original JSON/YAML file. Translate a word | sentence** Import the library to your

code. Translate JSON object into Multiple languages (supports deep objects)** Import the library to your code For JavaScript For TypeScript: **4. Translate JSON file (supports deep objects)** Import the library to your code. Translate JSON file into Multiple languages (supports deep objects)** Import the library to your code. Ignore words** To ignore words on translation use OR style on your object. jsontt also ignores the in the text which means sometimes translations ruin the URL in the given string while

translating that string. It prevents such cases by ignoring URLs in the string while translating. You don't especially need to do anything for it, it ignores them automatically. Clone it Install dependencies (with using yarn - install yarn if you don't have) Show the magic: Update CLI Update translation Update JSON operations(deep dive, send translation request) Update JSON file read/write operations Update ignoring values in translation (map/unmap) Check CLI locally For checking CLI locally we need to the

package using Or you can run the whole steps using make Make sure your terminal has admin access while running these commands to prevent any access issues. **🏞 Roadmap🏁** :heavy_check_mark: Translate a word | sentence for JSON objects :heavy_check_mark: Translate JSON object :heavy_check_mark: Translate deep JSON object :heavy_check_mark: Multi language translate for JSON object [ ] Translate JSON object with extracting OR filtering some of its fields for JSON files :heavy_check_mark: Translate JSON file

:heavy_check_mark: Translate deep JSON file :heavy_check_mark: Multi language translate for JSON file [ ] Translate JSON file with extracting OR filtering some of its fields General :heavy_check_mark: CLI support :heavy_check_mark: Safe translation (Checking undefined, long, or empty values) :heavy_check_mark: Queue support for big translations :heavy_check_mark: Informing the user about the translation process (number of completed ones, the total number of lines and etc. [ ] Update name -> prefix in CLI / Ability to

pass empty to prefix in CLI (better for autonomous tasks) [ ] to CLI which will print json in a pretty way

常见问题

记录了多少星标和分叉?

mololab/json-translator 有 613 个星标和 81 个分叉。

仓库排名是多少?

mololab/json-translator 排名第 16,071。

记录的语言和类别是什么?

mololab/json-translator 有 613 个星标,语言为 TypeScript,类别为 Applications。

哪个仓库排名最接近?

mololab/json-translator 与 reriiasu/speech-to-text 比较,后者排名第 16,075,有 613 个星标。

README

support

🚀 AI / FREE JSON & YAML TRANSLATOR 🆓

This package will provide you to translate your JSON/YAML files or JSON objects into different languages FREE.

🥷 CLI Support:

Translation Module Support FREE
Google Translate ✅ ✅ FREE
Google Translate 2 ✅ ✅ FREE
Microsoft Bing Translate ✅ ✅ FREE
Libre Translate ✅ ✅ FREE
Argos Translate ✅ ✅ FREE
DeepL Translate ✅ require API KEY (DEEPL_API_KEY as env) optional API URL (DEEPL_API_URL as env)
gpt-4o ✅ require API KEY (OPENAI_API_KEY as env)
gpt-3.5-turbo ✅ require API KEY (OPENAI_API_KEY as env)
gpt-4 ✅ require API KEY (OPENAI_API_KEY as env)
gpt-4o-mini ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5 ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5-nano ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5-mini ✅ require API KEY (OPENAI_API_KEY as env)
gemma-7b ✅ require API KEY (GROQ_API_KEY as env)
gemma2-9b ✅ require API KEY (GROQ_API_KEY as env)
mixtral-8x7b ✅ require API KEY (GROQ_API_KEY as env)
llama3-8b ✅ require API KEY (GROQ_API_KEY as env)
llama3-70b ✅ require API KEY (GROQ_API_KEY as env)
llama-cpp ✅ ✅ FREE

⏳ Package Support:

Translation Module Support FREE
Google Translate ✅ ✅ FREE
Google Translate 2 ✅ ✅ FREE
Microsoft Bing Translate ✅ ✅ FREE
Libre Translate ✅ ✅ FREE
Argos Translate ✅ ✅ FREE
DeepL Translate ✅ require API KEY (DEEPL_API_KEY as env) optional API URL (DEEPL_API_URL as env)
gpt-4o ✅ require API KEY (OPENAI_API_KEY as env)
gpt-3.5-turbo ✅ require API KEY (OPENAI_API_KEY as env)
gpt-4 ✅ require API KEY (OPENAI_API_KEY as env)
gpt-4o-mini ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5 ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5-nano ✅ require API KEY (OPENAI_API_KEY as env)
gpt-5-mini ✅ require API KEY (OPENAI_API_KEY as env)
gemma-7b ✅ require API KEY (GROQ_API_KEY as env)
gemma2-9b ✅ require API KEY (GROQ_API_KEY as env)
mixtral-8x7b ✅ require API KEY (GROQ_API_KEY as env)
llama3-8b ✅ require API KEY (GROQ_API_KEY as env)
llama3-70b ✅ require API KEY (GROQ_API_KEY as env)
llama-cpp ✅ ✅ FREE

Browser support will come soon...

Supported languages

✅ Install

npm i @parvineyvazov/json-translator
  • OR you can install it globally (in case of using CLI)
npm i -g @parvineyvazov/json-translator

1. 💫 CLI Usage

jsontt 
or
jsontt 

How to use it? (video below)

Arguments

  • [path]: Required JSON/YAML file path ``
  • [path]: optional proxy list txt file path ``

Options

  -V, --version                     output the version number
  -m, --module              specify translation module
  -f, --from              from language
  -t, --to            to translates
  -n, --name                optional ↵ | output filename
  -fb, --fallback           optional ↵ | fallback logic,
                                    try other translation modules on fail | yes, no | default: no
  -cl, --concurrencylimit   optional ↵ | set max concurrency limit
                                    (higher faster, but easy to get banned) | default: 3
  -c, --cache                       optional ↵ | enabled cache | default: no
  -h, --help                        display help for command

Examples

Translate a JSON file using Google Translate:

jsontt  --module google --from en --to ar fr zh-CN
  • with output name
jsontt  --module google --from en --to ar fr zh-CN --name myFiles
  • with fallback logic (try other possible translation modules on fail)
jsontt  --module google --from en --to ar fr zh-CN --name myFiles --fallback yes
  • set concurrency limit (higher faster, but easy to get banned | default: 3)
jsontt  --module google --from en --to ar fr zh-CN --name myFiles --fallback yes --concurrencylimit 10

other usage examples

  • translate (json/yaml)
jsontt file.json
jsontt folder/file.json
jsontt "folder\file.json"
jsontt "C:\folder1\folder\en.json"
  • with proxy (only Google Translate module)
jsontt file.json proxy.txt

Result will be in the same folder as the original JSON/YAML file.

  • help
jsontt -h
jsontt --help

2. 💥 Package Usage

1. Translate a word | sentence

  • Import the library to your code.

For JavaScript

const translator = require('@parvineyvazov/json-translator');

For TypeScript:

import * as translator from '@parvineyvazov/json-translator';
// Let`s translate `Home sweet home!` string from English to Chinese

const my_str = await translator.translateWord(
  'Home sweet home!',
  translator.languages.English,
  translator.languages.Chinese_Simplified
);

// my_str: 家,甜蜜的家!

2. Translate JSON object (supports deep objects)

  • Import the library to your code

For JavaScript

const translator = require('@parvineyvazov/json-translator');

For TypeScript:

import * as translator from '@parvineyvazov/json-translator';
/*
Let`s translate our deep object from English to Spanish
*/

const en_lang: translator.translatedObject = {
  login: {
    title: 'Login {{name}}',
    email: 'Please, enter your email',
    failure: 'Failed',
  },
  homepage: {
    welcoming: 'Welcome!',
    title: 'Live long, live healthily!',
  },
  profile: {
    edit_screen: {
      edit: 'Edit your informations',
      edit_age: 'Edit your age',
      number_editor: [
        {
          title: 'Edit number 1',
          button: 'Edit 1',
        },
        {
          title: 'Edit number 2',
          button: 'Edit 2',
        },
      ],
    },
  },
};

/*
FOR JavaScript don`t use translator.translatedObject (No need to remark its type)
*/

let es_lang = await translator.translateObject(
  en_lang,
  translator.languages.English,
  translator.languages.Spanish
);
/*
es_lang:
            {
              "login": {
                "title": "Acceso {{name}}",
                "email": "Por favor introduzca su correo electrónico",
                "failure": "Fallida"
              },
              "homepage": {
                "welcoming": "¡Bienvenidas!",
                "title": "¡Vive mucho tiempo, vivo saludable!"
              },
              "profile": {
                "edit_screen": {
                  "edit": "Edita tus informaciones",
                  "edit_age": "Editar tu edad",
                  "number_editor": [
                    {
                      "title": "Editar número 1",
                      "button": "Editar 1"
                    },
                    {
                      "title": "Editar número 2",
                      "button": "Editar 2"
                    }
                  ]
                }
              }
            }
*/

3. Translate JSON object into Multiple languages (supports deep objects)

  • Import the library to your code

For JavaScript

const translator = require('@parvineyvazov/json-translator');

For TypeScript:

import * as translator from '@parvineyvazov/json-translator';
/*
Let`s translate our object from English to French, Georgian and Japanese in the same time:
*/

const en_lang: translator.translatedObject = {
  login: {
    title: 'Login',
    email: 'Please, enter your email',
    failure: 'Failed',
  },
  edit_screen: {
    edit: 'Edit your informations',
    number_editor: [
      {
        title: 'Edit number 1',
        button: 'Edit 1',
      },
    ],
  },
};

/*
FOR JavaScript don`t use translator.translatedObject (No need to remark its type)
*/

const [french, georgian, japanese] = (await translator.translateObject(
  en_lang,
  translator.languages.Automatic,
  [
    translator.languages.French,
    translator.languages.Georgian,
    translator.languages.Japanese,
  ]
)) as Array; // FOR JAVASCRIPT YOU DO NOT NEED TO SPECIFY THE TYPE
/*
french:
{
  "login": {
    "title": "Connexion",
    "email": "S'il vous plaît, entrez votre email",
    "failure": "Manquée"
  },
  "edit_screen": {
    "edit": "Modifier vos informations",
    "number_editor": [
      {
        "title": "Modifier le numéro 1",
        "button": "Éditer 1"
      }
    ]
  }
}

georgian:
{
  "login": {
    "title": "Შესვლა",
    "email": "გთხოვთ, შეიყვანეთ თქვენი ელ",
    "failure": "მცდელობა"
  },
  "edit_screen": {
    "edit": "თქვენი ინფორმაციათა რედაქტირება",
    "number_editor": [
      {
        "title": "რედაქტირების ნომერი 1",
        "button": "რედაქტირება 1"
      }
    ]
  }
}

japanese:
{
  "login": {
    "title": "ログイン",
    "email": "あなたのメールアドレスを入力してください",
    "failure": "失敗した"
  },
  "edit_screen": {
    "edit": "あなたの情報を編集します",
    "number_editor": [
      {
        "title": "番号1を編集します",
        "button": "編集1を編集します"
      }
    ]
  }
}
*/

4. Translate JSON file (supports deep objects)

  • Import the library to your code.

For JavaScript

const translator = require('@parvineyvazov/json-translator');

For TypeScript:

import * as translator from '@parvineyvazov/json-translator';
/*
Let`s translate our json file into another language and save it into the same folder of en.json
*/

let path = 'C:/files/en.json'; // PATH OF YOUR JSON FILE (includes file name)

await translator.translateFile(path, translator.languages.English, [
  translator.languages.German,
]);
── files
   ├── en.json
   └── de.json

5. Translate JSON file into Multiple languages (supports deep objects)

  • Import the library to your code.

For JavaScript

const translator = require('@parvineyvazov/json-translator');

For TypeScript:

import * as translator from '@parvineyvazov/json-translator';
/*
Let`s translate our json file into multiple languages and save them into the same folder of en.json
*/

let path = 'C:/files/en.json'; // PATH OF YOUR JSON FILE (includes file name)

await translator.translateFile(path, translator.languages.English, [
  translator.languages.Cebuano,
  translator.languages.French,
  translator.languages.German,
  translator.languages.Hungarian,
  translator.languages.Japanese,
]);
── files
   ├── en.json
   ├── ceb.json
   ├── fr.json
   ├── de.json
   ├── hu.json
   └── ja.json

6. Ignore words

To ignore words on translation use {{word}} OR {word} style on your object.

{
  "one": "Welcome {{name}}",
  "two": "Welcome {name}",
  "three": "I am {name} {{surname}}"
}

...translating to spanish

{
  "one": "Bienvenido {{name}}",
  "two": "Bienvenido {name}",
  "three": "Soy {name} {{surname}}"
}
  • jsontt also ignores the URL in the text which means sometimes translations ruin the URL in the given string while translating that string. It prevents such cases by ignoring URLs in the string while translating.

    • You don't especially need to do anything for it, it ignores them automatically.
{
  "text": "this is a puppy https://shorturl.at/lvPY5"
}

...translating to german

{
  "text": "das ist ein welpe https://shorturl.at/lvPY5"
}

How to contribute?

  • Clone it
git clone https://github.com/mololab/json-translator.git
yarn
  • Show the magic:

    • Update CLI

      Go to file src/cli/cli.ts

    • Update translation

      Go to file src/modules/functions.ts

    • Update JSON operations(deep dive, send translation request)

      Go to file src/core/json_object.ts

    • Update JSON file read/write operations

      Go to file src/core/json_file.ts

    • Update ignoring values in translation (map/unmap)

      Go to file src/core/ignorer.ts

  • Check CLI locally

For checking CLI locally we need to link the package using npm

npm link

Or you can run the whole steps using make

make run-only-cli

Make sure your terminal has admin access while running these commands to prevent any access issues.

🏞 Roadmap🏁

:heavy_check_mark: Translate a word | sentence

  • for JSON objects

:heavy_check_mark: Translate JSON object

:heavy_check_mark: Translate deep JSON object

:heavy_check_mark: Multi language translate for JSON object

  • [ ] Translate JSON object with extracting OR filtering some of its fields

  • for JSON files

:heavy_check_mark: Translate JSON file

:heavy_check_mark: Translate deep JSON file

:heavy_check_mark: Multi language translate for JSON file

  • [ ] Translate JSON file with extracting OR filtering some of its fields

  • General

:heavy_check_mark: CLI support

:heavy_check_mark: Safe translation (Checking undefined, long, or empty values)

:heavy_check_mark: Queue support for big translations

:heavy_check_mark: Informing the user about the translation process (number of completed ones, the total number of lines and etc.)

:heavy_check_mark: Ignore value words in translation (such as ignore {{name}} OR {name} on translation)

:heavy_check_mark: Libre Translate option (CLI)

:heavy_check_mark: Argos Translate option (CLI)

:heavy_check_mark: Bing Translate option (CLI)

:heavy_check_mark: Ignore URL translation on given string

:heavy_check_mark: CLI options for languages & source selection

:heavy_check_mark: Define output file names on CLI (optional command for CLI)

:heavy_check_mark: YAML file Translate

:heavy_check_mark: Fallback Translation (try new module on fail)

:heavy_check_mark: Can set the concurrency limit manually

  • [ ] Libre Translate option (in code package)

  • [ ] Argos Translate option (in code package)

  • [ ] Bing Translate option (in code package)

  • [ ] Openrouter Translate module

  • [ ] Cohere Translate module

  • [ ] Anthropic/Claude Translate module

  • [ ] Together AI Translate module

  • [x] llamacpp Translate module

  • [ ] Google Gemini API Translate module

  • [ ] Groq support - Full list as new Translate modules

:heavy_check_mark: ChatGPT support

  • [ ] Sync translation

  • [ ] Browser support

  • [ ] Translation Option for own LibreTranslate instance

  • [ ] Make "--" dynamically adjustable (placeholder of not translated ones).

  • [ ] Update name -> prefix in CLI / Ability to pass empty to prefix in CLI (better for autonomous tasks)

  • [ ] --prettyPrint to CLI which will print json in a pretty way

License

@parvineyvazov/json-translator will be available under the MIT license.

Back To Top

排名相邻
同类项目