RecroDictGetTranslationAsync Method
Retrieves the translation for a given language, scope, and resource key.
Namespace: Recrovit.RecroGridFrameworkAssembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 8.17.0.25.0502.1
public static Task<(bool success, string value)> GetTranslationAsync(
string language,
string scope,
string resourceKey,
bool strip = false,
params Object[] args
)
- language String
- The language code for the translation.
- scope String
- The scope of the translation (e.g., module or feature).
- resourceKey String
- The key identifying the specific resource to translate.
- strip Boolean (Optional)
- If true, removes HTML elements from the result.
- args Object
- Optional parameters to format the translation string.
TaskValueTupleBoolean,
String
A tuple containing:
- success: true if the translation was found; otherwise, false.
- value: The translated string or a fallback value.
If the translation is not found in the specified language, the method will attempt to retrieve it in the default language.
If still not found, it will return the resource key as the fallback value.