Juris-M / citeproc-js

A JavaScript implementation of the Citation Style Language (CSL) https://citeproc-js.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forceLang doesn't seem to do anything.

Rob-Read opened this issue · comments

I'm trying to use a single CSL with multiple locales, as the citation style doesn't change between languages, just the terms do. My assumption on how to do this following the documents is as follows: provide 2 locale XMLs and a single style sheet. specify the language in the Engine constructor and set forceLang to true.

I can see the Engine fetching the "non-default" locale, however the result of processing citation clusters is still using the terms within the default-locale xml. If I create copy the CSL to a new file, change the default-locale to the second locale, and use that style instead, the resolution of the terms works properly.

Either the documentation for using forceLang needs to be updated, or the forceLang option simply isn't doing anything.