{"id":22354409,"url":"https://github.com/andre-araujo/aws-translate-json","last_synced_at":"2025-07-30T09:31:12.434Z","repository":{"id":57188451,"uuid":"183475081","full_name":"andre-araujo/aws-translate-json","owner":"andre-araujo","description":"Translate object values into other languages using the AWS translate API","archived":false,"fork":false,"pushed_at":"2019-04-27T10:38:42.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T16:49:32.049Z","etag":null,"topics":["aws","aws-sdk","aws-translate","js","json","json-parser","object","translation"],"latest_commit_sha":null,"homepage":"","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/andre-araujo.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}},"created_at":"2019-04-25T16:51:33.000Z","updated_at":"2023-03-18T23:28:42.000Z","dependencies_parsed_at":"2022-08-28T11:11:51.754Z","dependency_job_id":null,"html_url":"https://github.com/andre-araujo/aws-translate-json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-araujo%2Faws-translate-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-araujo%2Faws-translate-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-araujo%2Faws-translate-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre-araujo%2Faws-translate-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andre-araujo","download_url":"https://codeload.github.com/andre-araujo/aws-translate-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228114865,"owners_count":17871742,"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":["aws","aws-sdk","aws-translate","js","json","json-parser","object","translation"],"created_at":"2024-12-04T13:12:49.484Z","updated_at":"2024-12-04T13:12:50.166Z","avatar_url":"https://github.com/andre-araujo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Translate JSON\n\nTranslate object values into other languages using the AWS translate API\n\n## Install as a npm package\n\n- `npm install aws-translate-json`\n\n## Usage\n\n### Create an AWS account (Skip this step if you already have one):\n\n- Create an account [here](https://aws.amazon.com).\n\n*There is a free tier to use the translation API that you can check [here](https://aws.amazon.com/pt/translate/pricing/).*\n\n### Create an IAM account with AWS Translation permissions only (Recommended):\n\n- Login on AWS console and navigate to [IAM panel](https://console.aws.amazon.com/iam/home)\n- Click on `Users` tab\n- Click on `Add User` button\n- Follow the steps and add a `User` with access to the Translation API only\n- Store the `access key` and the `secret` in a secure place\n\n### Usage example:\n\n```javascript\nconst { AWSTranslateJSON } = require('aws-translate-json');\n\nconst awsConfig = {\n    accessKeyId: process.env.AWS_TRANSLATE_ID,\n    secretAccessKey: process.env.AWS_TRANSLATE_SECRET,\n    region: process.env.AWS_TRANSLATE_REGION,\n}\n\nconst source = \"en\";\nconst taget = [\"pt\", \"it\", \"es\"];\n\nconst { translateJSON } = new AWSTranslateJSON(awsConfig, source, taget);\n\ntranslateJSON({\n    key1: \"my text here\",\n    key2: \"other text\",\n    key3: {\n        key4: \"nested text\"\n    }\n}).then(console.log);\n\n/* OUTPUT:\n    {\n        pt: {\n            key1: 'meu texto aqui',\n            key2: 'outro texto',\n            key3: {\n                key4: 'texto aninhado'\n            }\n        },\n        it: {\n            key1: 'il mio testo qui',\n            key2: 'altro testo',\n            key3: {\n                key4: 'testo nidificato'\n            }\n        },\n        es: {\n            key1: 'mi texto aquí',\n            key2: 'otro texto',\n            key3: {\n                key4: 'texto anidado'\n            }\n        }\n    }\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre-araujo%2Faws-translate-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandre-araujo%2Faws-translate-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre-araujo%2Faws-translate-json/lists"}