bezhanSalleh / filament-language-switch

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

allow panel wise configuration #40

Closed iliyas-inode closed 1 year 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 show flag for particular panel only using

FilamentLanguageSwitchPlugin::make()
    ->native()
    ->flag()
    ->locales(['en', 'hi', 'ta'])