What happened?
Hi everyone, great plugin this one !
Can anyone help with an issue i am having with integration with Filament-Language-Switch by Bezhan Salleh ?
Checks:
- New panel has been created for knowledge-base
- New theme has been created as per instructions
- Knowledge-Base Panel renders fine
- docs structure is with nested folders (one per locale string ie (en, de, gr))
I have checked that the knowledge-base panel is correctly iterated by the Lang-Switch reorderCurrentPanelMiddlewareStack() in file vendor\bezhansalleh\filament-language-switch\src\FilamentLanguageSwitchServiceProvider.php where the Lang-Switch is injected as a middleware just before the DispatchServingFilamentEvent::class of the knowledge-base panel providers.
Anyone has some tried this integration out successfully?
How to reproduce the bug
Standard laravel installation with filamentphp v3 and the Language Switch plugin by Bezhan Salleh and Knowledge Base plugin.
When i manually set the lang (FlatFileDocumentation.php) it correctly fetches the translated documents and it works great either when browsing files in panel/modal/slider modes.
public function getRows() {
...
$path = base_path(
str(config('filament-knowledge-base.docs-path'))
->append('/')
->append('gr')//$this->getLocale())
);
...
Package Version
1.11.1
PHP Version
8.3.15
Laravel Version
11.36.1
Which operating systems does with happen with?
Windows
Notes
No response
What happened?
Hi everyone, great plugin this one !
Can anyone help with an issue i am having with integration with Filament-Language-Switch by Bezhan Salleh ?
Checks:
I have checked that the knowledge-base panel is correctly iterated by the Lang-Switch reorderCurrentPanelMiddlewareStack() in file vendor\bezhansalleh\filament-language-switch\src\FilamentLanguageSwitchServiceProvider.php where the Lang-Switch is injected as a middleware just before the DispatchServingFilamentEvent::class of the knowledge-base panel providers.
Anyone has some tried this integration out successfully?
How to reproduce the bug
Standard laravel installation with filamentphp v3 and the Language Switch plugin by Bezhan Salleh and Knowledge Base plugin.
When i manually set the lang (FlatFileDocumentation.php) it correctly fetches the translated documents and it works great either when browsing files in panel/modal/slider modes.
Package Version
1.11.1
PHP Version
8.3.15
Laravel Version
11.36.1
Which operating systems does with happen with?
Windows
Notes
No response