Labels in different languages based on user parameter

How to show label values in different language based on a paramater given by user and not by locale. 

For example i have a report and all the labels are in english.

I want to have the same report in 4 other languages so that when a user runs the report and selects a parameter (for example the value of the parameter could be 'el' for Greek, 'en' for English, 'de' for German and so on, the report will run with the labels of this language. 

This is similar to localization but i want the report to run in the language based on parameter given by the user and not based on which country the report will run.

simoskets's picture
Joined: May 17 2021 - 7:38am
Last seen: 4 months 15 hours ago

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit for direct access to our technical support teams offering guaranteed response times.

arai_4 - 4 months 3 weeks ago

1 Answer:

Hello Simos,

Great question, the way I would approach this requirement is to create all resource bundles for the languages for the report and create a parameter that takes from the user and passes that back to the report locale and return the report output with that locale. I am in the process of testing this myself. I hope this helps

Thank you


JRS-SE's picture
Joined: Oct 30 2017 - 12:56pm
Last seen: 6 days 6 hours ago