@sheet-i18n/react 1.0.1 → 1.0.3

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 -4
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -187,10 +187,7 @@ export default function Layout({
187
187
  children,
188
188
  params,
189
189
  }: PropsWithChildren<PageProps>) {
190
- const { defaultLocale } = i18nStore;
191
- const currentLocale = params?.locale ?? defaultLocale;
192
-
193
- return <IntlProvider currentLocale={currentLocale}>{children}</IntlProvider>;
190
+ return <IntlProvider currentLocale={params.locale}>{children}</IntlProvider>;
194
191
  }
195
192
  ```
196
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheet-i18n/react",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "i18n client logic based on react",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -29,11 +29,11 @@
29
29
  "license": "ISC",
30
30
  "devDependencies": {
31
31
  "@swc/core": "^1.10.2",
32
- "@sheet-i18n/typescript-config": "1.3.2"
32
+ "@sheet-i18n/typescript-config": "1.3.4"
33
33
  },
34
34
  "dependencies": {
35
- "@sheet-i18n/react-client": "1.0.1",
36
- "@sheet-i18n/react-core": "1.0.0"
35
+ "@sheet-i18n/react-client": "1.0.3",
36
+ "@sheet-i18n/react-core": "1.0.2"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsup",