Add the "getLanguages" hook (see #6545)