Skip to main content

Dynamic Language Switching

Learn Dynamic Language Switching (Internationalization, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Dynamic language switching lets a user change the language at run time, with no restart or redeploy, usually by clicking a link or a drop-down. How : the link sends ?lang=fr ; LocaleChangeInterceptor calls setLocale on a SessionLocaleResolver or CookieLocaleResolver , and later requests use it. Needs a writable resolver; the default header resolver cannot switch dynamically.

More lessons in Internationalization