Fix locale loading and dev server
Some checks failed
Deploy / deploy-frontend (push) Has been cancelled
Deploy / deploy-backend (push) Has been cancelled

This commit is contained in:
Matt Isenhower
2026-08-30 20:53:56 -07:00
parent 37db282b64
commit 0ce45ba5da
3 changed files with 5 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import shiftyStations from '@/common/data/shiftyStations.json';
Vue.use(VuexI18n.plugin, store);
// Make sure English is always loaded
Vue.i18n.add('en', require('@/web/locale/en'));
Vue.i18n.add('en', { ...require('@/web/locale/en') });
Vue.i18n.set('en');
Vue.i18n.fallback('en');

View File

@@ -38,6 +38,6 @@ export const actions = {
// import(/* webpackChunkName: "lang-[request]" */ `@/web/locale/${locale}`)
// .then(translations => dispatch('i18n/addLocale', { locale, translations: translations.default }, { root: true }));
dispatch('i18n/addLocale', { locale, translations: require(`@/web/locale/${locale}`) }, { root: true });
dispatch('i18n/addLocale', { locale, translations: { ...require(`@/web/locale/${locale}`) } }, { root: true });
},
};

View File

@@ -39,10 +39,9 @@ module.exports = {
})
},
devServer: {
static: [
{ directory: path.join(__dirname, 'public') },
{ directory: path.join(__dirname, 'dist') },
]
static: {
directory: path.join(__dirname, 'dist'),
}
},
pages: {
index: {