XWIKI-9842: Add new Document.getLocale() API
XWIKI-9843: Failure to save translations for legacy languages using REST