November Happy Hour will be moved to Thursday December 5th.
I'm doing some operations on PublishingContent event and need the language of the current Content of the event.
`if (e.Content is StandardPage standardPage)` This gives me access to standardPage.Language (CultureInfo)
`if (e.Content is TextBlock textBlock)` This however does not. Both inherits from IContent in the end.
How can I get CultureInfo from textBlock?
Casting block to ILocalizable makes Language propery available.
I'm doing some operations on PublishingContent event and need the language of the current Content of the event.
`if (e.Content is StandardPage standardPage)` This gives me access to standardPage.Language (CultureInfo)
`if (e.Content is TextBlock textBlock)` This however does not. Both inherits from IContent in the end.
How can I get CultureInfo from textBlock?