title: How to read all values from ResourceBundle into Map/InputStream Spring
body: <p>I have an application that has the i18n feature enabled.
  So I have multiple files </p>
  
  <pre><code>messages.properties
  messages_en.properties
  messages_fr.properties
  </code></pre>
  
  <p>But for my frontend application I need to read all values at once, so they will be cached on the client side.</p>
  
  <p>As a result I need to read all values for specific locale when a request is made.</p>
  
  <p>I have tried <code>MessageSource</code> but it can return only a single entry, but I need to get all values in a form of <code>Map</code> or <code>InputStream</code> so they will be converted into <code>JSON</code> before returning to the clientside.</p>
  
  <p>Please suggest a way I can read all values for a specific Properties bundle for a specific location. </p>
  
  <p>Thanks</p>