I'm trying to render a document from MarkDown to PDF using pandoc:

pandoc my-document.md \
    --csl=citation-style.xml \
    --standalone \
    --smart \
    -V documentclass=report \
    -f markdown+footnotes+backtick_code_blocks+inline_notes+raw_html \
    --toc \
    --bibliography references.json \
    -V lang=pl-PL \
    -o my-document.pdf

The key here is the lang=pl-PL part: the document is written in Polish and targeted towards Polish audience.

The output contains proper Polish equivalents for "Table of Contents" and "Chapter" headers, but unfortunately the language used for bibliography is English.

How do I configure pandoc to apply Polish locale to bibliography as well?

closed as off-topic by henrique, moewe, egreg, Henri Menke, Fran Jan 3 '16 at 17:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – henrique, moewe, egreg, Henri Menke, Fran
If this question can be reworded to fit the rules in the help center, please edit the question.

  • many citation styles (in github.com/citation-style-language/styles) have hardcoded english locale (within the style tag, with the default-locale attribute as well as in style-specific locale tags). I tend to copy the styles and adjust them accordingly (something like the chicago-fullnote-bibliography-fr style). You can always rely on biblatex for that, but you would have to create a .tex file and compile it by yourself. – henrique Jan 3 '16 at 13:58
  • pandoc does not call bibtex or biber to process bibliographies, it always relies on pandoc-citeproc and csl styles to do that. If my suggestion solves your problem, I think it's not TeX-related but exclusively related to pandoc and that you could get more help at pandoc-discuss. – henrique Jan 3 '16 at 14:11
  • @henrique unfortunately that does not seem to be the case with me. The citation style file does not contain deafult-locale attribute :( – Kuba Orlik Jan 3 '16 at 14:17
  • @henrique I will check that discussion group, thanks! – Kuba Orlik Jan 3 '16 at 14:23
  • 1
    Oh, sorry, I have an old version of pandoc here :P... Not every pandoc question is off-topic because many of them deal with latex packages and such, but not this one. I meant to close it only because it's strictly related to pandoc-citeproc... – henrique Jan 3 '16 at 16:09