Skip to content

Commit

Permalink
updating docs (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fa-BRAIK committed Jul 21, 2023
1 parent e1087fd commit 4eec0e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ createApp()

#### SSR (Server Side Rendering)

For Server Side Rendering the resolve method should not receive a `Promise` and instead take advantage of the `globEager` method like this:
For Server Side Rendering the resolve method should not receive a `Promise` and instead take advantage of the `eager` param like this:

```js
.use(i18nVue, {
lang: 'pt',
resolve: lang => {
const langs = import.meta.globEager('../../lang/*.json');
const langs = import.meta.glob('../../lang/*.json', { eager: true });
return langs[`../../lang/${lang}.json`].default;
},
})
Expand Down

0 comments on commit 4eec0e7

Please sign in to comment.