How to align the title of my outline?

I would like to know how to use

#set heading(numbering: "I.")
#outline(
  title: [#align(center)[Gliederung]]
)
#set heading(numbering: "I.")
#outline(
  title:align(center)[Gliederung]
)

I am new to typst and I have been trying to help myself by reading the documentation but I just don’t seem to get past this issue. I would be very grateful if anyone could give me a hint on where to inform myself about this issue or anything.

You can use a show rule on heading (since the outline heading is in itself a heading), of course you have to scope it only to the outline call (unless you want all your headings centred).

#{
  show heading: align.with(center)
  outline()
}

You should prioritize show-set rules (you can undo them without scopes, they are more idiomatic), but there are no show-show-set rules, so you’d need to do:

#show outline: it => {
  show heading: set align(center)
  it
}

Though, it appears that for a simple example show outline: set align(center) is enough. Strange.

#set heading(numbering: "I.")
#set outline(title: "Gliederung")
// #show outline: set align(center)
#show outline: it => {
  show heading: set align(center)
  it
}

#outline()

= Heading
== Heading
=== Heading
= Heading

Alternatively, you can also use these, though they are not as precise or flexible:

#show heading.where(outlined: false): set align(center)
#show heading.where(body: [Gliederung]): set align(center)