Is there a way to utilize the .js file for translations instead of the .json file?
I attempted changing:
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i)
to
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.js$/i)
However, this approach did not yield the desired result. Any suggestions on how to make it work?