KitchenDraw SDK 2
Show / Hide Table of Contents

Method TryTranslate

TryTranslate(string, string, out string)

Translates a text given in the key language of the dictionary to another language.

Declaration
public bool TryTranslate(string keyLanguageText, string languageCode, out string translatedText)
Parameters
Type Name Description
string keyLanguageText

Text in the key language of the dictionary.

string languageCode

Code of the language to which to translate.

string translatedText

When the method completes, this parameter holds the translated text.

Returns
Type Description
bool

true if the key language text exists in the dictionary and a translation if returned in translatedText parameter, false otherwise.

In this article
Back to top Generated by DocFX