Skip to content

Dynamically load string at runtime #174

Answered by freeform99
freeform99 asked this question in Q&A
Discussion options

You must be logged in to vote

Found the answer! Sometimes it helps to try to explain something to someone else :)

So this works:

<div>
	{#each categories as item}
		<span>{$LL[item]()}</span>
	{/each}
</div>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ivanhofer
Comment options

@nkoehring
Comment options

@ivanhofer
Comment options

Answer selected by freeform99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants