package com.tomhempel.rbarometer.questionnaire

import com.tomhempel.rbarometer.LanguageManager

object SpinnerAnswerRules {

    fun chooseAnswerPrompt(languageId: String): String =
        LanguageManager.getText(languageId, "choose_answer")

    fun isUnselected(languageId: String, selected: String?): Boolean {
        val prompt = chooseAnswerPrompt(languageId)
        return selected.isNullOrEmpty() || selected == prompt
    }
}
