{"id":25620767,"url":"https://github.com/codewell/translate","last_synced_at":"2026-06-14T01:34:05.349Z","repository":{"id":42912564,"uuid":"249687911","full_name":"codewell/translate","owner":"codewell","description":"Minimalistic translating function for JavaScript","archived":false,"fork":false,"pushed_at":"2023-01-05T16:59:03.000Z","size":956,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T07:31:50.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/codewell.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":"2020-03-24T11:17:30.000Z","updated_at":"2020-11-14T08:19:06.000Z","dependencies_parsed_at":"2023-02-04T08:02:02.507Z","dependency_job_id":null,"html_url":"https://github.com/codewell/translate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewell/translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftranslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftranslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftranslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftranslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewell","download_url":"https://codeload.github.com/codewell/translate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftranslate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34306772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-02-22T07:28:00.253Z","updated_at":"2026-06-14T01:34:05.328Z","avatar_url":"https://github.com/codewell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @codewell/translate\n\nMinimalistic translating function for JavaScript\n\n## Installation\n\n```\nnpm install @codewell/translate\n```\n\n## Basic Usage\n\n```JavaScript\nimport translate from '@codewell/translate';\n\nconst dictionary = {\n    words: [\n        {\n            translations: [\n                {language: \"foo\", word: \"foo\"},\n                {language: \"bar\", word: \"bar\"},\n            ],\n        },\n    ],\n};\n\n// Set dictionary\nconst translatedWithDictionary = translate(dictionary);\n\n// Set language\nconst toFooLanguage = translatedWithDictionary(\"foo\");\n\n// Translate word in dictionary to language\nconst toFooLanguage(\"bar\"); // =\u003e \"foo\"\n\n// Or\ntranslate(dictionary)(\"foo\")(\"bar\"); // =\u003e \"foo\"\n\n```\n\n## Testing\n\n**Functions**  \nWrite tests in the `tests/` folder\n\n**Package**\n\n1. Make a dry reslease with `npm run dry-release`. This will generate a file `packagename-x.x.x.tgz`.\n2. Install the package in your other application/package by running `npm install path/to/packagename-x.x.x.tgz`.\n3. Import and use as usual in you application/package.\n\n## Releasing\n\n1. Run `npm run release`\n2. Push the code to github\n3. Update package version\n   - `npm version patch` updates `x.x.1` -\u003e `x.x.2`\n   - `npm version minor` updates `x.1.x` -\u003e `x.2.x`\n   - `npm version major` updates `1.x.x` -\u003e `2.x.x`\n4. Run `npm publish --access public`\n\n## Issues\n\nPlease help by posting issues here on github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Ftranslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewell%2Ftranslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Ftranslate/lists"}