{"id":13343315,"url":"https://github.com/jz0ojiang/TranslateJson","last_synced_at":"2025-03-12T04:33:14.384Z","repository":{"id":124277940,"uuid":"304264656","full_name":"jz0ojiang/TranslateJson","owner":"jz0ojiang","description":"Translate (Human) language in json/yaml file | 翻译Json/yaml文件中(人类的)语言","archived":false,"fork":false,"pushed_at":"2020-10-19T12:43:49.000Z","size":31,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T15:39:16.804Z","etag":null,"topics":["baidu-trans-api","json","yaml","yaml-files"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jz0ojiang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-10-15T08:48:10.000Z","updated_at":"2022-06-24T11:20:37.000Z","dependencies_parsed_at":"2023-11-23T03:40:10.963Z","dependency_job_id":null,"html_url":"https://github.com/jz0ojiang/TranslateJson","commit_stats":null,"previous_names":["jz0ojiang/translatejson"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz0ojiang%2FTranslateJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz0ojiang%2FTranslateJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz0ojiang%2FTranslateJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz0ojiang%2FTranslateJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jz0ojiang","download_url":"https://codeload.github.com/jz0ojiang/TranslateJson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158974,"owners_count":20245668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baidu-trans-api","json","yaml","yaml-files"],"created_at":"2024-07-29T19:31:08.228Z","updated_at":"2025-03-12T04:33:14.055Z","avatar_url":"https://github.com/jz0ojiang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TranslateJson\n\n[Blog Post](#) | [BilibiliVideo(zh)](#) | [中文readme](https://github.com/0ojixueseno0/TranslateJson/blob/master/readme_zh.md)\n\n![](https://img.shields.io/badge/TranslateJson-python-green?style=flat\u0026logo=Python) ![](https://img.shields.io/badge/License-AGPL--3.0_License-yellow?style=flat) ![](https://img.shields.io/badge/Version-0.2.0-blueviolet?style=flat)\n\n## How Can i do？\n\n**Use [Baidu Translation API](http://api.fanyi.baidu.com/doc/11)** Customize translate your value in json file\n\n## Download\n\nDownload the version that matches your system in the release\n\nOr you can run:\n\n```bash\n$ git clone \"https://github.com/0ojixueseno0/TranslateJson.git\"\n$ cd TranslateJson\n$ .\\TJson.py \"example.json or example.yaml\"\n#Or compiled as a program to use\n```\n\n## How to use？\n\n```bash\n#Windows\n$ Tjson.exe example.json\n#or\n$ Tjson.exe example.yaml\n#linux\n$ Tjson example.json\n#or\n$ Tjson example.yaml\n```\n\nWhen it completed, you will find a file named ```output.json or output.y(a)ml``` with result\n\n## Configure File\n\n```Config.yml```\n\n```yml\nConfig:\n#Help of Baidu-Trans API：http://api.fanyi.baidu.com/doc/21\n  #Default address is Baidu-Trans general API\n  api_url: \"http://api.fanyi.baidu.com/api/trans/vip/translate\"\n  app_id: #Fill in your AppID here\n  secret: \"\" #Fill in your key here\n  transfrom: en #from \"from\" trans to \"to\"\n  transto: zh\n  #program will not translate the chars in the list\n  DetranslateList:\n  - \"\u0026\"\n  - \"*\"\n  - \":\"\n  - \"!\"\n  #Filter mode：whitelist/blacklist will Match the whitelist and blacklist list below\n  listmode: whitelist\n  #put the key of json in the list\n  Whitelist:\n  - Title\n  - Thursday\n  Blacklist:\n  - lore\n\n```\n\n## At last\n\nClick the ```star``` button pls !!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjz0ojiang%2FTranslateJson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjz0ojiang%2FTranslateJson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjz0ojiang%2FTranslateJson/lists"}