sheet-i18n 1.10.5 → 1.10.6
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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ This package provides tools to handle translations in React applications using c
|
|
|
47
47
|
|
|
48
48
|
## ✨ Package Introduction
|
|
49
49
|
|
|
50
|
-
- **`I18nStore`**: _Core Store Creation Class_ for managing translation data.
|
|
50
|
+
- **`I18nStore`**: _Core Store Creation Class_ from `@sheet-i18n/core` for managing translation data.
|
|
51
51
|
- **`createI18nContext`**: _React Context_ to generate providers and hooks for translation.
|
|
52
52
|
- **`IntlProvider`**: _React Translation Provider_ for managing current locale.
|
|
53
53
|
- **`useTranslation`**: _Client Side Translation Hook_ for easy access to translation messages on the client side.
|
|
@@ -91,7 +91,7 @@ this store will be used as a core translations module.
|
|
|
91
91
|
import en from './en.json';
|
|
92
92
|
import ko from './ko.json';
|
|
93
93
|
|
|
94
|
-
import { I18nStore } from '@sheet-i18n/
|
|
94
|
+
import { I18nStore } from '@sheet-i18n/core';
|
|
95
95
|
|
|
96
96
|
export const i18nStore = new I18nStore({
|
|
97
97
|
supportedLocales: ['ko', 'en'],
|
|
@@ -166,6 +166,8 @@ const YourComponent = () => {
|
|
|
166
166
|
|
|
167
167
|
The `I18nStore` manages translation states, ensuring consistency across locales.
|
|
168
168
|
|
|
169
|
+
Import it from `@sheet-i18n/core`, then pass the created store to `createI18nContext` from `@sheet-i18n/react`.
|
|
170
|
+
|
|
169
171
|
#### Parameters:
|
|
170
172
|
|
|
171
173
|
### 🧠 I18nStore Configuration Options
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheet-i18n",
|
|
3
3
|
"description": "Core i18n toolchain for sheet-i18n: configuration types and server-side importer for Google Sheets workflows.",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/chltjdrhd777/sheet-i18n"
|