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

Commit 219608e

Browse files
committed
update for release
1 parent c58a7b9 commit 219608e

File tree

4 files changed

+163
-188
lines changed

4 files changed

+163
-188
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# These are supported funding model platforms
22

33
github: kazupon
4-
patreon: kazupon
4+
patreon: #
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
[![npm](https://img.shields.io/npm/v/vue-i18n-jest.svg)](https://www.npmjs.com/package/vue-i18n-jest)
55
[![codecov](https://codecov.io/gh/kazupon/vue-i18n-jest/branch/master/graph/badge.svg)](https://codecov.io/gh/kazupon/vue-i18n-jest)
66

7-
vue-jest wrapper for i18n custom blocks
7+
vue-jest transformer for i18n custom blocks
8+
9+
> :warning: NOTE: This transformer is for `vue-jest@v4`
810
911
## :cd: Installation
1012

@@ -26,15 +28,15 @@ To define vue-i18n-jest as a transformer for your .vue files that have i18n cust
2628

2729
if you've already setup vue-jest, You can change it as follows:
2830

29-
```diff
30-
{
31-
"jest": {
32-
// ...
33-
"transform": {
34-
- "^.+\\.vue$": "vue-jest"
35-
+ "^.+\\.vue$": "vue-i18n-jest"
36-
},
37-
// ....
31+
```js
32+
module.exports = {
33+
globals: {
34+
'vue-jest': {
35+
transform: {
36+
'i18n': require('vue-i18n-jest')
37+
}
38+
}
39+
}
3840
}
3941
```
4042

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
"jest": "^24.0.0",
4444
"lerna-changelog": "^1.0.1",
4545
"opener": "^1.5.1",
46-
"shipjs": "^0.18.4",
46+
"shipjs": "^0.23.0",
4747
"ts-jest": "^24.0.0",
4848
"typescript": "^3.8.3",
4949
"vue": "^2.5",
5050
"vue-template-compiler": "^2.5"
5151
},
5252
"engines": {
53-
"node": ">= 8"
53+
"node": ">= 10"
5454
},
5555
"files": ["lib"],
5656
"homepage": "https://github.com/kazupon/vue-i18n-jest#readme",

0 commit comments

Comments
 (0)