Add support for customize the locale resolver