Skip to content

Commit

Permalink
fix: use correct default locale format
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-swell committed Jul 19, 2022
1 parent be90502 commit a09061c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/swell/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a09061c

Please sign in to comment.