File

src/core/services/smart-translation-provider.service.ts

Index

Methods

Constructor

constructor(smartDataSourceFactory: SmartDataSourceFactory, serviceAdapter: SmartServiceAdapter, sessionManager: SmartSessionManagerService, errorHandler: SmartErrorHandlerService, injector: Injector)
Parameters :
Name Type Optional
smartDataSourceFactory SmartDataSourceFactory No
serviceAdapter SmartServiceAdapter No
sessionManager SmartSessionManagerService No
errorHandler SmartErrorHandlerService No
injector Injector No

Methods

Public Async cacheTranslationsByScope
cacheTranslationsByScope(scope: string)

Adds scope to translations map

Parameters :
Name Type Optional
scope string No
Returns : Promise<any>
Public Async getTranslationByKey
getTranslationByKey(key: string, scope?: string)

Returns translation by key

Parameters :
Name Type Optional
key string No
scope string Yes
Returns : Promise<any>
Public Async getTranslationByString
getTranslationByString(inputString: string, scope?: string)

Returns translation by input string

Parameters :
Name Type Optional
inputString string No
scope string Yes
Returns : Promise<any>
Public Async getTranslationsByScope
getTranslationsByScope(scope?: string)

Returns all translations by input scope

Parameters :
Name Type Optional
scope string Yes
Returns : Promise<Map<string, string>>

results matching ""

    No results matching ""