Skip to content

Commit 058b0c3

Browse files
committed
docs: Add missing documentation.
1 parent bd07d0c commit 058b0c3

File tree

2 files changed

+1328
-1145
lines changed

2 files changed

+1328
-1145
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ resolve: async lang => {
4949
}
5050
````
5151

52+
### With SSR
53+
54+
The `resolve` method can receive a `require` instead of a `Promise`:
55+
56+
```js
57+
.use(i18nVue, {
58+
lang: 'pt',
59+
resolve: lang => require(`../../lang/${lang}.json`),
60+
})
61+
````
62+
5263
### Usage
5364
5465
```html

0 commit comments

Comments
 (0)