you make 2 keymaps... one for each translation
ie:

ranged.attack >> 2 // this is on keymap 'mage.kcl' which will trigger actionbar.slot.2 -> fireball

ranged.attack >> 5 // this is on keymap 'warlock.kcl' which will trigger actionbar.slot.5 -> shadow bolt

ranged.attack >> 7 // this is on keymap 'warrior.kcl' which will trigger actionbar.slot.7 -> charge


then load each to the appropriate character type (you can auto-load the keymap via the keyclone/setup/command panel)