{"id":18470897,"url":"https://github.com/fedesky25/json-translation-tool","last_synced_at":"2026-04-24T16:03:41.247Z","repository":{"id":169521073,"uuid":"522550164","full_name":"Fedesky25/json-translation-tool","owner":"Fedesky25","description":"Client-side editor to translate JSON files with texts in other languages","archived":false,"fork":false,"pushed_at":"2022-09-18T21:20:37.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T18:44:00.268Z","etag":null,"topics":["json","translation"],"latest_commit_sha":null,"homepage":"https://federicoguglielmi.it/tools/json-translation","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fedesky25.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-08T12:58:03.000Z","updated_at":"2022-11-05T16:36:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"aebc331b-6b12-4f60-b449-a4a6c9a7e1e1","html_url":"https://github.com/Fedesky25/json-translation-tool","commit_stats":null,"previous_names":["fedesky25/json-translation-tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedesky25%2Fjson-translation-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedesky25%2Fjson-translation-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedesky25%2Fjson-translation-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedesky25%2Fjson-translation-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fedesky25","download_url":"https://codeload.github.com/Fedesky25/json-translation-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253748427,"owners_count":21957923,"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":["json","translation"],"created_at":"2024-11-06T10:15:12.271Z","updated_at":"2026-04-24T16:03:36.227Z","avatar_url":"https://github.com/Fedesky25.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON translation tool\n\nClient-side static page that acts as a tool to translate JSON files with texts in other languages through a simple editor. There are two version: the recommended one uses the new experimental File System Access API ([caniuse](https://caniuse.com/native-filesystem-api)) while the second simply uses an input file (with webkitfolder).\n\n## Expected file structure\n\nThe tool opens a folder project that contains:\n\n- a `manifest.json` file which specifies the languages of the projects\n- any number of subfolders containing `\u003clocale-code\u003e.json` files\n\n## Project manifest\n\nThe manifest inside a folder project specifies the language of reference and all the \"foreign\" ones. For each of them, the locale code and name must be provided. The `./\u003csubfolder\u003e/\u003creference.code\u003e.json` file is taken as reference texts (and won't be changed in the file system access version).\n\nTypescript type definition:\n\n```ts\ninterface LanguageLocale {\n    code: string;\n    name: string;\n}\ninterface Manifest {\n    reference: LanguageLocale;\n    foreign: LanguageLocale[];\n}\n```\n\nExample:\n\n```json\n{\n    \"reference\": {\n        \"code\": \"en\",\n        \"name\": \"English\"\n    },\n    \"foreign\": [\n        {\n            \"code\": \"it\",\n            \"name\": \"Italiano\"\n        },\n        {\n            \"code\": \"fr\",\n            \"name\": \"Français\"\n        }\n    ]\n}\n```\n\n## Texts JSON files\n\nThey are the `\u003clocale-code\u003e.json` files inside the subfolders of the project folder, and their typescript interface description would be the following one.\n\n```ts\ntype Texts = string | Texts[] | Record\u003cstring, Texts\u003e;\n```\n\nExample:\n\n```json\n{\n    \"title\": \"Welcome back!\",\n    \"profile\": {\n        \"see\": \"See your profile\",\n        \"edit\": \"Edit your profile\",\n        \"posts\": \"Your posts\"\n    },\n    \"aboutus\": {\n        \"title\": \"About us\",\n        \"description\": \"lorem ipsum ...\",\n        \"geo\": {\n            \"nation\": \"United Kingdom\",\n            \"city\": \"London\"\n        }\n    }\n}\n```\n\nThe only mandatory file inside each subfolder is the one related to the reference language (`\u003cmanifest.reference.code\u003e.json`).\n\nPlease note that arrays are currently supported only in the File System Access API version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedesky25%2Fjson-translation-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedesky25%2Fjson-translation-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedesky25%2Fjson-translation-tool/lists"}