-
Notifications
You must be signed in to change notification settings - Fork 63
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
Allows binding of custom LocaleProviders #67
base: master
Are you sure you want to change the base?
Conversation
The new LocaleProvider can be bound to a custom implementation that does not necessarily use the browser locale. This is useful if the Locale should be mapped to a specific value for a custom domain name for example.
The new LocaleProvider can be bound to a custom implementation that does not necessarily use the browser locale. This is useful if the Locale should be mapped to a specific value for a custom domain name for example.
… localeProvider Conflicts: sitebricks/src/main/java/com/google/sitebricks/SitebricksModule.java sitebricks/src/main/java/com/google/sitebricks/locale/LocaleProvider.java sitebricks/src/main/java/com/google/sitebricks/locale/LocaleProviderImpl.java
Dhanji R. Prasanna » sitebricks #185 UNSTABLE |
Exchanged the HttpServletRequest with the new LocaleProvider.
Dhanji R. Prasanna » sitebricks #186 SUCCESS |
Is there any progress on this? Some feedback would be really cool. Thank you! |
Dhanji R. Prasanna » sitebricks #194 SUCCESS |
Dhanji R. Prasanna » sitebricks #195 SUCCESS |
Dhanji R. Prasanna » sitebricks #196 SUCCESS |
Extends the current implementation to allow bindings of custom LocaleProviders that may behave differently and not rely (entirely) on the locale provided from the browser. A use case could be to disable some languages for custom domains.
For this to work one has only to override the SitebricksModule#bindLocaleProvider() method with a custom binding.