Table of Contents

Class PageTranslationOptions

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Class that defines the languages for which a translation must be generated

public class PageTranslationOptions
Inheritance
PageTranslationOptions
Inherited Members

Properties

LanguageCodes

List of languages to generate a translation for

public List<string> LanguageCodes { get; }

Property Value

List<string>

Methods

AddLanguage(int)

Add a new language to the list of langauges to be generated. Note that this language must be a language configured for multi-lingual pages on the site

public void AddLanguage(int languageId)

Parameters

languageId int

Id defining the language to add. See https://capacreative.co.uk/resources/reference-sharepoint-online-languages-ids/ for a list of possible languages