kotori 0.0.5 → 0.0.7

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.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/image.png +0 -0
  3. package/package.json +10 -2
package/README.md CHANGED
@@ -66,7 +66,7 @@ const time = dict({
66
66
  zh: '时间 {{time}}',
67
67
  ja: '時間 {{time}}',
68
68
  ms: 'waktu {{time}}',
69
- // optional: type your arguments, by default it's `Record<string, string>`
69
+ // optional: type your arguments, by default it's `Record<time, string>` in this example
70
70
  })<{ time: `${number}:${number}:${number}` }>
71
71
 
72
72
  const { useTranslations } = createTranslations({
@@ -150,6 +150,8 @@ export const Page2 = () => {
150
150
 
151
151
  ## How It Works
152
152
 
153
+ ![how kotori works](image.png)
154
+
153
155
  ### One `kotori` instance per app
154
156
 
155
157
  `kotori` holds the language state. All `createTranslations` calls share that state — changing the language anywhere rerenders everywhere.
package/image.png ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kotori",
3
3
  "description": "Strongly-typed and composable internationalization library for React",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "scripts": {
6
6
  "setup": "rm -rf node_modules && npm i && git init && husky",
7
7
  "prepublishOnly": "npm run build",
@@ -11,7 +11,8 @@
11
11
  "dev": "vite --host"
12
12
  },
13
13
  "files": [
14
- "dist"
14
+ "dist",
15
+ "image.png"
15
16
  ],
16
17
  "lint-staged": {
17
18
  "*": [
@@ -33,6 +34,13 @@
33
34
  }
34
35
  }
35
36
  },
37
+ "keywords": [
38
+ "i18n",
39
+ "internationalization",
40
+ "react",
41
+ "typescript",
42
+ "strongly-typed"
43
+ ],
36
44
  "devDependencies": {
37
45
  "@biomejs/biome": "^2.4.12",
38
46
  "@types/node": "^25.6.0",