Added language switching functionality to editor and API to access language.