Sometimes, applications or websites we build need to support multiple languages. Lift supports this requirement by allowing us to localize templates, and offers a powerful yet simple way to choose which template to use when rendering the page.
In this recipe, we'll learn how to localize templates and texts that will be loaded dynamically for our applications or websites.
resources.propertiesfile will have the following content:
menu.home=Home menu.static=Static dynamic.text=Some dynamic text welcome.text= Welcome to your ...