{"id":23066988,"url":"https://github.com/dvsa/rsp-translation-service","last_synced_at":"2025-04-03T09:13:47.166Z","repository":{"id":86167501,"uuid":"595627186","full_name":"dvsa/rsp-translation-service","owner":"dvsa","description":"Translation service to translate JSON into given languages using Azure Translation API.","archived":false,"fork":false,"pushed_at":"2023-02-10T17:34:57.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T22:28:34.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvsa.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T13:35:13.000Z","updated_at":"2024-01-03T09:24:17.000Z","dependencies_parsed_at":"2023-03-13T08:44:59.683Z","dependency_job_id":null,"html_url":"https://github.com/dvsa/rsp-translation-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Frsp-translation-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Frsp-translation-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Frsp-translation-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Frsp-translation-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvsa","download_url":"https://codeload.github.com/dvsa/rsp-translation-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970323,"owners_count":20862509,"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":[],"created_at":"2024-12-16T05:15:48.360Z","updated_at":"2025-04-03T09:13:47.142Z","avatar_url":"https://github.com/dvsa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DVSA Translation Service\n\n### Script that takes a JSON file and translates it to the given languages and outputs translated JSON files\n\n## To Run\n\nClone or download the project\n\nCreate and set your credentials in a `.env` file.\n\nIn the `.env` file, add all the languages you want to translate as a comma separated list. Languages must be two-letter codes - anything that does not follow this format will be removed from the list of languages prior to translation. The Microsoft list of supported languages [can be found here](https://learn.microsoft.com/en-GB/azure/cognitive-services/translator/language-support). For example:\n\n```\nLANGUAGES=en,bg,fr,es,cy\n```\n\nAlso in the `.env` file, add all the keys you want to translate as a comma separated list. If there are no keys set in the allow list, everything will be translated. For example:\n\n```\nALLOW_LIST=site_title,feedback_banner,cookies,terms_conditions\n```\n\nPut the JSON file you want to translate into the `to-translate` directory. Ensure it is titled `lang.json`.\n\nSet the Node version:\n\n```shell\nnvm use\n```\n\nIf you don't have TypeScript installed:\n\n```shell\nnpm install typescript ts-node --global --save-dev\n```\n\nInstall all dependencies:\n\n```shell\nnpm i \n```\n\nTo run:\n\n```shell\nnpm run translate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Frsp-translation-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvsa%2Frsp-translation-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Frsp-translation-service/lists"}