albertkao 12 Junior Poster in Training

I want to implement JavaScript Internationalization.
However, JavaScript does not have the property file mechanism (which is available in Java).
I am thinking of using the Java property file mechanism in Javascript. Is it possible?
I had implemented Java Internationalization with the Spring framework message. e.g.

<spring:message code="menu.administration"/>

How do I use that in Javascript?
All of the following codes had 'code cannot be resolved' parsing error in JSP.

<script type="text/javascript">
  var confirmDeleteStr = '<%= spring:message code="account.confirmDelete" %>';
  var confirmDeleteStr = 'spring:message code="account.confirmDelete"';
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.