How do you set document locale?

I’m trying out Jupter Lab and I can’t find a way to specify output document locale. I’d like to keep interface in English (easier to get help), but the output PDF should be in Polish.

I figured out I could change pdf title and author by editing metadata - is there something similar for language? It should be doable as with tools like pandoc it’s simply passing a lang variable.

Also - is there a way to change doc title style (for example - get rid of date)?

Dear @Przem_x, can you share more about your environment and tools? JupyterLab is an integrated development environment (IDE) that support different formats. What file format are out trying to convert to PDF? And what tool are you using to create the PDF?

it’s regular notebook that I’d like to export to PDF.

The Jupyter Notebook to PDF can be done using nbcovert, see https://nbconvert.readthedocs.io/. The documentation says that pandoc is used to convert to LaTeX that is later convert to PDF. The documentation also says

Optionally you can specify authors, title and date in the notebook’s metadata. These will be used to render the header of the LaTeX document.

{
    "authors": [
        {
            "name": "Jane Doe"
        },
        {
            "name": "John Doe"
        }
    ],
    "date": "January 2023",
    "title": "Annual Data Report 2022",
    "kernelspec": { },
    "language_info": { }
}

I believe the fields authors, date, and title are passed to pandoc, see nbconvert/nbconvert/preprocessors/latex.py at 5f21339480d64fadfff9ff180dfaf401889f2a43 · jupyter/nbconvert · GitHub . From the source code, there is no support to languages. You can open a feature request on GitHub, it will be something similar to Add option to force paper size for latex/pdf output · Issue #392 · jupyter/nbconvert · GitHub.