From af8af5877c5b99ed1c4b379ed78e71d584711eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20K=C3=BCgler?= Date: Tue, 11 Jul 2023 23:18:48 +0200 Subject: [PATCH] docs: Update README to removed block support --- README.md | 78 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 71bc09d..bd8ab53 100644 --- a/README.md +++ b/README.md @@ -37,25 +37,35 @@ To learn about more options, check out the [full documentation](https://i18next. ### Simple example -```vue - -{ - "en": { +Given the i18next translations +```js +i18next.init({ + // ... + resources: { + en: { // language + translation: { // the default namespace "insurance": "Insurance" + } }, - "de": { + de: { // language + translation: { // the default namespace "insurance": "Versicherung" + } } -} - + } +}) +``` +You can use +```vue ``` -Using the composition API you can access the i18next instance and `t()` as well: +Using the composition API you can access the i18next instance and `t()` as well. +But you can also just use $t in the template, without using `useTranslation()`. ```vue