vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Documentation does not show usage within `<scripts>` - How to use `$t`, `$tc`, `$d`, `$n`?

Open MickL opened this issue 6 months ago • 6 comments

Clear and concise description of the problem

The docs are really great! I just dont see how to use all this amazing template functions within the script, e.g. $t, $tc, $d, $n. If I try to use them within I get an error that they are not defined.

Suggested solution

For each template function provide one example on how to use them within

Validations

P.S. When googling "vue i18n" the first result links to 8.x docs with no information that this is an old version. This is especially problematic because there are breaking changes and also the new docs look more nice :) It would be great to add a message that there is a more current version. E.g. Bootstrap adds an info at the very top: https://getbootstrap.com/docs/4.6/getting-started/introduction/

MickL avatar Feb 11 '24 18:02 MickL