Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

Commit 2b03e08

Browse files
committed
Merge branch 'master' of github.com:intlify/vite-plugin-vue-i18n
2 parents abeaa10 + d5d599d commit 2b03e08

24 files changed

+12584
-174
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
'@typescript-eslint/explicit-function-return-type': 'off',
3232
'@typescript-eslint/member-delimiter-style': 'off',
3333
'@typescript-eslint/no-use-before-define': 'off',
34-
'@typescript-eslint/explicit-module-boundary-types': 'off'
34+
'@typescript-eslint/explicit-module-boundary-types': 'off',
35+
'@typescript-eslint/no-non-null-assertion': 'off'
3536
}
3637
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/composition/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "composition",
3+
"private": true,
4+
"version": "0.0.0",
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "vite build"
8+
},
9+
"dependencies": {
10+
"vue": "^3.0.4",
11+
"vue-i18n": "^9.0.0-beta.15"
12+
},
13+
"devDependencies": {
14+
"vite": "1.0.0-rc.13",
15+
"@intlify/vite-plugin-vue-i18n": "link:../..",
16+
"typescript": "^4.1.2",
17+
"@vue/compiler-sfc": "^3.0.4"
18+
}
19+
}

examples/composable/vite.config.ts renamed to examples/composition/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { UserConfig } from 'vite'
2-
import i18n from '../../lib/index'
2+
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'
33

44
const config: UserConfig = {
55
vueCustomBlockTransforms: {
6-
i18n
6+
i18n: transformI18n()
77
}
88
}
99

examples/composition/yarn.lock

Lines changed: 2207 additions & 0 deletions
Large diffs are not rendered by default.

examples/global/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "global",
3+
"private": true,
4+
"version": "0.0.0",
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "vite build"
8+
},
9+
"dependencies": {
10+
"vue": "^3.0.4",
11+
"vue-i18n": "^9.0.0-beta.15"
12+
},
13+
"devDependencies": {
14+
"vite": "1.0.0-rc.13",
15+
"@intlify/vite-plugin-vue-i18n": "link:../..",
16+
"typescript": "^4.1.2",
17+
"@vue/compiler-sfc": "^3.0.4"
18+
}
19+
}

examples/global/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { UserConfig } from 'vite'
2-
import i18n from '../../lib/index'
2+
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'
33

44
const config: UserConfig = {
55
vueCustomBlockTransforms: {
6-
i18n
6+
i18n: transformI18n()
77
}
88
}
99

0 commit comments

Comments
 (0)