-
-
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
Config can't remove unwanted available locales #672
Comments
As a short-term solution, what if So then you could do:
Then you could call |
I guess it could work. Any reason it couldn't be done in normal |
I mean, we could always do an |
Update settings-profile.html.twig Temp fix for #672
See #682 for a temp fix. |
The more general problem here is the ability for a schema/config/whatever file loaded in a later Sprinkle, to remove (rather than simply overwrite) content from a previously loaded Sprinkle. The question is, do we want to have something in the syntax of the files themselves that can do this? Otherwise, I think my |
I'm going to close this because it's technically been fixed with the The broader discussion about the correct way to store and load locale metadata can be continued in this issue: userfrosting/i18n#4 |
Setting the available locale in a sprinkle config file to remove the unwanted locale won't work. This only replace the locale displayed name.
To solve this issue, available locale should only be an array of locale code (
'available' => ['fr_FR', 'en_US']
) and the locale name should be define elsewhere (locale metadata for example).(Related to #671)
The text was updated successfully, but these errors were encountered: