package com.github.nullptroma.wallenc.ui.locale

import kotlinx.coroutines.flow.Flow

enum class AppLanguage {
    System,
    English,
    Russian,
}

interface AppLocaleController {
    val language: Flow<AppLanguage>

    suspend fun setLanguage(language: AppLanguage)

    /** Applies persisted locale; call from [android.app.Application.onCreate]. */
    suspend fun applyStoredLocale()
}
