alfasix / alfakit-translation-manager
Let non-developers edit your Laravel app's translations in an AlfaKit panel: a keyboard-driven spreadsheet of keys and locales, placeholder and plural checks, an instant database override layer, safe export to lang files, source code scanning for missing and unused keys, and reviewed AI translations
Package info
github.com/alfasixbh/alfakit-translation-manager
pkg:composer/alfasix/alfakit-translation-manager
Requires
- php: ^8.4
- alfasix/alfakit: ^0.1|@dev
Requires (Dev)
None
Suggests
- laravel/ai: Required for "Translate missing with AI" (^1.2).
Provides
None
Conflicts
None
Replaces
None
README
by Alfa Six
This is a read-only split of the AlfaKit monorepo. Please open issues and pull requests there.
Let the people who write your copy edit your Laravel app's translations in an AlfaKit panel: a keyboard-driven grid of keys by language with search and filters, placeholder, HTML and plural checks, right-to-left inputs, history, an instant (cached) database override layer, safe export to and import from the lang files, code scanning for missing and unused keys, and AI translations that are reviewed before they apply. It renders in React, Vue and Svelte.
Installation
composer require alfasix/alfakit-translation-manager php artisan vendor:publish --tag=alfakit-translation-manager-migrations php artisan migrate
Register
use AlfaSix\AlfakitTranslationManager\TranslationManagerPlugin; $panel->plugin( TranslationManagerPlugin::make() ->editableLocales(['de', 'fr', 'ar']) ->authorize(fn (User $user): bool => $user->is_admin), );
Access is denied unless authorize() or the manageTranslations gate allows it.
Commands
php artisan alfakit-translations:scan --missing --unused php artisan alfakit-translations:export php artisan alfakit-translations:import --overwrite
See the documentation for every option.