Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

chore: add a warning for deprecation of $tc in future versions #1714

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vuepress/guide/pluralization.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Pluralization

> [!warning]
> `$tc` will become deprecated in v10.0.0 and will be removed in v11.0.0. You can already update `$tc` to `$t`. Read more [here](https://eslint-plugin-vue-i18n.intlify.dev/rules/no-deprecated-tc#rule-details).

You can translate with pluralization. You must define the locale that have a pipe `|` separator, and define plurals in pipe separator.

*Your template will need to use `$tc()` instead of `$t()`.*
Expand Down