1 result found
-
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.9 votesWhile we do not plan to pursue it at this time, we’re going to revisit this idea for consideration in the future. Please continue to provide feedback or additional information, and thank you for helping us build a case for pursuing this idea in future.
- Don't see your idea?