{"id":21802074,"url":"https://github.com/php-translation/loco-adapter","last_synced_at":"2025-04-07T10:29:27.464Z","repository":{"id":43835643,"uuid":"76490779","full_name":"php-translation/loco-adapter","owner":"php-translation","description":"Adapter for Localise.biz","archived":false,"fork":false,"pushed_at":"2024-01-10T10:50:05.000Z","size":65,"stargazers_count":25,"open_issues_count":8,"forks_count":36,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T09:04:55.150Z","etag":null,"topics":[],"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/php-translation.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,"publiccode":null,"codemeta":null}},"created_at":"2016-12-14T19:34:25.000Z","updated_at":"2024-03-25T12:00:56.000Z","dependencies_parsed_at":"2024-06-18T15:26:48.216Z","dependency_job_id":null,"html_url":"https://github.com/php-translation/loco-adapter","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Floco-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Floco-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Floco-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Floco-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-translation","download_url":"https://codeload.github.com/php-translation/loco-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247635186,"owners_count":20970692,"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-27T11:22:36.190Z","updated_at":"2025-04-07T10:29:27.433Z","avatar_url":"https://github.com/php-translation.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adapter for Loco\n\n[![Latest Version](https://img.shields.io/github/release/php-translation/loco-adapter.svg?style=flat-square)](https://github.com/php-translation/loco-adapter/releases)\n[![Total Downloads](https://img.shields.io/packagist/dt/php-translation/loco-adapter.svg?style=flat-square)](https://packagist.org/packages/php-translation/loco-adapter)\n\nThis is an PHP-translation adapter for Loco ([Localise.biz](https://localise.biz/)).\n\n### Install\n\n```bash\ncomposer require php-translation/loco-adapter\n```\n\n##### Symfony bundle\n\nIf you want to use the Symfony bundle you may activate it in kernel:\n```php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Translation\\PlatformAdapter\\Loco\\Bridge\\Symfony\\TranslationAdapterLocoBundle(),\n    );\n}\n```\n\nIf you have one Loco project per domain you may configure the bundle like this:\n```yaml\n# /app/config/config.yml\ntranslation_adapter_loco:\n  index_parameter: 'id' # 'text' or 'name'. Leave blank for \"auto\"  See https://localise.biz/api/docs/export/exportlocale\n  projects:\n    messages:\n      api_key: 'foobar'\n    navigation:\n      api_key: 'bazbar'\n      status: '!untranslated,!rejected' # if you want filter on loco translations statuses. By default only 'translated' translations are pulled.\n```\n\nIf you just doing one project and have tags for all your translation domains you may use this configuration:\n```yaml\n# /app/config/config.yml\ntranslation_adapter_loco:\n  index_parameter: 'id' # 'text' or 'name'. Leave blank for \"auto\"  See https://localise.biz/api/docs/export/exportlocale\n  projects:\n    acme:\n      api_key: 'foobar'\n      domains: ['messages', 'navigation']\n```\n\nThis will produce a service named `php_translation.adapter.loco` that could be used in the configuration for\nthe [Translation Bundle](https://github.com/php-translation/symfony-bundle).\n\nIf you need to override the [HTTPlug client](http://docs.php-http.org/en/latest/integrations/symfony-bundle.html#configure-clients):\n```yaml\n# /app/config/config.yml\ntranslation_adapter_loco:\n  httplug_client: httplug.client.loco\n  # You can even customize the message and uri factory\n  # httplug_message_factory: null\n  # httplug_uri_factory: null\n\nhttplug:\n  clients:\n    loco:\n      factory: 'httplug.factory.guzzle6'\n      plugins:\n        - httplug.plugin.content_length\n        - httplug.plugin.logger\n      config:\n        timeout: 2\n```\nBy default it will use the discovery feature of HTTPlug.\n\n### Documentation\n\nRead our documentation at [http://php-translation.readthedocs.io](http://php-translation.readthedocs.io/en/latest/).\n\n### Contribute\n\nDo you want to make a change? Pull requests are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-translation%2Floco-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-translation%2Floco-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-translation%2Floco-adapter/lists"}