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;


on the translatable field

TextInput::make('name')
  ->extraAttributes(function (Livewire $livewire) {
      $dir = ($livewire->getActiveFormsLocale() === 'ar') ? 'rtl' : 'ltr';
      return ['dir' => $dir];
  })
Was this page helpful?