Skip to content

Commit 74770bf

Browse files
committed
fix: when no --locales is provided
1 parent fbb55cf commit 74770bf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/NotionImage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export async function initImageHandling(
4747
imagePrefix = prefix.replace(/\/$/, "");
4848
imageOutputPath = outputPath;
4949
locales = incomingLocales;
50+
console.log("locales:" + JSON.stringify(locales));
5051

5152
// Currently we don't delete the image directory, because if an image
5253
// changes, it gets a new id. This way can then prevent downloading

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ program
2828
.option(
2929
"--locales <codes>",
3030
"Comma-separated list of iso 639-2 codes, the same list as in docusaurus.config.js, minus the primary (i.e. 'en'). This is needed for image localization.",
31-
parseLocales
31+
parseLocales,
32+
[]
3233
)
3334
.addOption(
3435
new Option("-l, --log-level <level>", "Log level").choices([

0 commit comments

Comments
 (0)