{"id":26731958,"url":"https://github.com/26b/wp-relationships","last_synced_at":"2025-08-18T13:18:40.542Z","repository":{"id":283563267,"uuid":"952093676","full_name":"26B/wp-relationships","owner":"26B","description":"A relationship API for WordPress entities.","archived":false,"fork":false,"pushed_at":"2025-03-20T21:40:36.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T05:43:09.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/26B.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":"2025-03-20T18:10:27.000Z","updated_at":"2025-03-20T21:40:40.000Z","dependencies_parsed_at":"2025-03-20T22:43:07.631Z","dependency_job_id":null,"html_url":"https://github.com/26B/wp-relationships","commit_stats":null,"previous_names":["26b/wp-relationships"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/26B/wp-relationships","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26B%2Fwp-relationships","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26B%2Fwp-relationships/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26B%2Fwp-relationships/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26B%2Fwp-relationships/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/26B","download_url":"https://codeload.github.com/26B/wp-relationships/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/26B%2Fwp-relationships/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270998264,"owners_count":24682214,"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-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2025-03-28T00:49:02.920Z","updated_at":"2025-08-18T13:18:40.521Z","avatar_url":"https://github.com/26B.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Relationships WordPress Plugin\n\n## Development\n\n### Local environment\n\nThe project uses [`@wordpress/env`](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env) to run a local WordPress environment. To get started, run the following commands:\n\n```bash\nnpm install\nnpm run wp-env:start\nnpm run wp:rewrite\nnpm run composer install\n```\n\nThe WordPress environment will be available at `http://localhost:8890`.\n\n### I18n\n\nWe use i18n-midoru to make pots, uploads pots and download translations from Localise. It has one relevant file for configuration `i18n-midoru.json` in the root. This file has a list of projects, indexed by their name and with configurations for making pots, uploading pots and downloading translations. A generated file `i18n-midoru.lock` can also be found in the root after downloading translations. This file is used to poll Localise for new changes when trying to download translations again.\n\n#### Make pots\n\nBefore making pots, make sure to build the assets first. To make the pots, run the following command:\n\n```bash\ncomposer run-script make-pots\n```\n\nTo make pots for a specific project, add the name of the project (key string in the i18n-midoru.json) as an argument to the command.\n\n#### Upload pots\n\nTo upload pots to Localise, run the following command:\n\n```bash\ncomposer run-script upload-pots\n```\n\nTo upload pots for a specific project, add the name of the project (key string in the i18n-midoru.json) as an argument to the command.\n\n#### Download translations\n\nTo download translations from Localise, run the following command:\n\n```bash\ncomposer run-script download-translations\n```\n\nTo download translations for a specific project, add the name of the project (key string in the i18n-midoru.json) as an argument to the command.\n\n#### New projects\n\nReplace 'wp-relationships' to the new domain string in the `i18n-midoru.json` file.\n\nAdd new projects to `i18n-midoru.json` if needed.\n\nSet/replace the environment variables `LOCALISE_{project_name}` for every project with the full access keys from Localise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F26b%2Fwp-relationships","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F26b%2Fwp-relationships","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F26b%2Fwp-relationships/lists"}