IText
|
The ITextApi type exposes the following members.
| Name | Description | |
|---|---|---|
|
|
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
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)
C# var textApi = ctx.Use<ITextApi>(); var translatedText = textApi.Translate("cw_search_result_limit_exceeded", "en"); |