How to get the custom language variables via API or KQL?

Hi,

How can we get the language custom variables key/value list from API or KQL?

Also this question is open from 2019: Kirby 3 REST API How to get custom language variables

Thank you.