{"id":20134345,"url":"https://github.com/wearerequired/traduttore-registry","last_synced_at":"2025-04-09T17:15:41.314Z","repository":{"id":32601285,"uuid":"120528594","full_name":"wearerequired/traduttore-registry","owner":"wearerequired","description":"Allows loading translation files from a custom GlotPress site running Traduttore","archived":false,"fork":false,"pushed_at":"2023-01-06T03:00:57.000Z","size":94,"stargazers_count":13,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T17:15:31.125Z","etag":null,"topics":["glotpress","package","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wearerequired.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}},"created_at":"2018-02-06T22:01:01.000Z","updated_at":"2023-08-31T02:58:34.000Z","dependencies_parsed_at":"2023-01-14T21:42:10.805Z","dependency_job_id":null,"html_url":"https://github.com/wearerequired/traduttore-registry","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Ftraduttore-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Ftraduttore-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Ftraduttore-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Ftraduttore-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wearerequired","download_url":"https://codeload.github.com/wearerequired/traduttore-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074922,"owners_count":21043490,"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":["glotpress","package","wordpress"],"created_at":"2024-11-13T21:09:13.949Z","updated_at":"2025-04-09T17:15:41.294Z","avatar_url":"https://github.com/wearerequired.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traduttore Registry\n\n\n![PHPUnit](https://github.com/wearerequired/traduttore-registry/workflows/PHPUnit/badge.svg)\n![Lint](https://github.com/wearerequired/traduttore-registry/workflows/Lint/badge.svg)\n[![codecov](https://codecov.io/gh/wearerequired/traduttore-registry/branch/master/graph/badge.svg)](https://codecov.io/gh/wearerequired/traduttore-registry)\n[![Latest Stable Version](https://poser.pugx.org/wearerequired/traduttore-registry/v/stable)](https://packagist.org/packages/wearerequired/traduttore-registry)\n[![Latest Unstable Version](https://poser.pugx.org/wearerequired/traduttore-registry/v/unstable)](https://packagist.org/packages/wearerequired/traduttore-registry)\n\nAllows loading translation files from a custom GlotPress site running [Traduttore](https://github.com/wearerequired/traduttore).\n\n## Installation\n\nIf you're using [Composer](https://getcomposer.org/) to manage dependencies, you can use the following command to add the plugin to your site:\n\n```bash\ncomposer require wearerequired/traduttore-registry\n```\n\nAfter that, you can use `\\Required\\Traduttore_Registry\\add_project( $type, $slug, $api_url )` in your theme or plugin.\n\n*Parameters:*\n\n* `$type`: either `plugin` or `theme`.\n* `$slug`: must match the theme/plugin directory slug.\n* `$api_url`: the URL to the Traduttore project translation API.\n\n*Note:* On a multisite install it's recommended to use it in a must-use plugin.\n\n## Usage\n\nHere's an example of how you can use that function:\n\n```php\n\\Required\\Traduttore_Registry\\add_project(\n\t'plugin',\n\t'example-plugin',\n\t'https://translate.example.com/api/translations/acme/acme-plugin/'\n);\n\n\\Required\\Traduttore_Registry\\add_project(\n\t'theme',\n\t'example-theme',\n\t'https://translate.example.com/api/translations/acme/acme-theme/'\n);\n```\n\n\u003cbr\u003e\n\n[![a required open source product - let's get in touch](https://media.required.com/images/open-source-banner.png)](https://required.com/en/lets-get-in-touch/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearerequired%2Ftraduttore-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwearerequired%2Ftraduttore-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearerequired%2Ftraduttore-registry/lists"}