Skip to content

Commit

Permalink
fix(v2): fix i18n isLastLocale bug preventing docusaurus from buildin…
Browse files Browse the repository at this point in the history
…g some locales (#4575)

* fix i18n isLastLocale bug

* fix i18n isLastLocale bug
  • Loading branch information
slorber authored Apr 5, 2021
1 parent 4a219f1 commit b6fbca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default async function build(

const results = await mapAsyncSequencial(orderedLocales, (locale) => {
const isLastLocale =
i18n.locales.indexOf(locale) === i18n.locales.length - 1;
orderedLocales.indexOf(locale) === orderedLocales.length - 1;
return tryToBuildLocale({locale, isLastLocale});
});
return results[0];
Expand Down

0 comments on commit b6fbca7

Please sign in to comment.