We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vite
1 parent 201c3bc commit 4f69e0bCopy full SHA for 4f69e0b
README.md
@@ -25,7 +25,7 @@ or with [yarn](https://yarnpkg.com):
25
$ yarn add laravel-vue-i18n
26
```
27
28
-## Usage
+## Installation
29
30
```js
31
import { createApp } from 'vue'
@@ -38,6 +38,19 @@ createApp()
38
.mount('#app');
39
40
41
+### With `vite`
42
+
43
+The `resolve` method will need to be:
44
45
+```js
46
+resolve: async lang => {
47
+ const langs = import.meta.glob('../../lang/*.json');
48
+ return await langs[`../../lang/${lang}.json`]();
49
+}
50
+````
51
52
+### Usage
53
54
```html
55
<template>
56
<div>
0 commit comments