{"id":21911697,"url":"https://github.com/stepicorg/stepik-translation-microservice","last_synced_at":"2026-05-13T05:35:14.156Z","repository":{"id":142906032,"uuid":"96122803","full_name":"StepicOrg/stepik-translation-microservice","owner":"StepicOrg","description":"Microservice with API for translating step texts and materials","archived":false,"fork":false,"pushed_at":"2018-11-13T15:30:02.000Z","size":1172,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-27T08:31:36.296Z","etag":null,"topics":[],"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/StepicOrg.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":"2017-07-03T15:01:56.000Z","updated_at":"2020-01-24T19:47:08.000Z","dependencies_parsed_at":"2023-04-12T07:16:35.932Z","dependency_job_id":null,"html_url":"https://github.com/StepicOrg/stepik-translation-microservice","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/StepicOrg%2Fstepik-translation-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fstepik-translation-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fstepik-translation-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepicOrg%2Fstepik-translation-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StepicOrg","download_url":"https://codeload.github.com/StepicOrg/stepik-translation-microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244929388,"owners_count":20533760,"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-11-28T18:07:19.630Z","updated_at":"2026-05-13T05:35:14.117Z","avatar_url":"https://github.com/StepicOrg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stepik Translation Microservice\nThis microservice provides API functionality to create translations of [stepik.org](stepik.org) step materials, like steps-source and texts.\nAPI endpoints are listed on TODO.\n\nYou can find comparison of translation service API on this page: TODO. \u003cbr\u003e\n**TL;DR**: Azure with Yandex have slightly better translation than Google. It was tested on language pair: ru -\u003e en.\n\n## Starting Development\n\n**Setup your Docker environment**\n\nThis project uses docker infrastructure. Make sure that you installed:\n\n1. `docker`\n2. `docker-compose` version 1.13.0 or higher\n3. `docker-machine` only for macOS or Windows\n\nAfter installing all programs I describe process of setuping service on Ubuntu 16.04. If you are using macOS or Windows, please follow [instructions](https://docs.docker.com/machine/get-started/). On Ubuntu you should run only two commands:\n```\n# Enable docker to start on boot\n$ sudo systemctl enable docker\n\n# Start docker right now\n$ sudo systemctl start docker\n```\n\n**Setup your .env file**\n\nCreate file .env in the web/translation_microservice folder with params below. \n```\nDEBUG=False # set True only on localhost\nSECRET_KEY=... # generate https://www.miniwebtool.com/django-secret-key-generator/\nPOSTGRES_DB=translation  # you can choose any\nPOSTGRES_USER=pasha  # you can choose any\nPOSTGRES_PASSWORD=abacaba # you can choose any\nPOSTGRES_ADDRESS=postgres\nYANDEX_API_KEY=... # go to https://tech.yandex.com/translate/\nSTEPIK_CLIENT_ID=... # can get both values here https://stepik.org/oauth2/applications/ \nSTEPIK_CLIENT_SECRET=... \n```\n\n**Run the project**\n- Run `docker-compose build` and then `docker-compose up` to build and start the project's containers.  If you would like to run them in the background (without logs visible), run `docker-compose up -d`\n- To remove all containers, run `docker-compose down`.\n\n**Additional commands**\n\nUnfortunately after starting `docker-compose` we have to run following commands. Open separate terminal window, write\n`$ docker-compose run --rm web python manage.py shell` and type:\n```\n\u003e\u003e\u003e from api_controller.models import ApiController\n\u003e\u003e\u003e from translation.models import TranslationService\n\u003e\u003e\u003e ApiController.objects.create()\n\u003e\u003e\u003e yandex = TranslationService.objects.create(service_name=\"yandex\", api_version=1.5, base_url=\"https://translate.yandex.net/api/v1.5/tr.json/translate\")\n```\nOne more command to run for correct admin pages displaying: `$ docker-compose run --rm web python manage.py collectstatic --no-input`\n\n## Admin access\nIf you want to help Stepik with materials translation or gain admin access for this microservice, please write email on maxim.averin@stepik.org.\n\n## TODO\n\n* make a link to swagger\n* move additional commands info Dockerfile\n* post a link with comparison table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepicorg%2Fstepik-translation-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepicorg%2Fstepik-translation-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepicorg%2Fstepik-translation-microservice/lists"}