Skip to content

Commit

Permalink
add notice section on per-component translations docs (#1660)
Browse files Browse the repository at this point in the history
* add notice section on per-component translations docs

* updates
  • Loading branch information
kazupon committed Nov 20, 2022
1 parent 3a466a5 commit 2bbf18d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/2.guide/12.per-component-translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ ja:
::alert{type="info"}
Read more about [i18n custom blocks](https://vue-i18n.intlify.dev/guide/advanced/sfc.html)
::

::alert{type="warning"}
When you use per-component Translations, you need `t` which is exported by `useI18n`, **not `$t`**.
About `$t` which isn't used in per-component translation, see also ["Implicit with injected properties and functions" section of Vue I18n docs](https://vue-i18n.intlify.dev/guide/advanced/composition.html#implicit-with-injected-properties-and-functions).
::

0 comments on commit 2bbf18d

Please sign in to comment.