Closed bilogic closed 11 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,
I noticed that text version does not indicate the current language, small issue though. Thanks!
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!
@Jehizkia sorry for the ping. If the flag option is set to false, how can we display the initial letters instead? When I disable the flags all I see now is a black circle.
@rgut13rrez It should not show a black circle; it should show a translation logo like this:
Which version of the package and filament are you running ? Could you please provide a screenshot?
About your question: would you like to display the initial letters in place of where the flag is displayed?
@Jehizkia This is what I am seeing:
I am on 4.0.12
And yes, I would like to display the initial letters where the flag is displayed.
Also, the issue appears to be a background color being set on the div: bg-[#030712]
Thanks
I think I narrowed it down to one thing. I went ahead and added it to my users panel and it was displaying fine, but then I forgot I had not added the required line ('./vendor/kenepa/translation-manager/resources/*/.blade.php',) to the tailwind.config.js file, and when I added it and ran the build the black background was added.
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.