### Bug description

If I use biblatex with APA citation style and use a language for which biblatex-apa doesn't have a special definition, I get some errors about undefined control sequences. Check the following MWE (`.bib `file content does not matter as soon as it contains the "citation", entry):

````md
---
format:
  pdf:
    lang: cs-CZ
    cite-method: biblatex
    biblio-style: apa
    bibliography: refs.bib
---

[@citation]
````
results in

```
compilation failed- Error compiling latex
Undefined control sequence.
<argument> \datecircaprint \mkbibdateapalongextra 
                                                  {labelyear}{labelyeardivis...
l.167 \autocite{citation}
```

Note that this is all because `biblatex-apa` doesn't have any `czech-apa` format. It's easy to solve using

```latex
\DeclareLanguageMapping{czech}{american-apa}
```

Now I get to the point of my issue – **there is no way how to include the line above at the correct place in the `.tex` document without replacing the whole `template.tex`.** It has to be placed after `babel` and `biblatex`, so I cannot use `include-in-header`, it has to be in the preamble, so `before-body` isn't an option either.

I think the solution may be to create a new template partial wrapping around this bibliography setup that would be easier to replace, benefiting from the template's other components getting updated along with quarto.

<details><summary>Versions</summary>
RStudio 2023.05.0-daily+165
macOS Ventura 13.3

quarto check:
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.299
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.9 (Conda)
      Path: /Users/netik/.julia/conda/3/bin/python3
      Jupyter: 5.3.0
      Kernels: julia-1.8, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.3
      Path: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources
      LibPaths:
        - /Users/netik/Documents/git/diplomka/renv/library/R-4.2/aarch64-apple-darwin20
        - /Users/netik/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.2/aarch64-apple-darwin20/fd29d0b8
      knitr: 1.42
      rmarkdown: 2.21

[✓] Checking Knitr engine render......OK
</details>

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-03-31T17:35:03Z
netique
enhancement latex
v1.4
open
Provide a bibliography partial so fixing `biblatex-apa` issues doesn't require a template-wide changes
https://github.com/quarto-dev/quarto-cli/issues/5058