Skip to content

@serenity-is/corelib / TranslationConfig

Variable: TranslationConfig

const TranslationConfig: object

Defined in: src/base/localtext.ts:190

Global configuration hooks for the optional translation service integration. Assign these before invoking translation features in the UI.

Type Declaration

getLanguageList()

getLanguageList: () => LanguageList

Retrieves the list of available languages

Returns

LanguageList

translateTexts()

translateTexts: (opt) => PromiseLike<TranslateTextsResult>

A function to translate texts based on provided options

Parameters

opt

TranslateTextsOptions

Returns

PromiseLike<TranslateTextsResult>