kotori 0.0.7 → 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.
- package/README.md +1 -1
- package/package.json +2 -3
- package/image.png +0 -0
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 '
|
|
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.
|
|
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",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"dev": "vite --host"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
"image.png"
|
|
14
|
+
"dist"
|
|
16
15
|
],
|
|
17
16
|
"lint-staged": {
|
|
18
17
|
"*": [
|
package/image.png
DELETED
|
Binary file
|