Download the PHP package moderntribe/weglot-companion without Composer
On this page you can find all versions of the php package moderntribe/weglot-companion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moderntribe/weglot-companion
More information about moderntribe/weglot-companion
Files in moderntribe/weglot-companion
Package weglot-companion
Short Description Weglot Companion WordPress Plugin
License
Homepage https://github.com/moderntribe/weglot-companion
Informations about the package weglot-companion
Weglot Companion
Provides additional functionality for the Weglot Translate Plugin.
This plugin makes available the following features:
- Translation caching using object caching.
- Better translate filters/interfaces for developer use to translate content manually that Weglot is unable to translate.
Manually translate content that Weglot misses, like HTML returned from an Ajax request.
The Weglot plugin must be installed and activated for this to work, otherwise it will just silently return the original content.
Translate an HTML string
Translate an array of HTML strings
Requirements
- php7.4+
- docker
- docker-compose v2+
- nvm or fnm
- node 16+
- yarn 1.22+
- npm 8.3+
Quick Start First Run
- Install SquareOne Docker (so)
- Run:
nvm use
- Run:
yarn install
- Run:
yarn mix
- Run:
so bootstrap
- Activate your plugin(s) in the WordPress dashboard and start developing!
Pull Requests / Building
Ensure you run nvm use
and yarn prod
and commit the resources/dist
folder before submitting a PR, so the plugin includes the latest front-end production build.
Front end
Front end building is powered by Laravel Mix.
Installation
Usage
Run once: nvm use
and then...
Build for development:
Watch for file changes:
Poll for file changes:
Watch with hot module replacement:
Build for production:
See more options: yarn mix --help
Installing this plugin
Composer
If you're using our SquareOne Framework with Tribe Libs v3.4+ you can likely just create a release and composer require the plugin. However, if this results in composer conflicts that can't be resolved, use the private composer method below.
Private Composer Installer
Every published release automatically creates a weglot-companion.zip
which is a fully built and vendor scoped WordPress plugin, about a minute after the release is published. To manually install, visit a release and download and extract the zip in your WordPress plugins folder.
However, the best way to include the release zip is by using the fantastic ffraenz/private-composer-installer plugin.
Add a custom repository to your project's repository
key in composer.json
:
NOTE: Simply update the version above and run
composer update
to upgrade the plugin in the future.
Then, add the plugin definition to the require section:
Tell composer where to put your WordPress plugins/themes via the extra
section.
NOTE: Adjust the paths based on your project.
You may have to allow this plugin in your config as well:
Finally, install the plugin:
Tests
Automated testing is powered by wp-browser and Codeception.
so test
is a proxy command for the codeception cli.
Run all test suites:
Or, run an individual test suite: unit, integration, functional, webdriver
, e.g.
Or, run with debugging enabled:
Credits
- Based on Spatie Skeleton
License
GNU General Public License GPLv2 (or later). Please see License File for more information.
Modern Tribe
All versions of weglot-companion with dependencies
ext-json Version *
ext-readline Version *
johnbillion/extended-cpts Version ^4.0||^5.0
league/uri Version ^6.5
moderntribe/tribe-libs Version ^3.4.13
spatie/data-transfer-object Version ^2.8