Because of XWIKI-18477 the page translation REST resource returns empty default locale for any page translation that was created by the user. In order to determine the default locale you need to make another HTTP request for the original document which is a pain and a waist of resources and time.
For instance, create the Romanian translation for Sandbox.TestPage1 and then access:
The default translation is empty. You need to make another call to:
in order to determine the actual default locale.
XWIKI-17593 The view UI is not modified after saving when using the in-place editing
- is related to
XWIKI-17285 The page REST resource doesn't always include the default page language
- relates to
XWIKI-18477 Default locale is not always set for document translations