Package-level declarations

Types

Link copied to clipboard
class DocTranslationCache(cacheDir: Path, fileSystem: FileSystem, maxCacheSizeBytes: Long = MAX_CACHE_SIZE_BYTES)

File-based cache for ML Kit translated markdown pages.

Link copied to clipboard

Service interface for translating documentation pages at runtime.

Link copied to clipboard
sealed class DownloadResult

Result of a model download attempt.

Link copied to clipboard

Segments markdown into translatable and non-translatable blocks, translates the text portions, and reassembles valid markdown.

Link copied to clipboard

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

Link copied to clipboard
sealed class TranslationResult

Result of a translation attempt.

Functions

Link copied to clipboard
fun md5Hash(content: String): String

Simple MD5 hash for cache key generation. Uses Okio's built-in hashing.