kenepa / translation-manager

Manage your application's translations in Filament.
MIT License
86 stars 27 forks source link

Text instead of flag for language switcher #33

Closed bilogic closed 10 months ago

bilogic commented 10 months ago

Is there an option use only text for the language switcher? Flags are not entirely representative and it can also refer to currencies on some websites, leading to confusion.

Jehizkia commented 10 months ago

In the config/translation-manager.php, you'll need to set the option 'show_flags' to false to disable the flags.


/*
    |--------------------------------------------------------------------------
    | Flags or Initials
    |--------------------------------------------------------------------------
    |
    | Control whether to express locales using international flags, or through locale initial letters if disabled in the language switcher.
    |
    */

    'show_flags' => false,
bilogic commented 10 months ago

I noticed that text version does not indicate the current language, small issue though. Thanks!

cawecoy commented 10 months ago

Also, I need to define custom text for each language, in my case it would be: EN, PL, CZ, etc. Thanks for the awesome work in this plugin!