Skip to content

Commit

Permalink
fix i18n isLastLocale bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Apr 5, 2021
1 parent c462df0 commit 5f5208e
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 =
orderedLocales.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 5f5208e

Please sign in to comment.