intor 1.0.34 → 1.0.35

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.
@@ -170,7 +170,7 @@ type TranslatorMethods<M> = {
170
170
 
171
171
  type Shared<M> = {
172
172
  messages: M;
173
- locale?: LocaleKey<M>;
173
+ locale: LocaleKey<M>;
174
174
  isLoading: boolean;
175
175
  setLocale: (locale: LocaleKey<M>) => void;
176
176
  };
@@ -170,7 +170,7 @@ type TranslatorMethods<M> = {
170
170
 
171
171
  type Shared<M> = {
172
172
  messages: M;
173
- locale?: LocaleKey<M>;
173
+ locale: LocaleKey<M>;
174
174
  isLoading: boolean;
175
175
  setLocale: (locale: LocaleKey<M>) => void;
176
176
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intor",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "A modular and extensible i18n core designed for TypeScript and JavaScript projects. Intor enables custom translation logic with support for both frontend and backend environments, featuring runtime configuration, caching, adapters, and message loaders.",
5
5
  "author": "Yiming Liao",
6
6
  "license": "MIT",
@@ -74,7 +74,7 @@
74
74
  "prepublishOnly": "yarn build"
75
75
  },
76
76
  "dependencies": {
77
- "intor-translator": "^1.0.14",
77
+ "intor-translator": "^1.0.15",
78
78
  "logry": "^1.1.10",
79
79
  "p-limit": "^6.2.0"
80
80
  },