I have a translations file at:
frontend/locales/en/translations.js
which looks like:
export default {
back: "Back",
or: "Or",
cancel: "Cancel",
};
I want to move the translations hash into a .json file:
frontend/locales/en/translations.json
and somehow include it in the .js file.
What's the best way to do this?