Skip to content

Commit 303d988

Browse files
committed
docs: fix i18n composable name in README
1 parent 6b352c9 commit 303d988

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ export default {
172172
Be sure to understand how [App Internationalization (i18n)](https://quasar.dev/options/app-internationalization#Introduction) works before proceeding.
173173
This mixin assumes [`vue-i18n`](https://github.com/intlify/vue-i18n-next) has already been set up in your project.
174174

175-
`usePageSocialMeta` is perfect until you add internationalization to the mix, which requires to dynamically update you tags and meta tags accordingly to the selected language: `usePageSocialMeta18n` address this use case.
175+
`usePageSocialMeta` is perfect until you add internationalization to the mix, which requires to dynamically update you tags and meta tags accordingly to the selected language: `usePageSocialMetaI18n` address this use case.
176176

177-
### Using `usePageSocialMeta18n`
177+
### Using `usePageSocialMetaI18n`
178178

179-
You use `usePageSocialMeta18n` exactly how you would use `usePageSocialMeta`, except you provide "translation paths" as arguments instead of the text itself.
179+
You use `usePageSocialMetaI18n` exactly how you would use `usePageSocialMeta`, except you provide "translation paths" as arguments instead of the text itself.
180180
The mixin automatically react to locale changes, updating meta tags accordingly.
181181

182182
```ts
@@ -198,15 +198,15 @@ export default {
198198
```ts
199199
// src/pages/contacts.vue
200200

201-
import { usePageSocialMeta18n } from "@dreamonkey/quasar-app-extension-meta";
201+
import { usePageSocialMetaI18n } from "@dreamonkey/quasar-app-extension-meta/i18n";
202202

203203
const titlePath = "contacts.meta.title"; // <-- The title 'translation path'
204204
const descriptionPath = "contacts.meta.description"; // <-- The description 'translation path'
205205

206206
export default {
207207
name: "ContactPage",
208208
setup() {
209-
usePageSocialMeta18n(titlePath, descriptionPath);
209+
usePageSocialMetaI18n(titlePath, descriptionPath);
210210
},
211211
};
212212
```
@@ -238,7 +238,7 @@ usePageSocialMeta(title: string, description: string);
238238
```
239239

240240
```ts
241-
usePageSocialMeta18n(titlePath: string, descriptionPath: string);
241+
usePageSocialMetaI18n(titlePath: string, descriptionPath: string);
242242
```
243243

244244
```ts

0 commit comments

Comments
 (0)