forked from MapComplete/MapComplete
UI: fix #1848, explicitly add element to help screen readers pronounce everything correctly
This commit is contained in:
parent
cecfaebf5b
commit
9832aa45f0
6 changed files with 94 additions and 35 deletions
|
@ -1,3 +1,16 @@
|
|||
<script lang="ts">
|
||||
import { Translation } from "./i18n/Translation"
|
||||
import LanguagePicker from "./InputElement/LanguagePicker.svelte"
|
||||
import Tr from "./Base/Tr.svelte"
|
||||
import ToSvelte from "./Base/ToSvelte.svelte"
|
||||
|
||||
const m = new Map<string, string>()
|
||||
m.set("nl", "Nederlands")
|
||||
const tr = Translation.fromMap(m, true)
|
||||
</script>
|
||||
|
||||
<LanguagePicker/>
|
||||
<h1>Svelte native</h1>
|
||||
<Tr t={tr}/>
|
||||
<h1>ToSvelte</h1>
|
||||
<ToSvelte construct={tr}/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue