Hello, I'm trying to make a change of language with my jsp file on my application, I managed to connect the bundle file and insert it where I need it.
<%=bundle.getString("lang.button." + lang)%> and what about js file?
Now I do it inside jsp create
<script type="text/javascript"> var closeBtn = '<%=bundle.getString("close.button." + lang)%>'; var myProfile = '<%=bundle.getString("menu.profile." + lang)%>'; </script> then in the js file itself I connect these variables is there an alternative way?