feat: localisation with lyricist

This commit is contained in:
2026-06-06 11:52:03 +02:00
parent 8ef2d80901
commit c80edafbd4
3 changed files with 332 additions and 1 deletions
@@ -46,7 +46,7 @@ fun HomeTab(
val balanceHidden by vm.balanceHidden.collectAsState()
// ── NEW: language switcher state ──────────────────────────────────────────
val supportedTags = remember { listOf("en", "es") } // add more as you add locale files
val supportedTags = remember { listOf("en", "es", "eu") } // add more as you add locale files
val isRefreshing = balanceState is BalanceState.Loading
|| (balanceState as? BalanceState.Success)?.isRefreshing == true
@@ -296,6 +296,7 @@ private fun LanguageSwitcherButton(
when (tag) {
"en" -> "English"
"es" -> "Español"
"eu" -> "Euskara"
else -> tag.uppercase()
}
}