How to center chapter titles to have chapter I: First chapter
and not
Chapter I:
First chapter
\mainlanguage[fr]
\setuphead[chapter]
[commandbefore={:\,},
header=empty,
alternative=middle]
\setuphead[subsection][style=bold]
\setuphead[section]
[distance=\zeropoint,
style=bold,
commandbefore={\space\endash\space}]
\setuphead[title][commandbefore={},alternative=middle,header=empty]
\setuplayout
[height=middle,
width=middle,
backspace=2cm,
topspace=10mm,
bottomspace=10mm,
header=10mm,
footer=10mm,
footerdistance=10mm,
headerdistance=10mm]
\definelayout
[firstpage]
[header=empty]
\setupheader[text][after=\hrule]
\setupheadertexts[{\getmarking[section]}]
[pagenumber]
[{\getmarking[chapter]}]
[pagenumber]
\setuppagenumbering[alternative=,location=]
\setuplabeltext[fr][chapter=Chapitre ]
\definestructureconversionset
[structure]
[n, R, n, n, n]
\definestructureconversionset
[digits]
[n, n, n, n, n]
\setupheads[sectionconversionset=structure]
\setuplist[chapter][style=bold,width=5mm]
\starttext
\starttitle[title={\bf Sommaire}]
\placelist
[chapter,section,subsection]
[criterium=all,
alternative=c]
\stoptitle
\startchapter[title=First chapter]
\dorecurse{10}{\input ward}
\startsection[title=Fist section]
\dorecurse{10}{\input ward}
\startsubsection[title=First subsection]
\dorecurse{10}{\input ward}
\stopsubsection
\stopsection
\stopchapter
\startchapter[title=Second chapter]
\dorecurse{10}{\input ward}
\startsection[title=Second section]
\dorecurse{10}{\input ward}
\startsubsection[title=Second subsection]
\dorecurse{10}{\input ward}
\stopsubsection
\stopsection
\stopchapter
\stoptext