diff --git a/quartz/plugins/transformers/citations.ts b/quartz/plugins/transformers/citations.ts index 795dc93d4..5bbc736d6 100644 --- a/quartz/plugins/transformers/citations.ts +++ b/quartz/plugins/transformers/citations.ts @@ -30,7 +30,11 @@ export const Citations: QuartzTransformerPlugin> = (userOpts) = // thus, we optimistically assume there is indeed an appropriate // locale available and simply create the lang url-string let lang: string = "en-US" - if (ctx.cfg.configuration.locale !== null && ctx.cfg.configuration.locale !== undefined) { + if ( + ctx.cfg.configuration.locale !== null && + ctx.cfg.configuration.locale !== undefined && + ctx.cfg.configuration.locale !== "en-US" + ) { lang = "https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" + ctx.cfg.configuration.locale +