new: add emoji associated with records in records and player UI

This commit is contained in:
2026-07-03 14:28:59 +02:00
parent b0a18814b5
commit f90552ed62
7 changed files with 58 additions and 36 deletions
@@ -9,104 +9,105 @@ import kotlinx.coroutines.flow.flowOf
internal class InMemoryRecordRepository : RecordRepository {
private val records =
listOf(
Phrase(
"🙏" to Phrase(
transcription = "An onestiz",
translation = "La politesse",
),
Phrase(
"👋" to Phrase(
transcription = "En em brezantiñ",
translation = "Se présenter",
),
Phrase(
"🌦️" to Phrase(
transcription = "An amzer a ra",
translation = "Le temps qu'il fait",
),
Phrase(
"💬" to Phrase(
transcription = "E komz get unan arall",
translation = "Parler avec quelqu'un d'autre",
),
Phrase(
"📖" to Phrase(
transcription = "Me hag ar brezhoneg",
translation = "Moi et le breton",
),
Phrase(
"🩺" to Phrase(
transcription = "Ar yec'hed",
translation = "La santé",
),
Phrase(
"🔍" to Phrase(
transcription = "Deskriviñ",
translation = "Décrire",
),
Phrase(
"❤️" to Phrase(
transcription = "Me 'gar / Ne garan ket",
translation = "J'aime / Je n'aime pas",
),
Phrase(
"" to Phrase(
transcription = "C'hoantoù",
translation = "Les envies",
),
Phrase(
"🤔" to Phrase(
transcription = "Penaos 'peus kavet...?",
translation = "Comment as-tu trouvé... ?",
),
Phrase(
"🎨" to Phrase(
transcription = "Oberiantizoù",
translation = "Les activités",
),
Phrase(
"🍽️" to Phrase(
transcription = "Debriñ hag evet",
translation = "Manger et boire",
),
Phrase(
"🚶🏻" to Phrase(
transcription = "Bale, pourmen ha beajiñ",
translation = "Marcher, se promener et voyager",
),
Phrase(
"🧍🏼‍♀️" to Phrase(
transcription = "Ma c'horf (1)",
translation = "Mon corps (1)",
),
Phrase(
"👦🏾" to Phrase(
transcription = "Ma c'horf (2)",
translation = "Mon corps (2)",
),
Phrase(
"" to Phrase(
transcription = "Dle eo / ret eo / dav eo / mall eo...",
translation = "Il faut que... / Il est temps que (de) ...",
),
Phrase(
"📅" to Phrase(
transcription = "Deizioù ar sizhun",
translation = "Les jours de la semaine",
),
Phrase(
"🍁" to Phrase(
transcription = "Mizioù ha kourzoù ar blez",
translation = "Les mois et les saisons de l'année",
),
Phrase(
"📦" to Phrase(
transcription = "Bez'zo / N'eus ket...",
translation = "Il y a / Il n'y a pas...",
),
Phrase(
"🤏" to Phrase(
transcription = "Banne.../Tamm...",
translation = "Un peu...",
),
Phrase(
"🏠" to Phrase(
transcription = "Stad a vuhez (1)",
translation = "Situation de vie (1)",
),
Phrase(
"🧑🏻‍❤️‍💋‍🧑🏽" to Phrase(
transcription = "Stad a vuhez (2)",
translation = "Situation de vie (2)",
),
Phrase(
"🧭" to Phrase(
transcription = "Lec'hiiñ",
translation = "Situer",
),
).mapIndexed { index, phrase ->
).mapIndexed { index, (emoji, phrase) ->
val number = index + 1
val paddedNumber = number.toString().padStart(2, '0')
Record(
id = number,
index = number,
emoji = emoji,
title = phrase,
audioResourcePath = "files/Chom_bev_$paddedNumber.m4a",
subtitleResourcePath = "files/Chom_bev_${paddedNumber}_st_bzh.lrc",
@@ -5,6 +5,7 @@ import fr.ajaury.gwenedeg.core.model.Phrase
data class Record(
val id: Int,
val index: Int,
val emoji: String,
val title: Phrase,
val audioResourcePath: String,
val subtitleResourcePath: String,