I have a vuex store in which I have all the translations for the application. Translations are imported from a json file like this:
import en from '@/locales/en-US.json';
const question: Module<State, any> = {
namespaced: true,
state: {
lang: en,
}
}
Content of the JSON looks like this:
{
"layout": {
"sidebar": {
"title": "Test"
}
}
}
But when I access the value of title I get this:
(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Test"])}
Instead of
Test
I'm guessing it might have something to do with webpack configuration but I'm not sure. Any help would be highly appreciated.