Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
FeatureRequest: Hide locale select from UI if only one locale is available #968
Kind of a duplicate of #850
Unwanted locale can already be disabled in the config file. See https://learn.userfrosting.com/advanced/i18n#setting-up-the-site-language
I do like the idea of hiding the select if only one locale exist thought. But I'm not sure how complex it would be compare to the benefit of it considering the use of schema and default value...
It kinda is, we already disable all locales bar en_US.
From our point of view its more of a "if the user doesn't need to use it, they don't need to know it exists" sorta thing.
I have started looking at it myself, but using overrides in another sprinkle. Once I started getting into the depths of it I quite quickly realised that actually there was some work needed in the UF default install. In some place the locale is hidden by a role, but others there is no wrap around it at all so there is a bit of inconsistency there already.