diff --git a/modules/swell/index.js b/modules/swell/index.js index 0db5135..b9e76a3 100644 --- a/modules/swell/index.js +++ b/modules/swell/index.js @@ -45,7 +45,10 @@ export default async function (moduleOptions) { this.options.i18n = await getLangSettings(swell); const locales = await swell.settings.get('store.locales'); const defaultLocale = await swell.settings.get('store.locale'); - await generateLangFiles(swell, locales.length ? locales : [defaultLocale]); + await generateLangFiles( + swell, + locales.length ? locales : [{ code: defaultLocale }], + ); const extendPluginsFn = this.options.extendPlugins; this.options.extendPlugins = (plugins) => {