{"id":23709411,"url":"https://github.com/dragomano/grav-plugin-custom-translate-widget","last_synced_at":"2025-09-23T12:42:45.059Z","repository":{"id":152689270,"uuid":"626117187","full_name":"dragomano/grav-plugin-custom-translate-widget","owner":"dragomano","description":"Custom language switcher for Grav CMS","archived":false,"fork":false,"pushed_at":"2024-03-12T12:24:32.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-15T05:41:05.057Z","etag":null,"topics":["grav","grav-plugin","translate","yandex-translate"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/dragomano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-04-10T20:44:56.000Z","updated_at":"2023-08-23T04:13:29.000Z","dependencies_parsed_at":"2024-03-12T13:55:49.924Z","dependency_job_id":"fd65e413-7950-4ddb-994c-915fdfaa7e5f","html_url":"https://github.com/dragomano/grav-plugin-custom-translate-widget","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dragomano/grav-plugin-custom-translate-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragomano%2Fgrav-plugin-custom-translate-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragomano%2Fgrav-plugin-custom-translate-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragomano%2Fgrav-plugin-custom-translate-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragomano%2Fgrav-plugin-custom-translate-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dragomano","download_url":"https://codeload.github.com/dragomano/grav-plugin-custom-translate-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragomano%2Fgrav-plugin-custom-translate-widget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268296918,"owners_count":24228119,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":["grav","grav-plugin","translate","yandex-translate"],"created_at":"2024-12-30T18:07:27.735Z","updated_at":"2025-09-23T12:42:40.003Z","avatar_url":"https://github.com/dragomano.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Translate Widget for Grav CMS\n\nThe **Custom Translate Widget** is an extension for [Grav CMS](https://github.com/getgrav/grav) that adds a custom language switcher to quickly translate pages on your site using the Yandex.Translator widget.\n\n## Installation\n\nInstalling the Custom Translate Widget plugin can be done in [one of three ways](https://learn.getgrav.org/17/plugins/plugin-install):\n\n* via GPM (Grav Package Manager): `bin/gpm install custom-translate-widget`\n* via a zip file: extract the package into `/your/site/grav/user/plugins` and rename to `custom-translate-widget`\n* via the [Admin Plugin](https://github.com/getgrav/grav-plugin-admin).\n\n## Integration\n\nPaste the following code into one of the files (for example, `partials/base.html.twig`) of the theme you are using before the ending `body` tag.\n\n```twig\n{% if config.plugins['custom-translate-widget'].enabled %}\n    {% include 'partials/custom-translate-widget.html.twig' %}\n{% endif %}\n```\n\n## Configuration\n\nNote that if you use the Admin Plugin, a file with your configuration named `custom-translate-widget.yaml` will be saved in the `user/config/plugins/` folder once the configuration is saved in the Admin.\n\nIn manual mode, before configuring this plugin, you should copy the `user/plugins/custom-translate-widget/custom-translate-widget.yaml` to `user/config/plugins/custom-translate-widget.yaml` and only edit that copy.\n\n```yaml\nenabled: true\nlanguages:\n  - de\n  - el\n  - en\n  - es\n  - nl\n  - sv\n  - tr\n  - hi\n  - it\n  - pt\n  - ru\n  - fr\n  - uk\n  - zh\n  - eo\n  - ar\nauto_translate: false\n```\n\n---\n\nПлагин **Custom Translate Widget** для [Grav CMS](https://github.com/getgrav/grav) добавляет кастомизированный переключатель языков для быстрого перевода страниц вашего сайта с помощью виджета Яндекс.Переводчика.\n\n## Установка\n\nУстановка плагина Custom Translate Widget может быть выполнена [одним из трех способов](https://grav-docs.ru/plugins/plugin-install/):\n\n* через GPM (менеджер пакетов Grav): `bin/gpm install custom-translate-widget`\n* с помощью zip-файла: извлеките содержимое архива в `/your/site/grav/user/plugins`, затем переименуйте в `custom-translate-widget`\n* с помощью [плагина админки](https://github.com/getgrav/grav-plugin-admin).\n\n## Интеграция\n\nВставьте указанный ниже код в один из файлов (например, в `partials/base.html.twig`) используемой вами темы перед завершающим тегом `body`.\n\n```twig\n{% if config.plugins['custom-translate-widget'].enabled %}\n    {% include 'partials/custom-translate-widget.html.twig' %}\n{% endif %}\n```\n\n## Конфигурация\n\nПри сохранении настроек через плагин админки нужный файл с настройками плагина будет создан автоматически.\n\nЕсли же админкой вы не пользуетесь, скопируйте файл `user/plugins/custom-translate-widget/custom-translate-widget.yaml` в `user/config/plugins/custom-translate-widget.yaml` и редактируйте последний.\n\n```yaml\nenabled: true\nlanguages:\n  - de\n  - el\n  - en\n  - es\n  - nl\n  - sv\n  - tr\n  - hi\n  - it\n  - pt\n  - ru\n  - fr\n  - uk\n  - zh\n  - eo\n  - ar\nauto_translate: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragomano%2Fgrav-plugin-custom-translate-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragomano%2Fgrav-plugin-custom-translate-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragomano%2Fgrav-plugin-custom-translate-widget/lists"}