Closed mrvnklm closed 1 month ago
- wrong locales showing up and mine are missing on empty entries
I had this same issue. Turns out the FilamentTranslationComponent
that powers the editing has its own config file, and changing it there worked for me. So you need the locals
array in both:
config/filament-translations.php
config/filament-translation-component.php
Short term, I think an update to the installation / config steps would be helpful here. I get why they're separate (so you can use the component without the main plugin), but long-term it would be nice to be able to specify a list of locales once and have both parts reference it.
hi, @dave-mills @mrvnklm I will try to make it 1 config on the translation component or main package to make it more easy.
it's fine now you can check the last version.
I am still getting Undefined array key "ar"
when I remove ar from locals like
'locals' => [
'de' => [
'label' => 'German',
'flag' => 'de',
],
'en' => [
'label' => 'English',
'flag' => 'us',
],
],
There should be a fallback when the key is not found instead of an exception
Since updating the package I have the following issues:
wrong locales showing up and mine are missing on empty entries
array key should not be resolved from config as the entry might not exist
adding them temporary does not resolve key properly even though it works in list view
my locals settings: