proposal for mdm_set_translations, c code is completely untested, as I am unsure how to add json-glib correctly.