kotori 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +73 -73
package/README.md
CHANGED
|
@@ -39,6 +39,8 @@ t('intro', { name: 'John', time: '12-00' })
|
|
|
39
39
|
- Translation keys are typed — no more string typos
|
|
40
40
|
- Variables typed and inferred from string literals
|
|
41
41
|
|
|
42
|
+
Demo: <https://stackblitz.com/edit/vitejs-vite-nyxwmhre?file=src%2FApp.tsx>
|
|
43
|
+
|
|
42
44
|
## Installation
|
|
43
45
|
|
|
44
46
|
```bash
|
|
@@ -160,7 +162,7 @@ export const Page2 = () => {
|
|
|
160
162
|
|
|
161
163
|
## How It Works
|
|
162
164
|
|
|
163
|
-

|
|
164
166
|
|
|
165
167
|
### One `kotori` instance per app
|
|
166
168
|
|
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "kotori",
|
|
3
|
-
"description": "Strongly-typed and composable internationalization library for React",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"scripts": {
|
|
6
|
-
"setup": "rm -rf node_modules && npm i && git init && husky",
|
|
7
|
-
"prepublishOnly": "npm i && npx tsc && npm run build",
|
|
8
|
-
"build": "tsdown",
|
|
9
|
-
"size": "tsdown --minify",
|
|
10
|
-
"test": "vitest",
|
|
11
|
-
"lint": "npx @biomejs/biome check --write",
|
|
12
|
-
"dev": "vite --host"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"lint-staged": {
|
|
18
|
-
"*": [
|
|
19
|
-
"npm run lint"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"type": "module",
|
|
23
|
-
"main": "./dist/index.cjs",
|
|
24
|
-
"types": "./dist/index.d.cts",
|
|
25
|
-
"exports": {
|
|
26
|
-
".": {
|
|
27
|
-
"require": {
|
|
28
|
-
"types": "./dist/index.d.cts",
|
|
29
|
-
"default": "./dist/index.cjs"
|
|
30
|
-
},
|
|
31
|
-
"import": {
|
|
32
|
-
"types": "./dist/index.d.mts",
|
|
33
|
-
"default": "./dist/index.mjs"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"keywords": [
|
|
38
|
-
"i18n",
|
|
39
|
-
"internationalization",
|
|
40
|
-
"react",
|
|
41
|
-
"typescript",
|
|
42
|
-
"strongly-typed"
|
|
43
|
-
],
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@biomejs/biome": "^2.4.12",
|
|
46
|
-
"@types/node": "^25.6.0",
|
|
47
|
-
"@types/react": "^19.2.14",
|
|
48
|
-
"@types/react-dom": "^19.2.3",
|
|
49
|
-
"@vitejs/plugin-react": "^6.0.1",
|
|
50
|
-
"@vitest/coverage-v8": "^4.1.5",
|
|
51
|
-
"bcp47-language-tags": "^1.1.0",
|
|
52
|
-
"husky": "^9.1.7",
|
|
53
|
-
"lint-staged": "^16.4.0",
|
|
54
|
-
"react": "^19.2.5",
|
|
55
|
-
"react-dom": "^19.2.5",
|
|
56
|
-
"tsdown": "^0.21.10",
|
|
57
|
-
"tsx": "^4.21.0",
|
|
58
|
-
"typescript": "^6.0.3",
|
|
59
|
-
"vitest": "^4.1.5"
|
|
60
|
-
},
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "git+https://github.com/tylim88/kotori.git"
|
|
64
|
-
},
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://github.com/tylim88/kotori/issues"
|
|
67
|
-
},
|
|
68
|
-
"author": "tylim88",
|
|
69
|
-
"license": "MIT",
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"react": ">=19.2.5"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "kotori",
|
|
3
|
+
"description": "Strongly-typed and composable internationalization library for React",
|
|
4
|
+
"version": "0.1.5",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"setup": "rm -rf node_modules && npm i && git init && husky",
|
|
7
|
+
"prepublishOnly": "npm i && npx tsc && npm run build",
|
|
8
|
+
"build": "tsdown",
|
|
9
|
+
"size": "tsdown --minify",
|
|
10
|
+
"test": "vitest",
|
|
11
|
+
"lint": "npx @biomejs/biome check --write",
|
|
12
|
+
"dev": "vite --host"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"lint-staged": {
|
|
18
|
+
"*": [
|
|
19
|
+
"npm run lint"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"types": "./dist/index.d.cts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
},
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"default": "./dist/index.mjs"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"i18n",
|
|
39
|
+
"internationalization",
|
|
40
|
+
"react",
|
|
41
|
+
"typescript",
|
|
42
|
+
"strongly-typed"
|
|
43
|
+
],
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@biomejs/biome": "^2.4.12",
|
|
46
|
+
"@types/node": "^25.6.0",
|
|
47
|
+
"@types/react": "^19.2.14",
|
|
48
|
+
"@types/react-dom": "^19.2.3",
|
|
49
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
50
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
51
|
+
"bcp47-language-tags": "^1.1.0",
|
|
52
|
+
"husky": "^9.1.7",
|
|
53
|
+
"lint-staged": "^16.4.0",
|
|
54
|
+
"react": "^19.2.5",
|
|
55
|
+
"react-dom": "^19.2.5",
|
|
56
|
+
"tsdown": "^0.21.10",
|
|
57
|
+
"tsx": "^4.21.0",
|
|
58
|
+
"typescript": "^6.0.3",
|
|
59
|
+
"vitest": "^4.1.5"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/tylim88/kotori.git"
|
|
64
|
+
},
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/tylim88/kotori/issues"
|
|
67
|
+
},
|
|
68
|
+
"author": "tylim88",
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": ">=19.2.5"
|
|
72
|
+
}
|
|
73
|
+
}
|