concept locale calculator in category lift
appears as: locale calculator, locale calculator

This is an excerpt from Manning's book Lift in Action: The Simply Functional Web Framework for Scala.
All requests that hit your Lift application are routed through Liftrules.locale-Calculator, and this is where the parsing and construction of the locale will be done, based on the information contained in the request. This means you could use query parameters, cookies, and other factors to determine what the locale should be. In your Boot class, implement the locale calculator as shown in the following listing.