src/core/services/smart-translation-provider.service.ts
Methods |
|
constructor(smartDataSourceFactory: SmartDataSourceFactory, serviceAdapter: SmartServiceAdapter, sessionManager: SmartSessionManagerService, errorHandler: SmartErrorHandlerService, injector: Injector)
|
||||||||||||||||||
|
Parameters :
|
| Public Async cacheTranslationsByScope | ||||||
cacheTranslationsByScope(scope: string)
|
||||||
|
Adds scope to translations map
Parameters :
Returns :
Promise<any>
|
| Public Async getTranslationByKey |
getTranslationByKey(key: string, scope?: string)
|
|
Returns translation by key
Returns :
Promise<any>
|
| Public Async getTranslationByString |
getTranslationByString(inputString: string, scope?: string)
|
|
Returns translation by input string
Returns :
Promise<any>
|
| Public Async getTranslationsByScope | ||||||
getTranslationsByScope(scope?: string)
|
||||||
|
Returns all translations by input scope
Parameters :
Returns :
Promise<Map<string, string>>
|