I am trying to add this WMTS as a background layer in QWC2.

<https://geoegl.msp.gouv.qc.ca/carto/wmts?SERVICE=WMTS&REQUEST=GetCapabilities&VERSION=1.3.0>

In the GetCapabilities results I see 22 scale denominators that I am trying to convert into resolution values for my themesConfig.json file in QWC2.

I have been searching on internet for days now but I can't find any info or formula on how to do this.

Does such a formula actually exist ? Or is there a way I haven't seen to make QWC2 figure out the resolutions itself ?