Fetch translations from locales directory JSON file

Hi,

I would basically like to know if it is, in any way, possible to dynamically retrieve translations from JSON files located in the locales directory. Ideally something like using fetch(‘/sv.json’)… in our JavaScript code or calling any of the APIs to retrieve a specific translation. Is this possible, & if so, how?

I have searched through the documentation, but have been unsuccessful thus far. Any input is much appreciated!

Regards,
Christian.

1 Like