languagePreferences property

LoadOptions.languagePreferences property

Gets language preferences that will be used when document is loading.

get languagePreferences(): Aspose.Words.Loading.LanguagePreferences

Examples

Shows how to apply language preferences when loading a document.

let loadOptions = new aw.Loading.LoadOptions();
loadOptions.languagePreferences.addEditingLanguage(aw.Loading.EditingLanguage.Japanese);

let doc = new aw.Document(base.myDir + "No default editing language.docx", loadOptions);

var localeIdFarEast = doc.styles.defaultFont.localeIdFarEast;
console.log(localeIdFarEast == aw.Loading.EditingLanguage.Japanese
  ? "The document either has no any FarEast language set in defaults or it was set to Japanese originally."
  : "The document default FarEast language was set to another than Japanese language originally, so it is not overridden.");

See Also