XWIKI-10082: Add script API to get current locale and interface locale