// This trait ->
Filament\Resources\Pages\EditRecord\Concerns\Translatable
// This Method ->
public function save(bool $shouldRedirect = true):void
{
// ... Code
// $this->activeLocale tends to return null if using the default locale
$originalActiveLocale = $this->activeLocale;
// ... Code
// If my active locale = 'en' it's still included
$otherTranslatableLocales = Arr::except($this->getTranslatableLocales(), $originalActiveLocale);
// Replacing this line with the equivalent?! does get me what's expected
$otherTranslatableLocales = array_filter(fn($locale)=>$locale!==$originalActiveLocale, $otherTranslatableLocales);
}
// This trait ->
Filament\Resources\Pages\EditRecord\Concerns\Translatable
// This Method ->
public function save(bool $shouldRedirect = true):void
{
// ... Code
// $this->activeLocale tends to return null if using the default locale
$originalActiveLocale = $this->activeLocale;
// ... Code
// If my active locale = 'en' it's still included
$otherTranslatableLocales = Arr::except($this->getTranslatableLocales(), $originalActiveLocale);
// Replacing this line with the equivalent?! does get me what's expected
$otherTranslatableLocales = array_filter(fn($locale)=>$locale!==$originalActiveLocale, $otherTranslatableLocales);
}