-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation does not show usage within <scripts>
- How to use $t
, $tc
, $d
, $n
?
#1733
Comments
Do you know how to do it? I'm looking for an answer as well. |
I think it is the same naming without
I assume without Nuxt it would be something like this?
|
Okay, than I'm having another problem.
But if I do It seems like this is no problem in your case. |
Yes it is. But regarding your issue: You will not import it from vue-18n because it is from nuxt-i18n. But it is already auto imported. My guess is you didnt add |
True, because the documentation of v9 did not tell met in install I'll see if I can install and use |
Use |
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 <script>
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/
The text was updated successfully, but these errors were encountered: