Skip to main content

Mini Project: A Multi-language Welcome Page

Learn Mini Project: A Multi-language Welcome Page (Internationalization, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: A Multi-language Welcome Page Problem A site greets users in English, French and Hindi. The language comes from the browser by default, but a visitor can switch with ?lang=fr and the choice must be remembered. Requirements Keep translations in message files, one per language. Pick the language from the Accept-Language header of the browser. Let a lang parameter override it and remember the choice in the session. Fall back to English for unsupported languages. Use message arguments and plural forms. Concepts Used MessageSource (ReloadableResourceBundleMessageSource)...

More lessons in Internationalization