TL;DR

On Confluence pages that use language macros, the built-in table of contents lists the headings of every language at once. We built the new Table of contents (Translations) macro in Translations for Confluence Cloud specifically for our language macros: it lists only the headings in the language the reader sees. It picks that language using the same rules as the language macros, so the navigation always matches the content. One macro at the top of the page covers every language, and there’s nothing to configure.

You keep one page for every language: English, German, French, all in their own language macro. Readers switch languages from the drop-down and see only their version.

Then they look at the table of contents. It lists every heading in every language. A German reader scrolls past “Getting started” and “Configuration” to find “Erste Schritte”. The longer the page, the worse it gets.

For teams moving multilingual documentation from Data Center to Cloud, this was one of the gaps left to close. Now it’s closed.

You keep one page for every language: English, German, French, all in their own language macro. Readers switch languages from the drop-down and see only their version.

Show only the headings your reader can read

The Table of contents (Translations) macro lists the headings in the language the reader sees, plus any shared headings outside the language macros. It decides which language to display using the same rules as the language macros, so the table of contents and the page content always match.

To add it:

  1. In the editor, place the cursor at the top of the page, outside the language macros.
  2. Enter /table of contents.
  3. Select Table of contents (Translations).
  4. Publish or update the page.

That’s it. One table of contents now serves all languages. It works on pages and blog posts.

For all settings and known limitations, see the Table of contents (Translations) documentation.

Shape it the way you want

All settings are optional. Without changes, the macro shows a vertical list of all headings. If you need more control, you can:

  • Switch between a vertical list and a horizontal list, with your choice of list style or separator
  • Limit it to heading levels 1 to 6, for example, only the top two
  • Add section numbers (1, 1.1, 1.2 …)
  • Include or exclude headings by keyword or regular expression
  • Leave it out of PDF and Word exports

Need a separate introduction per language? Place one macro inside each language macro instead. Readers viewing a single language see only that language’s table of contents.

Key Takeaway

A multilingual page is only as clear as its navigation. When the table of contents mixes languages, readers lose the benefit of reading in their own language before they reach the first heading.

With the new macro, the table of contents follows the reader’s language, just like the content does.

Translations for Confluence lets you keep every language on one Confluence page, and now the navigation follows the reader too. Find out more about Translations for Confluence, try it on the Atlassian Marketplace, or book a demo with our team.

Frequently asked questions

Couldn’t find what you need?

With Translations for Confluence Cloud, place the cursor at the top of the page outside the language macros, enter /table of contents and select Table of contents (Translations). Then publish or update the page. The macro lists only the headings in the language the reader sees.

The table of contents macro built into Confluence lists every heading on the page, including those inside each language macro of Translations for Confluence. On pages that use language macros, use the Table of contents (Translations) macro instead. It lists only the headings of the displayed language.

It uses the same rules as the language macros in Translations for Confluence to decide which language is displayed. The table of contents and the page content therefore always match. Headings outside the language macros appear for every language.

Yes. In Translations for Confluence Cloud, you can place a Table of contents (Translations) macro inside each language macro, for example, to give each language its own introduction. If readers often select all languages at once, they will see each table of contents, so a single macro outside the language macros usually works better.

Yes. In the macro settings of Table of contents (Translations), select Exclude from PDF and Word exports. The table of contents is then omitted from exported documents.