Search by

helgatheviking / gp-language-pack-client

helgatheviking

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

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-08-15 17:08 UTC

This package is auto-updated.

Last update: 2026-08-15 17:09:17 UTC


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.