© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
Mohammed Alozaibi

Spatie Translatable filament plugin not RTL aware

Hello,
I use Arabic (RTL) an English (LTR) languages.
The package does not change the direction of the form field when chaining to to Arabic (RTL).
I think this is not implement before.

Any suggestion on how to implement this behavior or there is any contribution to upgrade the package to support direction change when language change?

Thank you
Solution
np 🙂
in your resource
add:

use Livewire\Component as Livewire;
use Livewire\Component as Livewire;


on the translatable field

TextInput::make('name')
  ->extraAttributes(function (Livewire $livewire) {
      $dir = ($livewire->getActiveFormsLocale() === 'ar') ? 'rtl' : 'ltr';
      return ['dir' => $dir];
  })
TextInput::make('name')
  ->extraAttributes(function (Livewire $livewire) {
      $dir = ($livewire->getActiveFormsLocale() === 'ar') ? 'rtl' : 'ltr';
      return ['dir' => $dir];
  })
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Spatie Translatable plugin
FilamentFFilament / ❓┊help
3y ago
Filament Spatie Translatable & Filament Spatie Tags
FilamentFFilament / ❓┊help
16mo ago
filament-fabricator with spatie-laravel-translatable-plugin
FilamentFFilament / ❓┊help
16mo ago
Filament Spatie Translatable Plugin for relation model
FilamentFFilament / ❓┊help
3y ago