send language to the server
change editor mode when language changes