kotori 5.0.6 → 5.0.7

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -69,14 +69,14 @@ export const { useT, dict, setLanguage, t } = kotori({
69
69
  })
70
70
 
71
71
  // you can define your dicts in the same file or separate them by component, it's up to you
72
- const intro = dict({
72
+ export const intro = dict({
73
73
  en: 'my name is {{name}}, I am {{age}} years old.',
74
74
  zh: '我叫{{name}},我今年{{age}}岁了。',
75
75
  ja: '私の名前は{{name}}で、{{age}}歳です。',
76
76
  ms: 'nama saya {{name}}, saya berumur {{age}} tahun.',
77
77
  })
78
78
 
79
- const time = dict({
79
+ export const time = dict({
80
80
  en: 'time {{time}}',
81
81
  zh: '时间 {{time}}',
82
82
  ja: '時間 {{time}}',
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": "5.0.6",
4
+ "version": "5.0.7",
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",