mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14:06 -06:00
Excluding en-US locales from the new behaviour.
This commit is contained in:
parent
3bf798b51f
commit
d34d1ebf70
@ -30,7 +30,11 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (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 +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user