Download the PHP package tobimori/kirby-trawl without Composer
On this page you can find all versions of the php package tobimori/kirby-trawl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobimori/kirby-trawl
More information about tobimori/kirby-trawl
Files in tobimori/kirby-trawl
Package kirby-trawl
Short Description Automatic translation extraction for Kirby CMS
License MIT
Informations about the package kirby-trawl
Kirby Trawl
Trawl is an experimental Kirby plugin for extracting translation strings from Kirby templates and content files.
It's made to be combined with an AI localization tool like Lingo.dev to automate the process of translating your blueprints and templates.
You can find an example implementation of Trawl + Lingo using GitHub Actions CI/CD in the Baukasten repository.
Setup Guide
1. Install Kirby CLI
Add composer bin directory to your shell profile:
Verify installation:
2. Install Plugin
3. Configure
Add to your config.php:
These config options serve as defaults for the CLI commands. You can override them with command flags when needed. For example, if sourceLanguage is empty, the extract command will output translation keys without values.
4. Update Language Files
Load translations from JSON files in your language files:
5. Extract Translations
Run the extract command to generate translation files:
6. Add to CI/CD
Add Trawl to your build process to keep translations in sync. Check the Baukasten repository for a complete GitHub Actions example.
Commands
trawl:extract- Extract translation strings to JSON/YAML/PHPtrawl:validate- Check for missing or unused translationstrawl:migrate- Rename translation keys across your codebase (to what's in your source language file)
What Gets Extracted
- Blueprint fields:
label,title,help,placeholder,empty,info,text,description,confirm - Language variables:
*: translation.keyin options - KQL expressions:
{{ t("key") }},{{ tc("key") }},{{ tt("key") }} - PHP functions:
t(),tc(),tt()
License
MIT License Copyright © 2025 Tobias Möritz
All versions of kirby-trawl with dependencies
getkirby/composer-installer Version ^1.2
nikic/php-parser Version ^4.0 || ^5.0