fix(v2): fix i18n isLastLocale bug preventing docusaurus from building some locales (#4575)

* fix i18n isLastLocale bug

* fix i18n isLastLocale bug
This commit is contained in:
Sébastien Lorber 2021-04-05 19:56:28 +02:00 committed by GitHub
parent 4a219f1983
commit b6fbca70b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];