Document default language

Hello,

We are unable to access document default language using Java Word API.

Is there a way to get this information ?

We need getter AND setter on this property

Thanks,

Hi Jean-Pascal,

Thanks for your inquiry. Please
note that there is no setting in Microsoft Word document that controls
the language of the document as a whole. Instead, you can get the
language of any text Run in Microsoft Word document using the
Font.LocaleId property. So, if you want to discover the language setting
of the document you should probably iterate through all Runs in the
document and choose LocaleId that is occurring most often.

For the list of locale identifiers see
https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a.