Add support for customize the locale resolver

If you have a custom behavior for handling the internationalization of your page, the default locale resolver is not usefull. With this i can be easy to define a custom behavior.