kotori 3.0.4 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,16 +26,16 @@ const intro = dict({
26
26
 
27
27
 
28
28
  // ✅ Works
29
- t('intro', { name: 'John', time: '12:25' })
29
+ t(intro, { name: 'John', time: '12:25' })
30
30
 
31
31
  // ❌ TypeScript error: missing { name }
32
- t('intro', { time: '12:25' })
32
+ t(intro, { time: '12:25' })
33
33
 
34
34
  // ❌ TypeScript error: unknown key 'nama'
35
- t('intro', { nama: 'John', time: '12:25' })
35
+ t(intro, { nama: 'John', time: '12:25' })
36
36
 
37
37
  // ❌ TypeScript error: invalid format for 'time'
38
- t('intro', { name: 'John', time: '12-00' })
38
+ t(intro, { name: 'John', time: '12-00' })
39
39
  ```
40
40
 
41
41
  - No codegen
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": "3.0.4",
4
+ "version": "3.0.5",
5
5
  "scripts": {
6
6
  "setup": "rm -rf node_modules && npm i && git init && husky",
7
7
  "prepublishOnly": "npm i && npx tsc && npm run build",