WP Relationships
A relationship API for WordPress entities.
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/26b/wp-relationships/archive/refs/heads/main.zipFrom the readme
Relationships WordPress Plugin
Development
Local environment
The project uses @wordpress/env to run a local WordPress environment. To get started, run the following commands:
The WordPress environment will be available at http://localhost:8890.
I18n
We 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.
Make pots
Before making pots, make sure to build the assets first. To make the pots, run the following command:
To 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.
Upload pots
To upload pots to Localise, run the following command:
To 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