Skip to content

Commit cd703a8

Browse files
committed
wip
1 parent c88bd5c commit cd703a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FilamentTranslatablePlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ public function getFlagWidth(): string
115115
/**
116116
* @return array<string>
117117
*/
118-
public function getLocales(): Closure | array | null
118+
public function getLocales(): array | null
119119
{
120-
return $this->locales;
120+
return $this->evaluate($this->locales);
121121
}
122122

123123
public function defaultLocale(string | Closure $locale): static
@@ -127,8 +127,8 @@ public function defaultLocale(string | Closure $locale): static
127127
return $this;
128128
}
129129

130-
public function getDefaultLocale(): string | Closure
130+
public function getDefaultLocale(): string
131131
{
132-
return $this->defaultLocale ?? config('app.fallback_locale', 'en');
132+
return $this->evaluate($this->defaultLocale) ?? config('app.fallback_locale', 'en');
133133
}
134134
}

0 commit comments

Comments
 (0)