0

I need to retrieve all the messages I have in the file messages_en.properties, messages_es.properties, etc. depending of the current locale, but so far I can not find a way to get more than the value of a property.

What I need is nothing more than to return all the translations corresponding to the current locale, so that I can handle the internationalization with Angularjs in the front end.

Thanks in advance,

howlger
  • 31,050
  • 11
  • 59
  • 99
Jerson Peña
  • 159
  • 8
  • Why do you use Spring resources if Spring doesn't need to translate anything, but the frontend does? Why not use a format more suitable for the frontend, like JSON? angular-translate supports JSON out of the box. – JB Nizet Sep 11 '17 at 21:38
  • What happens is that I am working on a SPA with AngularJS and this one already has many things done and all the views are rendered in the front end. I already have everything configured. My only problem is to return all messages corresponding to the messages_CURRENT_LOCALE.properties file. – Jerson Peña Sep 12 '17 at 03:02

0 Answers0