We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212c014 commit 5207585Copy full SHA for 5207585
src/command/render/render-files.ts
@@ -330,7 +330,12 @@ export async function renderFiles(
330
// Set the date locale for this render
331
// Used for date formatting
332
initDayJsPlugins();
333
- await setDateLocale(context.format.metadata[kLang] as string);
+ if (
334
+ context.format.metadata[kLang] &&
335
+ typeof (context.format.metadata[kLang]) === "string"
336
+ ) {
337
+ await setDateLocale(context.format.metadata[kLang] as string);
338
+ }
339
340
const fileLifetime = createNamedLifetime("render-file");
341
fileLifetime.attach({
0 commit comments