(bug 42326) Add function to get the user languages

Adding to the Babel extension a function that gets the languages
programmatically which are defined using the Babel extension.

Change-Id: Ibcb4b6ac250b6b4148650160c35d8ec6c45417eb