Make Language Manager smarter - extend translate API with IContent and Property
The Translate Interface in language manager add-on (EPiServer.Labs.LanguageManager, to make translations smarter, It would be benificial to add IContent and propertyName. With that, we can get Custom Property Attributes, or other properties to understand better the context.
Change from
TranslateTextResult Translate(
string inputText,
string fromLang,
string toLang;
to
TranslateTextResult Translate(
string inputText,
CultureInfo fromLang,
CultureInfo toLang,
IContent currentContent, //or similar ContentReference
string propertyName
;
With this, we could make the translations smarter by knowing the context of the block or page. We could also read any custom attribute on the property if any.
