Wiki source code of Live Data XWiki
Last modified by Vincent Massol on 2026/11/30 17:29
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == XWikiLiveDataSource == | ||
| 2 | |||
| 3 | Implementation of [[LiveDataSource>>documentation.xs.dev.front-end.livedata.api.WebHome||anchor="HLiveDataSource"]] for XWiki. | ||
| 4 | |||
| 5 | == initTranslationsBuilder == | ||
| 6 | |||
| 7 | Helper to load the translations of a Live Data in XWiki (from the [[localization rest endpoint>>doc:extensions:Extension.Localization.WebHome||anchor="HRESTAPI"]]). | ||
| 8 | |||
| 9 | {{code language="typescript"}} | ||
| 10 | buildTranslations( | ||
| 11 | locale: string, | ||
| 12 | i18n: I18n, | ||
| 13 | ): (query: TranslationQuery) => Promise<Translations> | ||
| 14 | {{/code}} |