Spring provides us a flexible way to hook up internationalization in our framework/application at any time. It can be hook up in spring while loading the context.
Spring provides us two kinds of locale resolvers. Session based and Cookies based.
Session Based stores locale changes in session.
Cookie based stores locale changes in cookies.
You can choose any resolver of your choice and can register it as interceptor while loading the context.