svelte-i18n
svelte-i18n copied to clipboard
Docs on how to use variables in translation strings
If I have a key for example "Foo {amount} bars" that should dynamically be resolved as:
Foo 1 bars Foo 2 bars ... etc.
depending on the variable passed there is no documentation / clarity whether this is supported
I was able to achieve this with:
$_({
id: "Foo {count} bars",
values: { count: 7},
})
however I think this still belong in the docs