bezhanSalleh / filament-language-switch

A versatile and user-friendly plugin designed for Filament Panels.
MIT License
210 stars 45 forks source link

allow panel wise configurations #42

Closed iliyas-inode closed 10 months ago

iliyas-inode commented 1 year ago

With this PR, now this plugin can have different configurations for each panels. by default this will get config values from global config file. However we can override those config panel wise while declaring plugin for each panel.

For example, we can config flag/native/locales for particular panel only using

FilamentLanguageSwitchPlugin::make()
    ->native()
    ->flag()
    ->locales(['en', 'hi', 'ta'])
bezhanSalleh commented 10 months ago

thanks. and check in #57