kotori 0.0.5 → 0.0.6
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 +8 -1
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<
|
|
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
|
+

|
|
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/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.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"setup": "rm -rf node_modules && npm i && git init && husky",
|
|
7
7
|
"prepublishOnly": "npm run build",
|
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"i18n",
|
|
38
|
+
"internationalization",
|
|
39
|
+
"react",
|
|
40
|
+
"typescript",
|
|
41
|
+
"strongly-typed"
|
|
42
|
+
],
|
|
36
43
|
"devDependencies": {
|
|
37
44
|
"@biomejs/biome": "^2.4.12",
|
|
38
45
|
"@types/node": "^25.6.0",
|