kotori 0.0.8 → 0.0.9

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 +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,7 +11,7 @@ const { dict } = kotori({
11
11
  // ❌ compile error: missing japanese translation
12
12
  const intro = dict({
13
13
  en: 'Hello {{name}}, is it {{time}} now?', // base string drives the type contract
14
- zh: '你好,现在是 {{time}} 吗?', // ❌ compile error: missing key 'nam'
14
+ zh: '你好,现在是 {{time}} 吗?', // ❌ compile error: missing key 'name'
15
15
  ms: 'Hai {{nam}}, adakah pukul {{time}} sekarang?' // ❌ compile error: unknown key 'nam'
16
16
  })<{name: string; time: `${number}:${number}`}> // optional: type your arguments, by default it's `Record<'name'|'time', string>` in this example
17
17
 
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.8",
4
+ "version": "0.0.9",
5
5
  "scripts": {
6
6
  "setup": "rm -rf node_modules && npm i && git init && husky",
7
7
  "prepublishOnly": "npm run build",