translatable-pro

Translatable Pro is a premium package, get your license here

Configuration

Publish the configuration file:

1php artisan vendor:publish --tag=zeus-translatable-pro-config

The published config looks like this:

1return [
2 'languages' => [
3 ['name' => 'English', 'code' => 'en'],
4 ],
5 
6 'lang_switcher' => [
7 'enabled' => true,
8 ],
9 
10 'auto_phraseable' => true,
11 
12 'models' => [
13 'Phrase' => \LaraZeus\TranslatablePro\Models\Phrase::class,
14 ],
15 
16 'fallback_lang' => 'en',
17 
18 'register_phrase_resource' => true,
19 
20 'ai_provider' => 'gemini',
21 
22 'ai_model' => 'gemini-3.5-flash',
23 
24 'ai_agent_notes' => null,
25];

Options

Key Description
languages Locales available in forms, the locale switcher, and AI bulk translation. Each entry needs name and code.
lang_switcher.enabled Show the frontend locale switcher hook.
auto_phraseable Automatically apply phraseSearchable, phraseSortable, and lazy-loading behavior to Filament tables. Set to false for manual control.
models.Phrase Eloquent model class used for the phrases table. Override when using a custom phrases model.
fallback_lang Default source language when resolving phrases for AI translation or missing values.
register_phrase_resource Register the Filament Phrases resource (includes AI translation actions). Set to false to hide it.
ai_provider AI provider passed to the translation agent. Must match a provider configured in the Laravel AI SDK.
ai_model AI model passed to the translation agent. Must be supported by your configured provider. See AI Translation for setup.
ai_agent_notes Optional extra instructions appended to the translation agent prompt. Use this for project-specific terminology, tone, or domain context. Leave as null to use the default prompt only.

Our Sponsors

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.