translation-editor/data/translation-store.service.ts
Properties |
|
Methods |
|
constructor(appService: ApplicationService, appState: AppStateService, zip: ZipService)
|
||||||||||||
Parameters :
|
Async getCombinedListOfTranslationsForPerKey | ||||||
getCombinedListOfTranslationsForPerKey(locales: string[])
|
||||||
Retrieves a combined list of translations for all the provided locales. The locales are combined into a single object per key and an array of these objects is returned.
Parameters :
Returns :
Promise<literal type[]>
|
Async getOrCreateTranslationApp |
getOrCreateTranslationApp()
|
Returns :
Promise<IApplication>
The translation app for the current tenant. If it does not exist, it will be created. |
Async getTranslationsForLocale | ||||||
getTranslationsForLocale(locale: T)
|
||||||
Type parameters :
|
||||||
Retrieves the translations for the given locale from the translation app.
Parameters :
Returns :
Promise<literal type>
|
Async loadTranslationsForLocales | ||||||
loadTranslationsForLocales(locales: string[])
|
||||||
Retrieves the translations for the given locales from the translation app.
Parameters :
Returns :
Promise<literal type>
|
Async updateTranslations | ||||||
updateTranslations(translations: literal type[])
|
||||||
Updates the files of the translation application with the provided translations.
Parameters :
Returns :
Promise<void>
|
Protected Readonly translationAppContextPath |
Type : string
|
Default value : 'user-defined-translations'
|
Protected Readonly translationAppName |
Type : string
|
Default value : 'User defined translations'
|