{"id":50895240,"url":"https://github.com/mandrasch/strapi-v4-auto-translate","last_synced_at":"2026-06-15T23:31:34.779Z","repository":{"id":311789753,"uuid":"1044847102","full_name":"mandrasch/strapi-v4-auto-translate","owner":"mandrasch","description":"WIP, demo for question to community","archived":false,"fork":false,"pushed_at":"2025-08-26T15:58:58.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T21:37:43.517Z","etag":null,"topics":["cms","i18n","strapi"],"latest_commit_sha":null,"homepage":"","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/mandrasch.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,"zenodo":null}},"created_at":"2025-08-26T09:45:24.000Z","updated_at":"2025-08-26T15:59:02.000Z","dependencies_parsed_at":"2025-08-26T21:53:03.088Z","dependency_job_id":null,"html_url":"https://github.com/mandrasch/strapi-v4-auto-translate","commit_stats":null,"previous_names":["mandrasch/strapi-v4-auto-translate"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mandrasch/strapi-v4-auto-translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrasch%2Fstrapi-v4-auto-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrasch%2Fstrapi-v4-auto-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrasch%2Fstrapi-v4-auto-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrasch%2Fstrapi-v4-auto-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandrasch","download_url":"https://codeload.github.com/mandrasch/strapi-v4-auto-translate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrasch%2Fstrapi-v4-auto-translate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34385031,"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-15T02:00:07.085Z","response_time":63,"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":["cms","i18n","strapi"],"created_at":"2026-06-15T23:31:34.682Z","updated_at":"2026-06-15T23:31:34.772Z","avatar_url":"https://github.com/mandrasch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Goal\n\n1. Editors create/update english content\n2. Auto-translate (updated!) fields to other languages via deepl automatically\n\nTrying to use \n\n- https://www.npmjs.com/package/strapi-plugin-translate\n- https://www.npmjs.com/package/strapi-provider-translate-deepl\n\n### Current state\n\nTrying to use service of strapi plugin auto translate in lifecycle.\n\n**Current problem: create works, but update does not.**\n\n```js\n  for (const targetLocale of targetLocales) {\n  console.log(`\\n🔄 Starting translation for ${targetLocale}...`);\n\n  const batchResult = await translateService.batchTranslate({\n    sourceLocale: 'en',\n    targetLocale: targetLocale,\n    contentType: contentTypeUid,\n    entityIds: [result.id],\n    autoPublish: true\n  });\n```\nPrimary discussion: https://github.com/Fekide/strapi-plugin-translate/discussions/528\n\nSee as well:\n\n- https://github.com/Fekide/strapi-plugin-translate/issues/284\n- https://github.com/Fekide/strapi-plugin-translate/discussions/283\n\n## Old state - lifecycle manual try (not working)\n\nSee https://github.com/mandrasch/strapi-v4-auto-translate/tree/try-v1\n\n## Local Setup\n\nLocal development playground for Strapi v4 with MySQL.\n\n1. `cp .env.example .env`\n2. `docker compose build`\n3. `docker compose up`\n4. Import db dump:\n\nImport database dump: \n\n```bash\ndocker compose exec -T strapiDB sh -c \\\n  'mysql -u root -p\"$MYSQL_ROOT_PASSWORD\" strapi' \u003c dump.sql.gz\n```\n\n5. Login to http://localhost:1337/admin/ \n\nUser: `admin@example.com`, pw: `Password1!`\n\n6. In future, not yet: Add deepl API keys to `.env`\n\n## Usage\n\n### Export database dump: \n\n```bash\ndocker compose exec strapiDB sh -c \\\n  'mysqldump -u root -p\"$MYSQL_ROOT_PASSWORD\" strapi' \u003e dump.sql.gz\n```\n\n### Restore a database dump:\n\n```bash\ndocker compose exec -T strapiDB sh -c \\\n  'mysql -u root -p\"$MYSQL_ROOT_PASSWORD\" strapi' \u003c dump.sql.gz\n```\n\n### Install plugins via:\n\n1. Update `package.json` with new package, e.g. `npm install strapi-plugin-translate` locally\n2. restart with CRTL+c / `docker compose down` and \n\n```bash\n# (runs `npm i` in Dockerfile)\ndocker compose up --build\n\n# or\ndocker compose build\ndocker compose up\n```\n\nTODO: Better approach, do it with `docker compose exex strapi ...`, but mount can't be only for package.json?!\n\n## How was this created?\n\nSee base repository template for all details.\n\nSteps for this repo:\n\n- `npm install strapi-plugin-translate`\n- add config to `config/plugins.js` \n- `npm i strapi-provider-translate-deepl`\n- rebuild \u0026 restart `docker compose up --build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrasch%2Fstrapi-v4-auto-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandrasch%2Fstrapi-v4-auto-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrasch%2Fstrapi-v4-auto-translate/lists"}