shared(nearby): add layerDisplayName and wire into subtitleFor;

app(found): use shared layerDisplayName for Hittat subtitle (no UI change)
This commit is contained in:
2025-09-13 14:36:54 +02:00
parent 23e237c457
commit 0ed70edb9e
3 changed files with 16 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
package app.klottr.nearby // Samlad namngivning av lager
import app.klottr.util.FoundStore // Lagerkonstanter
// Visningsnamn för lager (svenska)
fun layerDisplayName(layer: String): String = when (layer) {
FoundStore.LAYER_WIKI -> "Wikipedia" //
FoundStore.LAYER_DM -> "DigitaltMuseum" //
FoundStore.LAYER_FORNSOK -> "Fornsök" //
FoundStore.LAYER_KLOTTER -> "Klotter" //
else -> "Plats" //
}