kotori 0.0.10 → 0.0.12

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 (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,11 +32,12 @@ t('intro', { name: 'John', time: '12-00' })
32
32
  - No codegen
33
33
  - No JSON
34
34
  - No dependencies
35
+ - No build step
35
36
  - 0.39kb gzipped
36
37
  - Modular and tree-shakeable
37
38
  - Language change in one page rerenders all pages
38
- - Variables typed and inferred from string literals
39
39
  - Translation keys are typed — no more string typos
40
+ - Variables typed and inferred from string literals
40
41
 
41
42
  ## Installation
42
43
 
@@ -74,7 +75,7 @@ const time = dict({
74
75
  zh: '时间 {{time}}',
75
76
  ja: '時間 {{time}}',
76
77
  ms: 'waktu {{time}}',
77
- // optional: type your arguments, by default it's `Record<time, string>` in this example
78
+ // optional: type your arguments, by default it's `Record<'time', string>` in this example
78
79
  })<{ time: `${number}:${number}:${number}` }>
79
80
 
80
81
  const { useTranslations } = createTranslations({
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "kotori",
3
3
  "description": "Strongly-typed and composable internationalization library for React",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "scripts": {
6
6
  "setup": "rm -rf node_modules && npm i && git init && husky",
7
- "prepublishOnly": "npm run build",
7
+ "prepublishOnly": "npm i && npx tsc && npm run build",
8
8
  "build": "tsdown",
9
9
  "test": "vitest",
10
10
  "lint": "npx @biomejs/biome check --write",