mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
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:
parent
4a219f1983
commit
b6fbca70b8
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue