D
Druckling
Docs

Multi-language templates

Render one template in several languages, with translated texts and number, date and currency formats that follow the language.

A template can print in more than one language. It has a default language and up to 30 more, and each render picks one with the language parameter. Layout, styles, variables and sample data are shared by all languages: only the template's texts are translated, so a design change applies to every language at once.

How it works

  • The default language holds the texts you see in the blocks. New blank templates start in English (en); the e-invoice starters start in German or French.
  • Other languages store translations of single texts. A text you haven't translated yet prints in the default language, so a half-translated template still renders.
  • Each render uses one language: the default, or the one you pass as language. Numbers, dates, currency amounts, hyphenation and the PDF's declared language follow it.

Supported languages

Languages are two-letter ISO 639-1 codes. The editor offers the 24 official EU languages and six more:

GroupCodes
EU languagesbg Bulgarian, cs Czech, da Danish, de German, el Greek, en English, es Spanish, et Estonian, fi Finnish, fr French, ga Irish, hr Croatian, hu Hungarian, it Italian, lt Lithuanian, lv Latvian, mt Maltese, nl Dutch, pl Polish, pt Portuguese, ro Romanian, sk Slovak, sl Slovenian, sv Swedish
More languagesca Catalan, is Icelandic, lb Luxembourgish, nb Norwegian Bokmål, tr Turkish, uk Ukrainian

A template can have up to 31 languages: the default plus 30 translations.

Add and translate a language

Add the language

Open the template with Open editor. In the toolbar above the page, open the language menu (it shows the current language, for example English) and choose a language under Add a language….

Translate the texts

Select the language in the same menu. The page now shows that language, and a note at the top of the right-hand panel says you're editing it: texts you change are saved as translations, while layout and style changes still apply to every language. Edit texts on the page or in the inspector as usual. Back to English (or your default language) in that note returns to the default texts.

The menu shows each language's progress, such as 12/30. Open untranslated under a language to list the texts still missing and jump to each one.

You can also ask Druck, the AI assistant, for a translation, for example "Make a French version". It proposes the translated texts as one change, which you Apply or Discard.

Publish

Translations are part of the template. Publish a new version so that API renders can use the language. The editor warns about texts that aren't translated yet; they don't block publishing, because they print in the default language. A translation with a broken binding, such as a misspelled variable, is an error and has to be fixed first.

Each language's ⋯ menu has two more actions:

  • Make default turns the language into the default: its translations become the block texts, and the previous default's texts become a translation. Texts it hadn't translated stay as they are.
  • Remove deletes the language and all its translations.

The Language field under Document › Typography only relabels the default language, for example when the texts are German but the template is set to English. It doesn't translate anything.

What gets translated

These texts can differ per language:

  • The document title and the watermark text
  • Text and heading blocks
  • Table column headers and cells, totals row labels and values, and the text shown for an empty table
  • Image alt text
  • Chart titles
  • Signature labels and signer names
  • The page number format, for example Page {page} of {total}

Everything else is shared: layout, styles, fonts, page setup, images, QR code and barcode values, variables, sample data and the template's currency. Texts without words, such as a cell that only contains {{item.qty}}, print the same in every language and don't count as untranslated.

Your payload isn't translated either. Values like line item descriptions print exactly as you send them, so send them in the language you render.

A translated text keeps its bindings, filters and formatting. In German, No. {{invoice.number}} might become Nr. {{invoice.number}}, and **{{invoice.due_date | date}}** stays as it is, because the date filter already follows the language.

What follows the language

Filters format values for the render language:

