DocTranslationService
Service interface for translating documentation pages at runtime.
Used as a fallback when Crowdin-translated markdown bundles are not available for the user's locale. Google flavor provides ML Kit implementation; fdroid/desktop/iOS provide a no-op that returns TranslationResult.Unavailable.
Inheritors
Functions
Link copied to clipboard
Download the translation model for a locale. Only meaningful on google flavor.
Link copied to clipboard
Check if translation to the given locale is possible (model downloaded or downloadable).
Link copied to clipboard
abstract suspend fun translatePage(pageId: String, markdown: String, targetLocale: String): TranslationResult
Translate a markdown page to the target locale. Returns the fully-translated markdown or a status.