Is there any way to publish items in sitecore for some specific language that we get from API associated with the item?
Language[] languages = new Language[] { LanguageManager.GetLanguage("en") };
....
...
Sitecore.Publishing.PublishManager.PublishSmart(master, targetDbs, languages);
I have three language in Sitecore Env Here but I want one item to publish for just "en" language and other for just "en-ca" and other for just "fr-ca".
You need to make use of the
PublishItem
method and proceed as follows:Sample Code
Thanks