Languagemoney (USD)money (EUR)number:2date
English (en)$4,800.00€1,234.501,234.50Nov 22, 2026
German (de)4.800,00 $1.234,50 €1.234,5022.11.2026
French (fr)4 800,00 $1 234,50 €1 234,5022/11/2026
Dutch (nl)4.800,00 $1.234,50 €1.234,5022-11-2026
Italian (it)4.800,00 $1.234,50 €1.234,5022/11/2026
Polish (pl)4.800,00 $1.234,50 €1.234,5022.11.2026
  • Decimal separator. English, Irish and Maltese use a decimal point and a comma between thousands. The other languages use a decimal comma, with a point between thousands, or a narrow space in French.
  • Currency position. With a decimal comma, the symbol follows the amount. Otherwise it comes first, separated by a space for letter codes such as CHF 1,234.50.
  • Dates. English prints Nov 22, 2026; French, Spanish, Italian and Portuguese 22/11/2026; Dutch 22-11-2026; all others 22.11.2026. A pattern given to the date filter overrides this.
  • Hyphenation. With Hyphenate switched on under Document › Typography, words are hyphenated with the render language's rules.
  • PDF language. The PDF declares the render language, so screen readers pronounce it correctly. See Accessible PDFs.

The currency itself doesn't change with the language. It comes from the template's Currency setting, the code you pass to the filter ({{totals.amount | money:EUR}}), or, in e-invoice templates, the invoice's currency. See Template strings for the filters.

Render in a language

Pass language to POST /v1/documents. This renders the invoice-standard template in German, once you've added and published German for it:

curl https://druckling-nine.vercel.app/v1/documents \
  -H "Authorization: Bearer $DRUCKLING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "invoice-standard",
    "language": "de",
    "data": {
      "invoice": { "number": "INV-2041", "due_date": "2026-11-22" },
      "customer": { "name": "Northwind GmbH", "address": "Hafenweg 3, 20457 Hamburg" },
      "line_items": [
        { "description": "Design-System-Audit", "qty": 12, "rate": 180, "amount": 2160 }
      ],
      "totals": { "subtotal": 2160, "tax": 172.8, "amount": 2332.8 }
    }
  }'

How language is resolved:

  • Left out, the render uses the template's default language.
  • Case and region don't matter. DE, de-AT and de_CH all render German. The document records the template's language, de, in its language field.
  • Missing translations fall back to the default language, text by text.
  • A language the template doesn't have answers 422 validation_failed on language, before anything is rendered or recorded:
{
  "defined": false,
  "code": "UNPROCESSABLE_CONTENT",
  "status": 422,
  "message": "The template has no \"pl\" version; its languages are en (default), de, fr",
  "data": { "code": "validation_failed", "field": "language", "language": "pl", "available": ["en", "de", "fr"] }
}

The language belongs to a published version, like the rest of the template. A request for "version": 3 can use the languages version 3 had.

Find a template's languages

GET /v1/templates/{slug} and the template list return language, the default, and languages, every language the template renders in with the default first. They come from the latest published version, or from the draft if the template was never published.

{
  "slug": "invoice-standard",
  "language": "en",
  "languages": ["en", "de", "fr"]
}

The template's page in the dashboard (Templates › your template) also has a language picker for its API example.

Batches

Batches take a language for every item and a language per item that overrides it:

curl https://druckling-nine.vercel.app/v1/batches \
  -H "Authorization: Bearer $DRUCKLING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "invoice-standard",
    "language": "de",
    "items": [
      { "data": { "…": "…" } },
      { "data": { "…": "…" }, "language": "fr" },
      { "data": { "…": "…" }, "language": "en" }
    ]
  }'

All languages are checked before anything is stored. An unknown one rejects the whole batch with 422 validation_failed on language or on the item's field, such as items.1.language. Each document in the batch records its own language.

E-invoices

For e-invoices, language only affects what people read:

  • Factur-X and ZUGFeRD. The visible pages follow the language; the embedded factur-x.xml is the same in every language.
  • XRechnung and Peppol BIS. The XML doesn't change with the language. language is still checked against the template's languages and recorded on the document.

Texts from the payload, such as line names, notes and payment terms, appear as you send them in both the PDF and the XML.

Accessibility

In a template with PDF/UA-1 or PDF/A-3a, the accessibility checks run for every language, since a translation can leave a heading or an alt text empty. Problems in another language are prefixed with its name, for example German: PDF/UA: headings can't be empty. Translate the document title and alt texts along with the other texts. See Accessible PDFs.

On this page