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

Commit e1b120b

Browse files
authored
feat: support vue-i18n v9.1 (#84)
1 parent a7c437d commit e1b120b

File tree

5 files changed

+798
-769
lines changed

5 files changed

+798
-769
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ lib
55
*.log
66
*.swp
77
*~
8-
.vscode
98
examples/**/dist
9+
.env

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"files.associations": {
3+
"*.json": "jsonc"
4+
},
5+
"[typescript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"typescript.tsdk": "node_modules/typescript/lib",
13+
"i18n-ally.localesPaths": [
14+
"examples/composition/locales",
15+
"examples/legacy/locales"
16+
]
17+
}

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
}
2525
},
2626
"dependencies": {
27-
"@intlify/cli": "^0.2.0",
28-
"@intlify/shared": "^9.0.0",
27+
"@intlify/cli": "^0.4.0",
28+
"@intlify/shared": "^9.1.0",
2929
"@rollup/pluginutils": "^4.1.0",
3030
"debug": "^4.1.1",
3131
"fast-glob": "^3.2.5"
@@ -35,14 +35,14 @@
3535
"@types/jest": "^26.0.16",
3636
"@types/jsdom": "^16.2.5",
3737
"@types/node": "^14.14.10",
38-
"@typescript-eslint/eslint-plugin": "^4.11.0",
39-
"@typescript-eslint/parser": "^4.11.0",
40-
"@vitejs/plugin-vue": "^1.1.4",
41-
"@vue/compiler-sfc": "^3.0.5",
42-
"eslint": "^7.20.0",
43-
"eslint-config-prettier": "^8.0.0",
38+
"@typescript-eslint/eslint-plugin": "^4.21.0",
39+
"@typescript-eslint/parser": "^4.21.0",
40+
"@vitejs/plugin-vue": "^1.2.1",
41+
"@vue/compiler-sfc": "^3.0.11",
42+
"eslint": "^7.23.0",
43+
"eslint-config-prettier": "^8.1.0",
4444
"eslint-plugin-prettier": "^3.3.0",
45-
"eslint-plugin-vue": "^7.6.0",
45+
"eslint-plugin-vue": "^7.8.0",
4646
"eslint-plugin-vue-libs": "^4.0.0",
4747
"jest": "^26.6.3",
4848
"jest-puppeteer": "^4.4.0",
@@ -53,12 +53,12 @@
5353
"opener": "^1.5.2",
5454
"puppeteer": "^3.3.0",
5555
"shipjs": "^0.23.0",
56-
"ts-jest": "^26.4.0",
57-
"typescript": "^4.1.3",
58-
"typescript-eslint-language-service": "^4.1.2",
59-
"vite": "^2.0.1",
60-
"vue": "^3.0.6",
61-
"vue-i18n": "^9.0.0"
56+
"ts-jest": "^26.5.0",
57+
"typescript": "^4.2.3",
58+
"typescript-eslint-language-service": "^4.1.3",
59+
"vite": "^2.1.5",
60+
"vue": "^3.0.11",
61+
"vue-i18n": "^9.1.0"
6262
},
6363
"engines": {
6464
"node": ">= 12"
@@ -79,8 +79,8 @@
7979
"license": "MIT",
8080
"main": "lib/index.js",
8181
"peerDependencies": {
82-
"vite": "^2.0.1",
83-
"vue-i18n": "^9.0.0"
82+
"vite": "^2.1.5",
83+
"vue-i18n": "^9.1.0"
8484
},
8585
"repository": {
8686
"type": "git",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function pluginI18n(
8383
`set __VUE_I18N_FULL_INSTALL__ is '${config.define['__VUE_I18N_FULL_INSTALL__']}'`
8484
)
8585

86-
config.define['__INTLIFY_PROD_DEVTOOLS__'] = false
86+
config.define['__VUE_I18N_PROD_DEVTOOLS__'] = false
8787
},
8888

8989
configResolved(_config: ResolvedConfig) {

0 commit comments

Comments
 (0)