NoOpDocTranslator

No-op translation service for platforms without on-device translation capability (F-Droid, Desktop, iOS).

Always returns TranslationResult.Unavailable, causing the caller to fall back to English.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun downloadLanguageModel(locale: String): DownloadResult

Download the translation model for a locale. Only meaningful on google flavor.

Link copied to clipboard
open suspend override fun isLanguageAvailable(locale: String): Boolean

Check if translation to the given locale is possible (model downloaded or downloadable).

Link copied to clipboard
open suspend override 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.