Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ITranslationManager Dim preferredLocales As IList(Of String) Dim key As String Dim text As String Dim args() As Object Dim value As LocalizedText value = instance.Translate(preferredLocales, key, text, args) |
C# | |
---|---|
LocalizedText Translate( IList<string> preferredLocales, string key, string text, params object[] args ) |
Parameters
- preferredLocales
- The list of preferred locales
- key
- The key used to look up the translation
- text
- The text to translate
- args
- The format argumente
Return Value
The translated text
If any error occur during format the unformatted text is used instead.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x