helgatheviking / gp-language-pack-client
Client integration package for GP Language Packs. Hooks into WordPress updates to pull translations from a custom GlotPress server.
Package info
github.com/helgatheviking/gp-language-pack-client
pkg:composer/helgatheviking/gp-language-pack-client
1.0.1
2026-08-15 17:08 UTC
Requires
- php: >=8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Client integration package for GP Language Pack Server.
This library hooks into WordPress translation update checks and adds language pack updates from a custom GlotPress server.
Requirements
- PHP 8.0+
- WordPress (plugin or theme context)
Install
From your plugin or theme project:
composer require helgatheviking/gp-language-pack-client
Usage
Make sure you require the Composer autoloader in your project:
<?php // Require the Composer autoloader require_once __DIR__ . '/vendor/autoload.php'; use HelgaTheViking\GPLanguagePack\Client; new Client( 'https://your-server.com', // Base URL for GP Language Pack Server 'your-project-slug', // GlotPress project slug/path 'your-textdomain', // Plugin or theme text domain 'plugin' // Optional: plugin|theme (default plugin) );
Notes
- The client only surfaces updates for locales available on the site.
- Responses are cached to reduce remote requests.
- Updates are injected into native WordPress translation update flows.
- To prevent dependency conflicts in the global WordPress environment, it is highly recommended to use Strauss to prefix the library's namespace.