From a09061c27f8b52403f50d5367715fbdd82e42486 Mon Sep 17 00:00:00 2001 From: Rodrigo de Almeida Date: Tue, 19 Jul 2022 15:47:57 -0300 Subject: [PATCH] fix: use correct default locale format --- modules/swell/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) => {