In my vuex store, I store all the translations for my application. These translations are imported from a JSON file in the following manner:
import en from '@/locales/en-US.json';
const question: Module<State, any> = {
namespaced: true,
state: {
lang: en,
}
}
The content of the JSON file looks like this:
{
"layout": {
"sidebar": {
"title": "Test"
}
}
}
However, when I try to access the value of title, instead of getting just "Test
", I receive:
(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["Test"])}
I suspect this issue might be related to my webpack configuration, but I am not certain. Any assistance on this matter would be greatly appreciated.