-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureRequest: Hide locale select from UI if only one locale is available #968
Comments
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. |
The admin UI controller has a |
That's what I was thinking. I'll have to pull a new dev copy down and submit a PR if I get half a chance to look at it again. |
Merged in hotfix for 4.2.1 release. |
It would be handy if the locale select/display could be removed via a setting or if the system could detect when there is only 1 locale available and default to hiding the option to change it etc in that instance.
The text was updated successfully, but these errors were encountered: