-
Notifications
You must be signed in to change notification settings - Fork 76
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
allowed locales by country #128
Comments
Hi bonswouar, that's not possible right now. Just write these locales into the config, not worth the hassle really :) |
Okay, that's fine for me, just wanted to be sure I wasn't missing something. :) Though, I'm still not sure I'm using the Bundle properly.. I want the locale to be one of the Belgium one, or if none is matched to be the
|
Hmm I guess that was a cache problem, it works as expected now... So the question would more likely be : how to test this Bundle properly ? ;) |
@lunetics : Also, I'd like to do a custom guesser with Geocoder.. An implementation I'm thinking about would be for example to let the possibility for a guesser to filter the allowedLocales (remove the ones that are not in the country), except if there is only one possibility. What do you think about it ? |
@lunetics I'm not sure this ticket can be handled through configuration only. Next to different environments, I would be forced to introduce a new "country" ENV variable an start loading different configuration files. |
I'm trying to use this bundle to identify a country (Belgium), which has lots of locales (
fr_BE
,wa_BE
,nl_BE
).Instead of having to add all the allowed locales, isn't it possible to add only the country (
BE
) to match all of these ?If I'm not mistaking, with non-strict mode, it works only the other way (
nl
to matchnl_NL
andnl_BE
).The text was updated successfully, but these errors were encountered: