ITextApi Interface

Provide method for working with text resources

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
public interface ITextApi

Methods

CacheAndTranslate Cache and translate a text resource by a given key with language name (en or da)
LoadTextResources Load text resources by a language name which could be en or da

Example

C#
var textApi = ctx.Use<ITextApi>();
var textResult = textApi.LoadTextResources("en")
Translate Translate a text resource by a given key with language name (en or da)

Example

C#
var textApi = ctx.Use<ITextApi>();
var translatedText = textApi.Translate("cw_search_result_limit_exceeded", "en");

See Also