Weblate

@RequiresApi(value = 30)
class Weblate(context: Context, weblateDir: File = File(context.filesDir, DIR_WEBLATE))

Primary way to interact with the Weblate library.

Parameters

context

Context from Android, preferably ApplicationContext

weblateDir

Directory where the configuration is stored, defaults to app's internal storage

Constructors

Link copied to clipboard
constructor(context: Context, weblateDir: File = File(context.filesDir, DIR_WEBLATE))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Cancels previously scheduled daily localization update

Link copied to clipboard

Cancels the ongoing one-time localization update

Link copied to clipboard
suspend fun download(locale: Locale)

Downloads localization update for the given locale, if available.

Link copied to clipboard

Schedules daily localization update for current locale

Link copied to clipboard

Triggers an immediate one-time localization update for current locale