Skip to content

Commit cb621a8

Browse files
chiaweileekazupon
authored andcommitted
📝 docs: use <i18n src> for better coding in IDE (#27) by @chiaweilee
1 parent f112fdf commit cb621a8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ export default {
4545
</script>
4646
```
4747

48+
you also can:
49+
50+
```vue
51+
<i18n src="./myLang.json"></i18n>
52+
```
53+
54+
```json
55+
{
56+
"en": {
57+
"hello": "hello world!"
58+
},
59+
"ja": {
60+
"hello": "こんにちは、世界!"
61+
}
62+
}
63+
```
64+
4865
### JavaScript
4966

5067
```javascript

0 commit comments

Comments
 (0)